diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-02-20 02:09:35 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-02-20 02:09:35 +0000 |
commit | cbd91ff6719930ab8366e28577dedf859c80af69 (patch) | |
tree | 260654852a3ff039bb91dacd800c4d078fc62bf6 | |
parent | 9750a7fca11a016a49136a0148250c11b812cc42 (diff) | |
download | monitoring-plugins-cbd91ff6719930ab8366e28577dedf859c80af69.tar.gz |
Different text to scan for if multiple addresses
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@810 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_dns.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 1fc4039f..24205294 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -14,6 +14,9 @@ | |||
14 | along with this program; if not, write to the Free Software | 14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | ||
17 | LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not | ||
18 | be picked up by this plugin | ||
19 | |||
17 | ******************************************************************************/ | 20 | ******************************************************************************/ |
18 | 21 | ||
19 | #include "common.h" | 22 | #include "common.h" |
@@ -108,7 +111,7 @@ main (int argc, char **argv) | |||
108 | /* the server is responding, we just got the host name... */ | 111 | /* the server is responding, we just got the host name... */ |
109 | if (strstr (input_buffer, "Name:")) | 112 | if (strstr (input_buffer, "Name:")) |
110 | parse_address = TRUE; | 113 | parse_address = TRUE; |
111 | else if (strstr (input_buffer, "Address:") && parse_address == TRUE) { | 114 | else if (parse_address == TRUE && (strstr (input_buffer, "Address:") || strstr (input_buffer, "Addresses:"))) { |
112 | temp_buffer = index (input_buffer, ':'); | 115 | temp_buffer = index (input_buffer, ':'); |
113 | temp_buffer++; | 116 | temp_buffer++; |
114 | 117 | ||