zabbixモニタtcp接続数
445 ワード
zabbix_の変更Agentdプロファイル
#
TIME_WAIT
CLOSE_WAIT
FIN_WAIT1
ESTABLISHED
SYN_RECV
LAST_ACK
LISTEN
[root@zabbix-client ~]# vim /usr/local/zabbix/etc/zabbix_agentd.conf
UnsafeUserParameters=1 # 1
UserParameter=tcp[*],netstat -an |grep -c $1
# zabbix_agentd
[root@zabbix-client ~]# service zabbix_agentd restart
# zabbix-server
[root@zabbix-server ~]# zabbix_get -s 192.168.3.42 -k tcp[ESTABLISHED]
2