[Nagiosplug-devel] [ nagiosplug-Bugs-2315953 ] check_ping: timeouts when reverse name resolution times out

SourceForge.net noreply at sourceforge.net
Wed Nov 19 23:28:05 CET 2008


Bugs item #2315953, was opened at 2008-11-19 22:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2315953&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ton Voon (tonvoon)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_ping: timeouts when reverse name resolution times out

Initial Comment:
On a system where a reverse name resolution times out, two things appear to happen:

  1) check_ping will sometimes fail with a popen error
  2) check_ping will take a long time to run

(1) is because, I think, there are is_host calls. These should be removed (check on mailing list first). Instead, the command should be run and any error captured and displayed. There's no point trying to validate the command - just pass to the command.

(2) might occur because "time check_ping -c 1 {hostname}" just takes a long time due to this system. However, "check_ping -n -c 1 {hostname}" will return quickly.

So, ./configure should try and use check_ping -n where possible.

The best workaround: use check_icmp instead, which doesn't attempt to do these resolutions.

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

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




More information about the Devel mailing list