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 | 370f9b3156315102dd08eedfea147f4e57c5518b (patch) | |
tree | ef04bb874e877e89cebf0797c5ce3f3be887cf3a /Monitoring/plugins | |
parent | 2a3f45e9fb50d62d1538abccf66b427bdaec8598 (diff) | |
parent | 2534de34483a72e8aa73437e3497ae6900e328d0 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Monitoring/plugins')
-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)) |