]> granicus.if.org Git - icinga2/commitdiff
Adds bool switch for procurve / HP memory to the "snmp-memory" check command
authorDaniel Helgenberger <daniel.helgenberger@m-box.de>
Mon, 29 Aug 2016 14:47:39 +0000 (16:47 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 29 Aug 2016 16:22:11 +0000 (18:22 +0200)
fixes #12586

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
doc/10-icinga-template-library.md
itl/command-plugins-manubulon.conf

index adaed0d5089ac5323e276d661e7c659f4ba10af2..87685951303cb247e1012a692ef285275890b7ac 100644 (file)
@@ -1806,6 +1806,7 @@ snmp_privpass           | **Required.** SNMP version 3 priv password. No value d
 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_is_hp              | **Optional.** Change OIDs for HP/Procurve 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 73dd4bcc64ae732b086d4f733c3f67d46bcb99b6..d32a76b2e1fbb428ce91cc9e562829dd2bd1c5a5 100644 (file)
@@ -113,6 +113,10 @@ object CheckCommand "snmp-memory" {
                        set_if = "$snmp_is_cisco$"
                        description = "check cisco memory (sum of all memory pools)"
                }
+               "-E" = {
+                       set_if = "$snmp_is_hp$"
+                       description = "check HP / Procurve memory"
+               }
        }
 
        vars.snmp_warn = "94,50"