[monitoring-plugins] check_snmp.c: switched DEFAULT_TIMEOUT to ...
Jan Wagner
git at monitoring-plugins.org
Sun Oct 4 13:50:10 CEST 2015
Module: monitoring-plugins
Branch: maint
Commit: 6ba26122f4746a7e16272b1b9546342820400a78
Author: Oliver Skibbe <oliskibbe at gmail.com>
Committer: Jan Wagner <waja at cyconet.org>
Date: Fri Mar 6 11:51:45 2015 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6ba2612
check_snmp.c: switched DEFAULT_TIMEOUT to DEFAULT_SOCKET_TIMEOUT (provided by utils.h), already used by help description, see issue #1318
---
plugins/check_snmp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 2c62a23..6d7ec6d 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -41,7 +41,6 @@ const char *email = "devel at monitoring-plugins.org";
#define DEFAULT_PORT "161"
#define DEFAULT_MIBLIST "ALL"
#define DEFAULT_PROTOCOL "1"
-#define DEFAULT_TIMEOUT 1
#define DEFAULT_RETRIES 5
#define DEFAULT_AUTH_PROTOCOL "MD5"
#define DEFAULT_PRIV_PROTOCOL "DES"
@@ -224,7 +223,7 @@ main (int argc, char **argv)
outbuff = strdup ("");
delimiter = strdup (" = ");
output_delim = strdup (DEFAULT_OUTPUT_DELIMITER);
- timeout_interval = DEFAULT_TIMEOUT;
+ timeout_interval = DEFAULT_SOCKET_TIMEOUT;
retries = DEFAULT_RETRIES;
np_init( (char *) progname, argc, argv );
More information about the Commits
mailing list