Hello,
as i have my zabbix 4.4 on VPS machine, remote location, i'm trying to run ping (latency response) from zabbix-agent machine in my network.
5 years ago someone posted this, but I cant get it to runn - I have no data....
When i run as root
from command line it is working...
any help?
as i have my zabbix 4.4 on VPS machine, remote location, i'm trying to run ping (latency response) from zabbix-agent machine in my network.
5 years ago someone posted this, but I cant get it to runn - I have no data....
UserParameter=chk.fping[*],sudo /usr/bin/fping -c 3 $1 2>&1 | tail -n 1 | awk '{print $NF}' | cut -d '/' -f2 Add permition in /etc/sudoers because of error in creating SOCKET.
zabbix ALL=(ALL) NOPASSWD:/usr/bin/fping
In template you can add items you'd like to ping
chk.fping[8.8.8.8]
zabbix ALL=(ALL) NOPASSWD:/usr/bin/fping
In template you can add items you'd like to ping
chk.fping[8.8.8.8]
When i run as root
/usr/bin/fping -c 3 $1 2>&1 | tail -n 1 | awk '{print $NF}' | cut -d '/' -f2
any help?
Comment