监控tcp连接数
UserParameter=custom.tcp.conn[*],netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' | grep $1 | awk '{print $$2}'
重启client
zabbix server检测
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzY4LzhkMzY4YzZjNjYyNTA2NGVlNjVmZDJjZmUyYTM4Nzc0LkpQRUc=)
zabbix添加
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzkvZTUyODA3YTRlYjYzODA1YjAzZjQ0MWYwMDgyNWVmZTEuSlBFRw==)
进程监控如keepalived
iteam 添加
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzU5MC82MzAwZWZhNzZlNjNkMDEwYWNmZjJiYmE5ODllMjNmNi5KUEVH)
server 测试
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzg2L2IzOGMyNjVkZTQwM2RiODI5ZWRkZWVjNjU3NzFiOTA2LkpQRUc=)
添加tigger
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzcxNC9iMTQ0NzYyMmE3NjAxNjFmNjAxMTc4YTRjOWQ5NTk1Mi5KUEVH)
监控端口
![zabbix 添加监控项 zabbix 添加监控项](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzgyNi83ZTA5OThhZDY4MDE5M2E2OTU3MTFhZGI1NWI1MDEyMi5KUEVH)
本地端口修改:
net.tcp.port[,60020] 远程端口添加[10.10.xx.xx,60020]
转载于:https://blog.51cto.com/zcnick/1365712