summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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 8715fb0..2aded73 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -233,8 +233,9 @@ main (int argc, char **argv)
233 usage ("Incorrect arguments supplied\n"); 233 usage ("Incorrect arguments supplied\n");
234 234
235 /* create the command line to execute */ 235 /* create the command line to execute */
236 asprintf (&command_line, "%s -m %s -v %s %s %s:%s %s", 236 asprintf (&command_line, "%s -t 1 -r %d -m %s -v %s %s %s:%s %s",
237 PATH_TO_SNMPGET, miblist, proto, authpriv, server_address, port, oid); 237 PATH_TO_SNMPGET, timeout_interval - 1, miblist, proto,
238 authpriv, server_address, port, oid);
238 if (verbose) 239 if (verbose)
239 printf ("%s\n", command_line); 240 printf ("%s\n", command_line);
240 241