check_ping works in ssh but not on web-gui?
Posted: Tue Jun 04, 2013 1:23 am
Is there a difference on the check_ping call when running the command from ssh vs. webgui?
It seems that mine fails on the WebGUI.
from SSH
[root@srv-mon-nsb1 libexec]# ./check_ping -H srv-files-nsb1 -w 10,100% -c 50,100%
PING OK - Packet loss = 0%, RTA = 0.41 ms|rta=0.415000ms;10.000000;50.000000;0.000000 pl=0%;100;100;0
from WebGUI
COMMAND: /usr/local/nagios/libexec/check_ping -H srv-web-nsb1 -w 10,100% -c 50,100% -p 5
OUTPUT: PING CRITICAL - Packet loss = 100%|rta=50.000000ms;10.000000;50.000000;0.000000 pl=100%;100;100;0
It seems that mine fails on the WebGUI.
from SSH
[root@srv-mon-nsb1 libexec]# ./check_ping -H srv-files-nsb1 -w 10,100% -c 50,100%
PING OK - Packet loss = 0%, RTA = 0.41 ms|rta=0.415000ms;10.000000;50.000000;0.000000 pl=0%;100;100;0
from WebGUI
COMMAND: /usr/local/nagios/libexec/check_ping -H srv-web-nsb1 -w 10,100% -c 50,100% -p 5
OUTPUT: PING CRITICAL - Packet loss = 100%|rta=50.000000ms;10.000000;50.000000;0.000000 pl=100%;100;100;0