Forum

Zabbix 5, example a...
 
Notifications
Clear all

Zabbix 5, example agent tcp scripts, count tcp connections

1 Posty
1 Users
0 Likes
61 Widok
0
Topic starter

example

1 Answer
0
Topic starter

1.Create file inside /usr/local/etc/zabbix5/zabbix_agentd.conf.d/tcp.conf

UserParameter=tcp.80.established[*], netstat -an|grep ESTABLISHED | grep -w 80 | wc -l | xargs
UserParameter=tcp.established[*], netstat -an|grep ESTABLISHED | wc -l | xargs
UserParameter=tcp.listen[*], netstat -an|grep LISTEN | wc -l | xargs
UserParameter=tcp.time_wait[*], netstat -an|grep TIME_WAIT | wc -l | xargs

2.Add file to zabbix_agentd.conf 

 Include=/usr/local/etc/zabbix5/zabbix_agentd.conf.d/*.conf

3. service zabbix_agentd restart

4. dont forget to add custom zabbix_agent key into template

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: