[monitoring-plugins] check_snmp: make calcualtion of timeout value in ...

Michael Kraus git at monitoring-plugins.org
Tue Feb 19 22:00:22 CET 2019


 Module: monitoring-plugins
 Branch: master
 Commit: 9fa449119ccd9f57df9e12d4597804efd2dee3ba
 Author: Michael Kraus <michael.kraus at consol.de>
   Date: Fri Jan 19 15:13:12 2018 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=9fa4491

check_snmp: make calcualtion of timeout value in help output more clear

---

 plugins/check_snmp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index da9638c..88b8f38 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -1207,8 +1207,9 @@ print_help (void)
 	printf ("    %s\n", _("Separates output on multiple OID requests"));
 
 	printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
+	printf ("    %s\n", _("NOTE the final timeout value is calculated using this formula: timeout_interval * retries + 5"));
 	printf (" %s\n", "-e, --retries=INTEGER");
-	printf ("    %s\n", _("Number of retries to be used in the requests"));
+	printf ("    %s%i%s\n", _("Number of retries to be used in the requests (default: "), DEFAULT_RETRIES, _(")"));
 
 	printf (" %s\n", "-O, --perf-oids");
 	printf ("    %s\n", _("Label performance data with OIDs instead of --label's"));



More information about the Commits mailing list