From 0f93bfe3ed37ee36cd5d1599f4c9f40af9094059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Bru=CC=88ckner?= Date: Fri, 27 Nov 2015 14:50:15 +0100 Subject: [PATCH] Add timeout to snmpv3 check Signed-off-by: Jean Flach fixes #10920 --- doc/7-icinga-template-library.md | 1 + itl/command-plugins.conf | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 9f4a979e8..1071e0300 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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. ### snmp-uptime diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 2f9a26f36..e1219f962 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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" {