summaryrefslogtreecommitdiffstats
path: root/Monitoring/plugins
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-07-11 17:46:24 +0000
committerroot <root@monitoring.shack>2011-07-11 17:47:11 +0000
commit2534de34483a72e8aa73437e3497ae6900e328d0 (patch)
treed8aa45e8387f777cdad3efd5e8db86f163e41913 /Monitoring/plugins
parent60ca5a04cfb52632d35eb313448de34bf4dab36a (diff)
Monitoring: fixed buggy config,Makefile
Diffstat (limited to 'Monitoring/plugins')
-rwxr-xr-xMonitoring/plugins/check_temper4
1 files changed, 2 insertions, 2 deletions
diff --git a/Monitoring/plugins/check_temper b/Monitoring/plugins/check_temper
index f2e0fd32..95191026 100755
--- a/Monitoring/plugins/check_temper
+++ b/Monitoring/plugins/check_temper
@@ -16,12 +16,12 @@ try:
ret = urllib.urlopen(URL).read().split()
date = ret[0]
temps = [float(i) for i in ret[1:]]
- print ("** %s : %s" % (date,' '.join([str(i)+"°C" for i in temps])))
+ print ("** %s : %s" % (date,' '.join([str(i)+"°C" for i in temps])))
if len(temps) != len(thresholds):
raise Exception("Number of temps != number of given thresholds")
for i,temp in enumerate(temps):
if temp > thresholds[i]:
- print ("!! %.2f°C > %.2f°C (field %d)!" %(temp,thresholds[i],i))
+ print ("!! %.2f°°C > %.2f°C (field %d)!" %(temp,thresholds[i],i))
ecode=2
except Exception,e:
print("!! Something awful happened: "+str(e))