mirror of https://github.com/Icinga/icinga2.git
Add 'snmp_is_cisco' to Manubulon snmp-memory command definition
The new var 'snmp_is_cisco' was added to snmp-memory check for use the correct OID with cisco switches. The default is 'false'. fixes #9303 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
d36477c2d4
commit
8d383c6a19
|
@ -1225,6 +1225,7 @@ snmp_authprotocol | **Optional.** SNMP version 3 authentication protocol.
|
|||
snmp_privpass | **Required.** SNMP version 3 priv password. No value defined as default.
|
||||
snmp_warn | **Optional.** The warning threshold.
|
||||
snmp_crit | **Optional.** The critical threshold.
|
||||
snmp_is_cisco | **Optional.** Change OIDs for Cisco switches. Defaults to false.
|
||||
snmp_perf | **Optional.** Enable perfdata values. Defaults to true.
|
||||
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
|
||||
|
||||
|
|
|
@ -110,11 +110,16 @@ object CheckCommand "snmp-memory" {
|
|||
"-f" = {
|
||||
set_if = "$snmp_perf$"
|
||||
}
|
||||
"-I" = {
|
||||
set_if = "$snmp_is_cisco$"
|
||||
description = "check cisco memory (sum of all memory pools)"
|
||||
}
|
||||
}
|
||||
|
||||
vars.snmp_warn = "94,50"
|
||||
vars.snmp_crit = "98,80"
|
||||
vars.snmp_perf = true
|
||||
vars.snmp_is_cisco = false
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue