[Nagiosplug-devel] [ nagiosplug-Bugs-1469472 ] check_ping dns lookup problem
SourceForge.net
noreply at sourceforge.net
Wed Apr 12 12:43:08 CEST 2006
Bugs item #1469472, was opened at 2006-04-12 21:42
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=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.
----------------------------------------------------------------------
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