Forum

Zabbix 5, example a...
 
Powiadomienia
Wyczyść wszystko

Zabbix 5, example agent tcp scripts, count tcp connections

1 Wpisy
1 Użytkownicy
0 Reactions
764 Widoki
0
Rozpoczynający temat

example

1 odpowiedź
0
Rozpoczynający temat

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

Twoja odpowiedź

Nazwa autora

E-mail autora

Twoje zapytanie *

 
Podgląd 0 rewizje Zapisano
Udostępnij: