Module: check_mk
Branch: master
Commit: 439354d7a5d1c4a89525e05a64a60ced129b5415
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=439354d7a5d1c4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 8 21:09:28 2013 +0200
cisco_cpu: fix it to work together with inline SNMP
---
checks/cisco_cpu | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/cisco_cpu b/checks/cisco_cpu
index a5912e4..d1343f3 100644
--- a/checks/cisco_cpu
+++ b/checks/cisco_cpu
@@ -28,7 +28,7 @@ cisco_cpu_default_levels = (80.0, 90.0)
def check_cisco_cpu(item, params, info):
util = float(info[0][0])
- infotext = "%2.1f%% utilization in last 5minutes" % util
+ infotext = "%2.1f%% utilization in the last 5 minutes" % util
warn, crit = params
perfdata = [("util", util, warn, crit, 0, 100)]
if util >= crit:
@@ -45,6 +45,6 @@ check_info["cisco_cpu"] = {
"has_perfdata" : True,
"group" : "cpu_utilization",
"snmp_scan_function" : lambda oid:
oid(".1.3.6.1.4.1.9.9.109.1.1.1.1.5.1"),
- "snmp_info" : ( ".1.3.6.1.4.1.9.9.109.1.1.1.1.5", [ 1 ]),
+ "snmp_info" : ( ".1.3.6.1.4.1.9.9.109.1.1.1.1", [ 5 ]),
}