[Nagiosplug-devel] [ nagiosplug-Bugs-870548 ] Plugin 1.4.0a1 -> /bin/ping does not terminate

SourceForge.net noreply at sourceforge.net
Tue Feb 24 16:29:00 CET 2004


Bugs item #870548, was opened at 2004-01-04 13:55
Message generated for change (Comment added) made by mattkent
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=870548&group_id=29880

Category: Argument proccessing
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Exner (banane2000)
Assigned to: Nobody/Anonymous (nobody)
Summary: Plugin 1.4.0a1 -> /bin/ping does not terminate

Initial Comment:
On our system (Suse 8.1, Nagios 2.0a1, Plugins 1.4.0a1) 
i've detected about 400+ /bin/ping processes going all to 
only 2 IP-addresses (yes... only if the failure takes a 
long time but our failures often takes the whole weekend 
if the german Telekom cuts the DSL-Line of one of our 
external offices...).

It seems that check_ping calls "/bin/ping -n -U -c 5 
x.x.x.x" for checking. If pinged host is not 
reacheable /bin/ping does not terminate for a very long 
time (maybe until the failed host answers again). 
check_ping terminates after 10 secs. This is also 
documented in nagios web interface. But 
corresponding /bin/ping process stays active.

Maybe it would help to pass "-w" (deadline) parameter 
to /bin/ping to force a termination after some time in 
such a case.


Chris


----------------------------------------------------------------------

Comment By: Matthew Kent (mattkent)
Date: 2004-02-24 16:25

Message:
Logged In: YES 
user_id=983566

Nagios 1.2, Plugin 1.4.0a1, RedHat 7.3 same problem.

Compiling plugins with --with-ping-command="/bin/ping -w 10
-n -U -c %d %s" solved this.

But it would be nice to have the 10 second timeout for
check_ping kill the ping process.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=870548&group_id=29880




More information about the Devel mailing list