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:
Tom Geissler 2015-05-22 11:44:28 +02:00 committed by Michael Friedrich
parent d36477c2d4
commit 8d383c6a19
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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
}