diff options
author | makefu <github@syntax-fehler.de> | 2011-07-14 00:53:46 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-07-14 00:53:46 +0200 |
commit | e00cdde8c6ca96bbcda02e082b891f262ad614bf (patch) | |
tree | 69a3bdb5d910ac10ee68fafa48643c35442a6d2c /Monitoring/plugins/check_temper | |
parent | a3e7025c827664a1277b85cc482be67a82b6a6b0 (diff) | |
parent | 80493b71bbd6c43e60205bb50a3d1dd83b8bece2 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Monitoring/plugins/check_temper')
-rwxr-xr-x | Monitoring/plugins/check_temper | 4 |
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)) |