[Nagiosplug-checkins] CVS: nagiosplug/plugins check_snmp.c,1.26,1.27

Karl DeBisschop kdebisschop at users.sourceforge.net
Thu May 8 20:01:06 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv4101/plugins

Modified Files:
	check_snmp.c 
Log Message:
cause snmpget try try for 1 second less than the timeout (allowing plugin to force close if needed)

Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** check_snmp.c	7 Apr 2003 21:21:12 -0000	1.26
--- check_snmp.c	9 May 2003 03:00:34 -0000	1.27
***************
*** 234,239 ****
  
  	/* create the command line to execute */
! 	asprintf (&command_line, "%s -m %s -v %s %s %s:%s %s",
! 	          PATH_TO_SNMPGET, miblist, proto, authpriv, server_address, port, oid);
  	if (verbose)
  		printf ("%s\n", command_line);
--- 234,240 ----
  
  	/* create the command line to execute */
! 	asprintf (&command_line, "%s -t 1 -r %d -m %s -v %s %s %s:%s %s",
! 	          PATH_TO_SNMPGET, timeout_interval - 1, miblist, proto,
! 	          authpriv, server_address, port, oid);
  	if (verbose)
  		printf ("%s\n", command_line);





More information about the Commits mailing list