[Nagiosplug-checkins] CVS: nagiosplug/plugins check_snmp.c,1.24.2.1,1.24.2.2
Karl DeBisschop
kdebisschop at users.sourceforge.net
Thu May 8 20:00:08 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv3817/plugins
Modified Files:
Tag: r1_3_0
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.24.2.1
retrieving revision 1.24.2.2
diff -C2 -r1.24.2.1 -r1.24.2.2
*** check_snmp.c 7 Apr 2003 21:23:28 -0000 1.24.2.1
--- check_snmp.c 9 May 2003 02:59:52 -0000 1.24.2.2
***************
*** 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