[icinga-checkins] icinga.org: icinga2/master: Adds bool switch for procurve / HP memory to the "snmp-memory" check command

git at icinga.org git at icinga.org
Mon Aug 29 18:24:37 CEST 2016


Module: icinga2
Branch: master
Commit: be40085b3b26bdf3f80942794a24aa2edf231bd6
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=be40085b3b26bdf3f80942794a24aa2edf231bd6

Author: Daniel Helgenberger <daniel.helgenberger at m-box.de>
Date:   Mon Aug 29 16:47:39 2016 +0200

Adds bool switch for procurve / HP memory to the "snmp-memory" check command

fixes #12586

Signed-off-by: Gunnar Beutner <gunnar.beutner at netways.de>

---

 doc/10-icinga-template-library.md  |    1 +
 itl/command-plugins-manubulon.conf |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md
index adaed0d..8768595 100644
--- a/doc/10-icinga-template-library.md
+++ b/doc/10-icinga-template-library.md
@@ -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.
 
diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf
index 73dd4bc..d32a76b 100644
--- a/itl/command-plugins-manubulon.conf
+++ b/itl/command-plugins-manubulon.conf
@@ -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"



More information about the icinga-checkins mailing list