diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index aaddd3a2a..c01047c2f 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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. ### snmp-uptime diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 9049fda33..e9d27d93d 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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" {