summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6882b54)
raw | patch | inline | side by side (parent: 6882b54)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 9 May 2003 03:00:34 +0000 (03:00 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 9 May 2003 03:00:34 +0000 (03:00 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@501 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_snmp.c | patch | blob | history |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 8715fb0515acd777a63e4f48b788972e8d110a1c..2aded73b7e85dbd3653a7638a09624505ef5a5b0 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
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);