[Nagiosplug-devel] Error in check_ping

Павел Тимофеев mox87 at mail.ru
Wed Nov 5 12:48:12 CET 2008


Good day to you! 
I find  error in you check_ping plugin.  Not even error, it`s rather defict. This defict displays when host is down.
My system - FreeBSD 6.3, nagios plugins 1.4.13
 
 
When I use check_ping plugin for ping host from server in same subnet, sometimes I have message "System call sent warnings to stderr"
 
# /usr/local/nagios/libexec/check_ping -H 192.168.8.124 -w 12,5% -c 17,9% -t 30
PING CRITICAL - System call sent warnings to stderr  System call sent warnings to stderr  System call sent warnings to stderr  System call sent warnings to stderr  System call sent warnings to stderr Packet loss = 100%|rta=17.000000ms;12.000000;17.000000;0.000000 pl=100%;5;9;0
(and in web-interface i see this message too)
 
But if I ping host in another subnet, I haven`t this message 
 
# /usr/local/nagios/libexec/check_ping -H 192.168.2.244 -w 15,4% -c 19,10% -t 30
PING CRITICAL - Packet loss = 100%

 
 
 
If you use standart ping util to pinging this hosts you get this:
 
Same subnet:
# ping 192.168.8.124
PING 192.168.8.124 (192.168.8.124): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- 192.168.8.124 ping statistics ---
15 packets transmitted, 0 packets received, 100% packet loss

Another subnet:
# ping 192.168.2.244
PING 192.168.2.244 (192.168.2.244): 56 data bytes
^C
--- 192.168.2.244 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
In this case you haven`t "ping: sendto: Host is down" messages in stderr.
 
 
I saw your check_ping source. In you source not provide for this situation.
 
It`s right?
 
My english is very bad, and I want to ask you: are you understand me? =)
or i need to go to english school =) ?
 
Best Regards
System Administrator
Timofeev Pavel
Russia
 
С уважением
Системный администратор
Тимофеев Павел




More information about the Devel mailing list