From: Tom Geissler Date: Fri, 22 May 2015 09:44:28 +0000 (+0200) Subject: Add 'snmp_is_cisco' to Manubulon snmp-memory command definition X-Git-Tag: v2.3.6~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=528b6f9aac0ae824d35dac97cb7b828041004fa2;p=icinga2 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 --- diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index b30eaf5b5..a2bf939d1 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -1200,6 +1200,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. diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf index 0850ee2b0..5223f0205 100644 --- a/itl/command-plugins-manubulon.conf +++ b/itl/command-plugins-manubulon.conf @@ -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 }