[Nagiosplug-devel] [ nagiosplug-Bugs-1155565 ] check_dig needs better check in if statement
SourceForge.net
noreply at sourceforge.net
Tue Jun 20 20:48:54 CEST 2006
Bugs item #1155565, was opened at 2005-03-03 03:38
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1155565&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: None
Group: CVS
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Quanah Gibson-Mount (mishikal)
Assigned to: Ton Voon (tonvoon)
Summary: check_dig needs better check in if statement
Initial Comment:
This patch helps compensate for different DNS returns:
--- nagios-plugins-1.3.1/plugins/check_dig.c.orig
2003-01-13 04:15:15.000001000 -0800
+++ nagios-plugins-1.3.1/plugins/check_dig.c
2003-12-12 07:48:30.000001000 -0800
@@ -76,11 +76,12 @@
printf ("Could not open stderr for
%s\n", command_line);
while (fgets (input_buffer, MAX_INPUT_BUFFER -
1, child_process)) {
/* the server is responding, we just
got the host name... */
- if (strstr (input_buffer, ";; ANSWER
SECTION:")) {
+ if (strstr (input_buffer, ";; ANSWER
SECTION:") ||
+ strstr (input_buffer, ";; ANSWERS:")) {
/* get the host address */
if (!fgets (input_buffer,
MAX_INPUT_BUFFER - 1, child_process))
break;
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2006-06-20 19:48
Message:
Logged In: YES
user_id=664364
Quanah,
Can I have a sample output from dig please? We can use this to run tests so this
is caught in all future versions.
Marking this call in pending and will auto close in 7 days if no response.
Ton
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2005-08-01 22:18
Message:
Logged In: YES
user_id=664364
Quanah,
Which version of dig are you using that returns output in this format?
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1155565&group_id=29880
More information about the Devel
mailing list