]> 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)
committerJean Flach <jean-marcel.flach@netways.de>
Thu, 14 Jan 2016 16:50:37 +0000 (17:50 +0100)
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
fixes #10920

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

index aaddd3a2a50efac31d77d89a82e73a0cb04337f8..c01047c2fa040a8ec05a51c2ca255014320c4793 100644 (file)
@@ -949,6 +949,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 9049fda33dac21f7c797eb9fbda264fd24512b9f..e9d27d93d8997536b35716134db36d1242c42ef9 100644 (file)
@@ -1383,12 +1383,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" {