Module: check_mk
Branch: master
Commit: b1d59a87a403540eedf78ea4696fe0fd34deb521
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1d59a87a40354…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Apr 24 16:41:33 2017 +0200
4636 Added compatibility for Lenovo blades
Devices are identical to old IBM Blades but with different identifier.
Change-Id: I38d695e7de98884720c88f94f27a6335ac5649cb
---
.werks/4636 | 10 ++++++++++
checks/blade_bays | 2 +-
checks/blade_blades | 2 +-
checks/blade_blowers | 2 +-
checks/blade_health | 2 +-
checks/blade_mediatray | 2 +-
6 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/.werks/4636 b/.werks/4636
new file mode 100644
index 0000000..9ddb8a5
--- /dev/null
+++ b/.werks/4636
@@ -0,0 +1,10 @@
+Title: Added compatibility for Lenovo blades
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1493044817
+Class: feature
+
+Devices are identical to old IBM Blades but with different identifier.
diff --git a/checks/blade_bays b/checks/blade_bays
index 76f4398..5c71402 100644
--- a/checks/blade_bays
+++ b/checks/blade_bays
@@ -97,6 +97,6 @@ check_info["blade_bays"] = {
"3", # powerDomain2
], [ OID_END, "1.1.5", "1.1.6",
"1.1.2", "1.1.1", "1.1.7", "1.1.8" ] ), #
BLADE-MIB
'snmp_scan_function' : lambda oid: \
- re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis) Management
Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
+ re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis|Lenovo Flex
Chassis) Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
'includes' : [ 'elphase.include' ],
}
diff --git a/checks/blade_blades b/checks/blade_blades
index 5d8540f..1ab4c78 100644
--- a/checks/blade_blades
+++ b/checks/blade_blades
@@ -115,6 +115,6 @@ check_info["blade_blades"] = {
5, # bladeHealthState
6, # bladeName
]),
- 'snmp_scan_function' : lambda oid: re.match('(BladeCenter|BladeCenter
Advanced|IBM Flex Chassis) Management Module', \
+ 'snmp_scan_function' : lambda oid: re.match('(BladeCenter|BladeCenter
Advanced|IBM Flex Chassis|Lenovo Flex Chassis) Management Module', \
oid(".1.3.6.1.2.1.1.1.0")) != None,
}
diff --git a/checks/blade_blowers b/checks/blade_blowers
index e255c32..906ad8e 100644
--- a/checks/blade_blowers
+++ b/checks/blade_blowers
@@ -106,5 +106,5 @@ check_info["blade_blowers"] = {
'has_perfdata': True,
'snmp_info': ('.1.3.6.1.4.1.2.3.51.2.2', [3]),
'snmp_scan_function': \
- lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis)
Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
+ lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis|Lenovo
Flex Chassis) Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
}
diff --git a/checks/blade_health b/checks/blade_health
index 41048bf..4705959 100644
--- a/checks/blade_health
+++ b/checks/blade_health
@@ -59,5 +59,5 @@ check_info["blade_health"] = {
'service_description': 'Summary health state',
'snmp_info': ('.1.3.6.1.4.1.2.3.51.2.2.7',
['1.0', '2.1.3.1']),
'snmp_scan_function': \
- lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis)
Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
+ lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis|Lenovo
Flex Chassis) Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
}
diff --git a/checks/blade_mediatray b/checks/blade_mediatray
index e2d5a84..835f71f 100644
--- a/checks/blade_mediatray
+++ b/checks/blade_mediatray
@@ -47,5 +47,5 @@ check_info["blade_mediatray"] = {
'service_description': 'Media tray',
'snmp_info': ('.1.3.6.1.4.1.2.3.51.2.2.5.2', [74,
75]),
'snmp_scan_function': \
- lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis)
Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
+ lambda oid: re.match('(BladeCenter|BladeCenter Advanced|IBM Flex Chassis|Lenovo
Flex Chassis) Management Module', oid(".1.3.6.1.2.1.1.1.0")) != None,
}