]> granicus.if.org Git - icinga2/commitdiff
Add 'snmp_is_cisco' to Manubulon snmp-memory command definition
authorTom Geissler <Tom@d7031.de>
Fri, 22 May 2015 09:44:28 +0000 (11:44 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 18 Jun 2015 12:03:43 +0000 (14:03 +0200)
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>
doc/7-icinga-template-library.md
itl/command-plugins-manubulon.conf

index b30eaf5b5b817c80149037ac934cf001849d3c5b..a2bf939d11d97949cb14076f6edfe133b1a939e5 100644 (file)
@@ -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.
 
index 0850ee2b00aaedd5171c19f787815882ba6b9c05..5223f0205f15381ff3249a9e833b275967ef0100 100644 (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
 }