I just implemented a solution to monitor the various gateways I have using a linux server I have in a remote location. It works but I'd like some tips for improvement. Basically the idea came from this page that uses the agent to ping a host and parse the output of fping. Instead of using his script directly I tried to mimic the results of ICMP template.
This is the content I placed in /etc/zabbix/zabbix_agentd.conf.d/icmp.conf
Now, I still have to manually create 3 items per host to monitor and specify a different key for each host I want to monitor.
Is there any recommendation for this case?
This is the content I placed in /etc/zabbix/zabbix_agentd.conf.d/icmp.conf
Code:
Timeout=30 UserParameter=icmploss[*],fping -q -c 5 $1 2>&1 | cut -d'/' -f5 | cut -d'%' -f1 UserParameter=icmpping[*],fping -q -c 5 $1 2>&1 ; echo $? UserParameter=icmptime[*],fping -q -c 5 $1 2>&1 | cut -d'/' -f8
Is there any recommendation for this case?
Comment