Module: check_mk
Branch: master
Commit: f41dcea52e941a0569c7155dba40e6bc408a90a3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f41dcea52e941a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 29 09:25:54 2011 +0100
ibm_imm_health: added last missing scan function
---
.bugs/105 | 7 +++++--
ChangeLog | 1 +
checks/ibm_imm_health | 3 +++
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.bugs/105 b/.bugs/105
index 25a3dfb..04b6e75 100644
--- a/.bugs/105
+++ b/.bugs/105
@@ -1,10 +1,10 @@
Title: SNMP scan: implement missing scan functions
Component: core
+State: done
+Class: cleanup
Benefit: 3
-State: open
Cost: 5
Date: 2011-01-24 16:22:26
-Class: cleanup
Targetversion: 1.2.0
All SNMP checks must define scan functions. Otherwise the scan
@@ -14,3 +14,6 @@ There is just one scan function missing:
$ doc/helpers/validate_checks -a | grep scan
ibm_imm_health snmp_scan manpage
+
+2011-12-29 09:25:41: changed state open -> done
+Should work now.
diff --git a/ChangeLog b/ChangeLog
index a54e183..01e4823 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
been converted from counters to rates. You might need to delete your
existing RRDs of these checks. Sorry, but these have been that last
checks still using counters...
+ * ibm_imm_health: added last missing scan function
1.1.13i2:
diff --git a/checks/ibm_imm_health b/checks/ibm_imm_health
index 52f63b8..8783498 100644
--- a/checks/ibm_imm_health
+++ b/checks/ibm_imm_health
@@ -54,3 +54,6 @@ def check_ibm_imm_health(_no_item, _no_params, info):
check_info['ibm_imm_health'] = ( check_ibm_imm_health, "System health",
0, inventory_ibm_imm_health )
snmp_info['ibm_imm_health'] = ( ".1.3.6.1.4.1.2.3.51.3.1",
["4"] )
+
+snmp_scan_functions['ibm_imm_health'] = lambda oid: \
+ oid('.1.3.6.1.2.1.1.1.0').lower().endswith(" mips")