Module: check_mk
Branch: master
Commit: baad810bf6434627bec9cb8289dcea1a6bfe876e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=baad810bf64346…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 3 19:17:35 2014 +0100
ibm_imm_health: minor code cleanup
---
checks/ibm_imm_health | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/ibm_imm_health b/checks/ibm_imm_health
index 5f10bde..82a901a 100644
--- a/checks/ibm_imm_health
+++ b/checks/ibm_imm_health
@@ -24,8 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-# Author: Michael Nieporte <micha.nieporte(a)gmail.com> - Based on rsa_health by
Mathias Kettner
-
def ibm_imm_health_scan(oid):
if oid('.1.3.6.1.2.1.1.1.0').lower().endswith(" mips") or \
oid('.1.3.6.1.2.1.1.1.0').lower().endswith(" sh4a"):
@@ -64,5 +62,7 @@ check_info["ibm_imm_health"] = {
'inventory_function': inventory_ibm_imm_health,
'service_description': 'System health',
'snmp_info': ('.1.3.6.1.4.1.2.3.51.3.1',
['4']),
- 'snmp_scan_function': ibm_imm_health_scan,
+ 'snmp_scan_function':
+ lambda oid: oid('.1.3.6.1.2.1.1.1.0').lower().endswith("
mips") or \
+ oid('.1.3.6.1.2.1.1.1.0').lower().endswith("
sh4a"),
}