[Nagiosplug-devel] [ nagiosplug-Bugs-1155565 ] check_dig needs better check in if statement

SourceForge.net noreply at sourceforge.net
Wed Jul 5 04:20:30 CEST 2006


Bugs item #1155565, was opened at 03/02/05 19:38
Message generated for change (Comment added) made by sf-robot
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: Closed
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: SourceForge Robot (sf-robot)
Date: 07/04/06 19:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Ton Voon (tonvoon)
Date: 06/20/06 11: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: 08/01/05 14: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