E
E
Evgeny Emelyanov2018-04-23 22:16:57
Ping
Evgeny Emelyanov, 2018-04-23 22:16:57

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
5ade30b3a7717683562860.png
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 ,
5ade30cc3f70e400465564.png
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

1 answer(s)
E
Evgeny Emelyanov, 2018-04-25
@configboy

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 question

Ask a Question

731 491 924 answers to any question