aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_snmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 8715fb05..2aded73b 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -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);