mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
cause snmpget try try for 1 second less than the timeout (allowing plugin to force close if needed)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@501 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
6882b54364
commit
3bae38aef8
1 changed files with 3 additions and 2 deletions
|
|
@ -233,8 +233,9 @@ main (int argc, char **argv)
|
|||
usage ("Incorrect arguments supplied\n");
|
||||
|
||||
/* 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);
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue