[Nagiosplug-checkins] CVS: nagiosplug/plugins check_dns.c,1.24,1.25

Ton Voon tonvoon at users.sourceforge.net
Thu Feb 19 18:21:07 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26600

Modified Files:
	check_dns.c 
Log Message:
Different text to scan for if multiple addresses


Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** check_dns.c	18 Feb 2004 02:09:50 -0000	1.24
--- check_dns.c	20 Feb 2004 02:09:35 -0000	1.25
***************
*** 15,18 ****
--- 15,21 ----
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  
+  LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not 
+  be picked up by this plugin
+ 
  ******************************************************************************/
  
***************
*** 109,113 ****
  		if (strstr (input_buffer, "Name:"))
  			parse_address = TRUE;
! 		else if (strstr (input_buffer, "Address:") && parse_address == TRUE) {
  			temp_buffer = index (input_buffer, ':');
  			temp_buffer++;
--- 112,116 ----
  		if (strstr (input_buffer, "Name:"))
  			parse_address = TRUE;
! 		else if (parse_address == TRUE && (strstr (input_buffer, "Address:") || strstr (input_buffer, "Addresses:"))) {
  			temp_buffer = index (input_buffer, ':');
  			temp_buffer++;





More information about the Commits mailing list