[Nagiosplug-devel] [ nagiosplug-Bugs-1469472 ] check_ping dns lookup problem

SourceForge.net noreply at sourceforge.net
Wed Jul 12 20:56:38 CEST 2006


Bugs item #1469472, was opened at 2006-04-12 15:42
Message generated for change (Comment added) made by atxformfactor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1469472&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: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: nsturm (nsturm)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_ping dns lookup problem

Initial Comment:
This is on 1.4.2.

check_ping and maybe other plugins, first set their
SIGARLM timeout and then do an unconditional dns lookup
on the address provided, even if it is an IP.

Besides the dns lookup on the IP address is useless to
the best of my knowledge, it can timeout, which the code
does not handle.

If the dns lookup does time out, fileno(child_process)
in popen_timeout_alarm_handler() will segfault.

A simple workaround, which is BAD BAD BAD, is attached.
The proper solution would be to rewrite this piece of
code (and similar ones on other modules) to correctly
deal with the dns timeout.

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

Comment By: Mark Hennessy (atxformfactor)
Date: 2006-07-12 14:56

Message:
Logged In: YES 
user_id=1554526

Why hasn't anyone picked this one up?
I have noticed this issue as well.

I get this message when DNS doesn't work due to a name
server connection issue on the machine performing the Nagios
checks:
popen timeout received, but no child process

All of my host entries are by IP, I don't see why check_ping
should need to look up DNS for IPs at all.  Someone should
at least add a commandline switch or something.  I may just
have to write a perl wrapper for my local system's ping if
nothing is done by anyone about this. :(

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

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




More information about the Devel mailing list