Module: check_mk
Branch: master
Commit: 7a1dce1794cc3820442a5ca0f078c097eca029d1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a1dce1794cc38…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 10 14:19:00 2011 +0100
FIX: blade_health: fix OID specification
---
ChangeLog | 1 +
checks/blade_health | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6297de8..fd456ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@
1.1.12p2:
Checks & Agents:
* FIX: mem.win: Default levels now works, check not always OK
+ * FIX: blade_health: fix OID specification
Multisite:
* FIX: Fixed encoding problem when opening dashboard
diff --git a/checks/blade_health b/checks/blade_health
index 3ad1f6d..1ab2751 100644
--- a/checks/blade_health
+++ b/checks/blade_health
@@ -24,6 +24,14 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+# Example excerpt from SNMP data:
+# .1.3.6.1.4.1.2.3.51.2.2.7.1.0 255
+# .1.3.6.1.4.1.2.3.51.2.2.7.2.1.1.1 1
+# .1.3.6.1.4.1.2.3.51.2.2.7.2.1.2.1 "Good"
+# .1.3.6.1.4.1.2.3.51.2.2.7.2.1.3.1 "No critical or warning events"
+# .1.3.6.1.4.1.2.3.51.2.2.7.2.1.4.1 "No timestamp"
+
+
def inventory_blade_health(info):
if len(info) == 1:
return [(None, None, None)]
@@ -48,7 +56,7 @@ def check_blade_health(_no_item, _no_params, info):
check_info['blade_health'] = ( check_blade_health, "Summary health
state", 0, inventory_blade_health)
-snmp_info['blade_health'] = ( ".1.3.6.1.4.1.2.3.51.2.2.7", [
'1', '2.1.3.1' ])
+snmp_info['blade_health'] = ( ".1.3.6.1.4.1.2.3.51.2.2.7", [
'1.0', '2.1.3.1' ])
snmp_scan_functions['blade_health'] = \
lambda oid: re.match('BladeCenter( Advanced)* Management Module',
oid(".1.3.6.1.2.1.1.1.0"))