mirror of https://github.com/Icinga/icinga2.git
Add timeout to snmpv3 check
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de> fixes #10920
This commit is contained in:
parent
d9fac2b613
commit
46000497cf
|
@ -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_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_invert_search | **Optional.** Invert search result and return CRITICAL if found
|
||||||
snmpv3_label | **Optional.** Prefix label for output value.
|
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
|
### <a id="plugin-check-command-snmp-uptime"></a> snmp-uptime
|
||||||
|
|
||||||
|
|
|
@ -1383,12 +1383,14 @@ object CheckCommand "snmpv3" {
|
||||||
value = "$snmpv3_label$"
|
value = "$snmpv3_label$"
|
||||||
description = "Prefix label for output from plugin"
|
description = "Prefix label for output from plugin"
|
||||||
}
|
}
|
||||||
|
"-t" = "$snmpv3_timeout$"
|
||||||
}
|
}
|
||||||
|
|
||||||
vars.snmpv3_address = "$check_address$"
|
vars.snmpv3_address = "$check_address$"
|
||||||
vars.snmpv3_auth_alg = "SHA"
|
vars.snmpv3_auth_alg = "SHA"
|
||||||
vars.snmpv3_priv_alg = "AES"
|
vars.snmpv3_priv_alg = "AES"
|
||||||
vars.snmpv3_seclevel = "authPriv"
|
vars.snmpv3_seclevel = "authPriv"
|
||||||
|
vars.snmpv3_timeout = "10"
|
||||||
}
|
}
|
||||||
|
|
||||||
object CheckCommand "snmp-uptime" {
|
object CheckCommand "snmp-uptime" {
|
||||||
|
|
Loading…
Reference in New Issue