]> granicus.if.org Git - icinga2/commitdiff
Add timeout to snmpv3 check
authorSebastian Brückner <mail@invlid.com>
Fri, 27 Nov 2015 13:50:15 +0000 (14:50 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 23 Feb 2016 08:27:45 +0000 (09:27 +0100)
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
fixes #10920

doc/7-icinga-template-library.md
itl/command-plugins.conf

index 9f4a979e8e13ffdc59df630b7a7fe9564d96fc18..1071e0300dee253b2ec5209809f263c482a082ae 100644 (file)
@@ -885,6 +885,7 @@ snmpv3_ereg          | **Optional.** Return OK state (for that OID) if extended
 snmpv3_eregi         | **Optional.** Return OK state (for that OID) if case-insensitive extended REGEX matches.
 snmpv3_invert_search | **Optional.** Invert search result and return CRITICAL if found
 snmpv3_label         | **Optional.** Prefix label for output value.
+snmpv3_timeout       | **Optional.** The command timeout in seconds. Defaults to 10 seconds.
 
 ### <a id="plugin-check-command-snmp-uptime"></a> snmp-uptime
 
index 2f9a26f36065a49278ce873d2194c8260f73223c..e1219f96251dc98e08f3cb3a2f7dd4c019c38ded 100644 (file)
@@ -1163,12 +1163,14 @@ object CheckCommand "snmpv3" {
                                value = "$snmpv3_label$"
                                description = "Prefix label for output from plugin"
                }
+               "-t" = "$snmpv3_timeout$"
        }
 
        vars.snmpv3_address = "$check_address$"
        vars.snmpv3_auth_alg = "SHA"
        vars.snmpv3_priv_alg = "AES"
        vars.snmpv3_seclevel = "authPriv"
+       vars.snmpv3_timeout = "10"
 }
 
 object CheckCommand "snmp-uptime" {