Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
611
Widok
0
28/07/2022 1:55 pm
Topic starter
example
1 Answer
0
28/07/2022 1:56 pm
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