Answer the question
In order to leave comments, you need to log in
How to ping with zabbix agent correctly?
Good evening everyone!
Recently deployed zabbix server on Debian 9 and agents on CentOS 6.6
Versions of the server and agents "4.0.0alpha5" Attached
OS Linux templates to all hosts
Next, it was necessary to ping remote hosts from the servers themselves that are being monitored.
For this, UserParameter=ping[*],/bin/ping $1 -c $2 -W 1 -q -n > /dev/null && echo 1 || echo 0 to the agents configuration.
Next, Items were created with the following content
The essence of the problem:
If the number of packages in the check (in screenshot 3) is set to more than 4, for example 5, 6, 7, etc. then Monitoring -> Latest Data generally stops receiving data. At the same time, the status of Items does not give any errors, justEnabled ,
Same thing happens with checking for average ping with UserParameter=ping.avg[*],/bin/ping $1 -c $2 -W 1 -q -n | tail -1 | awk -F '/' '{print int($$5+0.5)}'
Answer the question
In order to leave comments, you need to log in
nobody , In general, everything turned out to be much simpler, in the item settings I specified instead of Zabbix agent Zabbix agent (active) so that the connection was established from the agent side and that's all, all my previously created parameters worked regardless of the number of packages.
In agony, I learned about fping and Linux File Descriptors))
Thank you for your active participation and answer options!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question