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

SourceForge.net noreply at sourceforge.net
Wed Mar 2 19:40:14 CET 2005


Bugs item #1155565, was opened at 2005-03-02 19:38
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=1155565&group_id=29880

Category: None
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Quanah Gibson-Mount (mishikal)
Assigned to: Nobody/Anonymous (nobody)
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;



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

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