Module: check_mk
Branch: master
Commit: 537364b53443244f6cf557c4dc9a626b356c0c50
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=537364b5344324…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Jul 4 16:01:29 2014 +0200
ibm_imm_health: Trying to recognice newer versions of IBM IMM now too
---
.werks/998 | 8 ++++++++
ChangeLog | 1 +
checks/ibm_imm_health | 11 +++++++++--
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/.werks/998 b/.werks/998
new file mode 100644
index 0000000..5949e7c
--- /dev/null
+++ b/.werks/998
@@ -0,0 +1,8 @@
+Title: ibm_imm_health: Trying to recognice newer versions of IBM IMM now too
+Level: 1
+Component: checks
+Version: 1.2.5i5
+Date: 1404482411
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 9228911..6b6bb5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
* 0997 New checks and a special agent for ALLNET IP Sensoric devices...
* 0175 logwatch.groups: New logwatch subcheck who can be used to group logfiles
together....
* 1041 aix_memory: new check for RAM and SWAP on AIX
+ * 0998 ibm_imm_health: Trying to recognice newer versions of IBM IMM now too
* 0994 FIX: agent plugin smart: fixed syntax error
* 0989 FIX: logwatch.ec: Fix forwarding multiple messages via syslog/TCP...
* 0943 FIX: if.include: fixed incorrect traffic percentage values in the check output
of if checks...
diff --git a/checks/ibm_imm_health b/checks/ibm_imm_health
index 28d822d..1b0cafd 100644
--- a/checks/ibm_imm_health
+++ b/checks/ibm_imm_health
@@ -26,6 +26,14 @@
# Author: Michael Nieporte <micha.nieporte(a)gmail.com> - Based on rsa_health by
Mathias Kettner
+def ibm_imm_health_scan(oid):
+ print "running"
+ 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"):
+ return True
+ else:
+ return False
+
def inventory_ibm_imm_health(info):
if len(info) > 0:
return [(None, None)]
@@ -57,6 +65,5 @@ 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': lambda oid: \
- oid('.1.3.6.1.2.1.1.1.0').lower().endswith(" mips"),
+ 'snmp_scan_function': ibm_imm_health_scan,
}