Add timeout to snmpv3 check

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>

fixes #10920
This commit is contained in:
Sebastian Brückner 2015-11-27 14:50:15 +01:00 committed by Jean Flach
parent d9fac2b613
commit 46000497cf
2 changed files with 3 additions and 0 deletions

View 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

View 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" {