[Nagiosplug-checkins] CVS: nagiosplug/plugins check_snmp.c,1.4,1.5

Subhendu Ghosh sghosh at users.sourceforge.net
Wed Jul 31 22:07:04 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv26529/plugins

Modified Files:
	check_snmp.c 
Log Message:
re-patched exit state comparison

Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** check_snmp.c	1 Aug 2002 04:54:18 -0000	1.4
--- check_snmp.c	1 Aug 2002 05:06:53 -0000	1.5
***************
*** 262,266 ****
  		}
  
! 		result = max (result, iresult);
  
  		if (nlabels > 1 && i < nlabels && labels[i] != NULL)
--- 262,266 ----
  		}
  
! 		result = max_state (result, iresult);
  
  		if (nlabels > 1 && i < nlabels && labels[i] != NULL)
***************
*** 293,297 ****
  	/* WARNING if output found on stderr */
  	if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
! 		result = max (result, STATE_WARNING);
  
  	/* close stderr */
--- 293,297 ----
  	/* WARNING if output found on stderr */
  	if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
! 		result = max_state (result, STATE_WARNING);
  
  	/* close stderr */
***************
*** 300,304 ****
  	/* close the pipe */
  	if (spclose (child_process))
! 		result = max (result, STATE_WARNING);
  
  	if (nunits > 0)
--- 300,304 ----
  	/* close the pipe */
  	if (spclose (child_process))
! 		result = max_state (result, STATE_WARNING);
  
  	if (nunits > 0)





More information about the Commits mailing list