From d1f79f0c6ffb1cf69247a6d4e8228800537e1074 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 11 Jul 2011 17:46:24 +0000 Subject: Monitoring: fixed buggy config,Makefile --- Monitoring/plugins/check_temper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Monitoring/plugins') 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)) -- cgit v1.2.3