summaryrefslogtreecommitdiffstats
path: root/Monitoring/plugins/check_temper
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-07-14 00:53:46 +0200
committermakefu <github@syntax-fehler.de>2011-07-14 00:53:46 +0200
commit2b4926deba2e1f513bd639ef8faf33931f4adaed (patch)
tree642dfb1530c8e3c9c2f392e03f12767af11cb0c5 /Monitoring/plugins/check_temper
parent919b092801afb6fc60c8840b1772130a1471acca (diff)
parentc2306b21464323443a8b62f29a962becf28fb5c6 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Monitoring/plugins/check_temper')
-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))