Module: check_mk
Branch: master
Commit: b00707e5a682eb9bcee186420cef699a8efaa6ba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b00707e5a682eb…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Mar 21 14:37:59 2014 +0100
improved scan function of enterasys checks
---
checks/enterasys_cpu_util | 2 +-
checks/enterasys_powersupply | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/enterasys_cpu_util b/checks/enterasys_cpu_util
index 2f99fce..30c8a93 100644
--- a/checks/enterasys_cpu_util
+++ b/checks/enterasys_cpu_util
@@ -42,7 +42,7 @@ check_info["enterasys_cpu_util"] = {
"inventory_function" : inventory_enterasys_cpu_util,
"service_description" : "CPU utilization",
"snmp_info" : ( ".1.3.6.1.4.1.5624.1.2.49.1.1.1.1", [
3 ]), #util in last 1min
- "snmp_scan_function" : lambda oid: oid(".1.3.6.1.2.1.1.2.0")
== ".1.3.6.1.4.1.5624.2.1.169",
+ "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5624.2.1"),
"has_perfdata" : True,
"group" : "cpu_utilization",
"includes" : [ "cpu_util.include" ],
diff --git a/checks/enterasys_powersupply b/checks/enterasys_powersupply
index 81267fe..2c24968 100644
--- a/checks/enterasys_powersupply
+++ b/checks/enterasys_powersupply
@@ -62,6 +62,6 @@ check_info["enterasys_powersupply"] = {
"inventory_function" : inventory_enterasys_powersupply,
"service_description" : "PSU %s",
"snmp_info" : ( ".1.3.6.1.4.1.52.4.3.1.2.1.1", [
OID_END, 2, 3, 4 ]),
- "snmp_scan_function" : lambda oid: oid(".1.3.6.1.2.1.1.2.0")
== ".1.3.6.1.4.1.5624.2.1.169",
+ "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5624.2.1"),
}