Module: check_mk
Branch: master
Commit: 1e4d569a275e2dde528fa9908b0155aba4e9b9d1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1e4d569a275e2d…
Author: Florian Heigl <floh(a)Klappstuhl.(none)>
Date: Fri Mar 4 11:38:14 2011 +0100
h3c_lanswitch_sensors fixed indent
h3c_lanswitch_cpu fixed indent
---
checks/h3c_lanswitch_cpu | 12 ++++++------
checks/h3c_lanswitch_sensors | 8 ++++----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/checks/h3c_lanswitch_cpu b/checks/h3c_lanswitch_cpu
index b720a22..bb634c3 100644
--- a/checks/h3c_lanswitch_cpu
+++ b/checks/h3c_lanswitch_cpu
@@ -71,15 +71,15 @@ def check_h3c_lanswitch_cpu(item, params, info):
warn, crit = params
for line in info:
if h3c_lanswitch_cpu_genitem(line[0]) == item:
- util = int(line[1])
- infotext = (" - average usage was %d%% over last 5 minutes." % util)
- perfdata = [ ( "usage", util, warn, crit, 0, 100) ]
+ util = int(line[1])
+ infotext = (" - average usage was %d%% over last 5 minutes." %
util)
+ perfdata = [ ( "usage", util, warn, crit, 0, 100) ]
- if util > crit:
+ if util > crit:
return (2, "CRIT" + infotext, perfdata)
- elif util > warn:
+ elif util > warn:
return (1, "WARN" + infotext, perfdata)
- else:
+ else:
return (0, "OK" + infotext, perfdata)
return (3, "UNKNOWN - %s not found" % item)
diff --git a/checks/h3c_lanswitch_sensors b/checks/h3c_lanswitch_sensors
index 1272022..125fb77 100644
--- a/checks/h3c_lanswitch_sensors
+++ b/checks/h3c_lanswitch_sensors
@@ -33,10 +33,10 @@ def check_h3c_lanswitch_sensors(item, params, info):
# the values are: active (1), deactive (2), not-install (3), unsupport (4)
for (endoid, status) in info:
if h3c_lanswitch_genitem(endoid) == item:
- if status == "2":
- return (2, "CRIT - Sensor %s status is %s" % (item, status))
- elif status == "1":
- return (0, "OK - Sensor %s status is %s" % (item, status))
+ if status == "2":
+ return (2, "CRIT - Sensor %s status is %s" % (item, status))
+ elif status == "1":
+ return (0, "OK - Sensor %s status is %s" % (item, status))
else:
return (1, "WARN - Sensor % status is %s" % (item, status))
return (3, "UNKNOWN - Sensor %s not found" % item )