summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorOliver Skibbe <oliskibbe@gmail.com>2015-03-06 11:51:45 +0100
committerJan Wagner <waja@cyconet.org>2015-10-04 13:20:32 +0200
commit6ba26122f4746a7e16272b1b9546342820400a78 (patch)
tree1d25aaaceb13f9c5fa2cd0688180086056c28a13 /plugins/check_snmp.c
parentf693f2c0bf5789a89b89e0821ffb741e0368cee5 (diff)
downloadmonitoring-plugins-6ba26122f4746a7e16272b1b9546342820400a78.tar.gz
check_snmp.c: switched DEFAULT_TIMEOUT to DEFAULT_SOCKET_TIMEOUT (provided by utils.h), already used by help description, see issue #1318
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 2c62a230..6d7ec6d9 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -41,7 +41,6 @@ const char *email = "devel@monitoring-plugins.org";
41#define DEFAULT_PORT "161" 41#define DEFAULT_PORT "161"
42#define DEFAULT_MIBLIST "ALL" 42#define DEFAULT_MIBLIST "ALL"
43#define DEFAULT_PROTOCOL "1" 43#define DEFAULT_PROTOCOL "1"
44#define DEFAULT_TIMEOUT 1
45#define DEFAULT_RETRIES 5 44#define DEFAULT_RETRIES 5
46#define DEFAULT_AUTH_PROTOCOL "MD5" 45#define DEFAULT_AUTH_PROTOCOL "MD5"
47#define DEFAULT_PRIV_PROTOCOL "DES" 46#define DEFAULT_PRIV_PROTOCOL "DES"
@@ -224,7 +223,7 @@ main (int argc, char **argv)
224 outbuff = strdup (""); 223 outbuff = strdup ("");
225 delimiter = strdup (" = "); 224 delimiter = strdup (" = ");
226 output_delim = strdup (DEFAULT_OUTPUT_DELIMITER); 225 output_delim = strdup (DEFAULT_OUTPUT_DELIMITER);
227 timeout_interval = DEFAULT_TIMEOUT; 226 timeout_interval = DEFAULT_SOCKET_TIMEOUT;
228 retries = DEFAULT_RETRIES; 227 retries = DEFAULT_RETRIES;
229 228
230 np_init( (char *) progname, argc, argv ); 229 np_init( (char *) progname, argc, argv );