Module: check_mk
Branch: master
Commit: 091e506897ea043bfab361fbc1c679807d8ec6af
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=091e506897ea04…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 30 14:56:52 2015 +0200
enterasis_cpu_util: minor code reformatting
---
checks/enterasys_cpu_util | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/checks/enterasys_cpu_util b/checks/enterasys_cpu_util
index f0d9967..172fdbd 100644
--- a/checks/enterasys_cpu_util
+++ b/checks/enterasys_cpu_util
@@ -30,12 +30,11 @@ def inventory_enterasys_cpu_util(info):
# [:-2] to remove the oid end
return [ ( x[0][:-2], "enterasys_cpu_default_levels" ) for x in info ]
-def check_enterasys_cpu_util( item, params, info):
+def check_enterasys_cpu_util(item, params, info):
for core, util in info:
if item == core[:-2]:
- usage = saveint(util) / 10.0
+ usage = int(util) / 10.0
return check_cpu_util(usage, params)
- return 3, "Core not found in agent Outut"
check_info["enterasys_cpu_util"] = {