From 60ca5a04cfb52632d35eb313448de34bf4dab36a Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 11 Jul 2011 17:32:41 +0000 Subject: Monitoring: deleted dupe config --- Monitoring/conf/hostgroups_nagios2.cfg | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Monitoring/conf/hostgroups_nagios2.cfg diff --git a/Monitoring/conf/hostgroups_nagios2.cfg b/Monitoring/conf/hostgroups_nagios2.cfg deleted file mode 100644 index 63acbf50..00000000 --- a/Monitoring/conf/hostgroups_nagios2.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# Some generic hostgroup definitions - -# A simple wildcard hostgroup -define hostgroup { - hostgroup_name all - alias All Servers - members * - } - -# A list of your Debian GNU/Linux servers -define hostgroup { - hostgroup_name debian-servers - alias Debian GNU/Linux Servers - members localhost - } - -# A list of your web servers -define hostgroup { - hostgroup_name http-servers - alias HTTP servers - members localhost - } - -# A list of your ssh-accessible servers -define hostgroup { - hostgroup_name ssh-servers - alias SSH servers - members localhost - } - - -- cgit v1.2.3 From 2534de34483a72e8aa73437e3497ae6900e328d0 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/Makefile | 2 +- Monitoring/conf/shack_guests.cfg | 4 ++-- Monitoring/plugins/check_temper | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Monitoring/Makefile b/Monitoring/Makefile index e1fe7083..794f9262 100644 --- a/Monitoring/Makefile +++ b/Monitoring/Makefile @@ -20,4 +20,4 @@ debian: chown nagios:www-data /var/lib/nagios3 || true chown nagios:www-data /var/lib/nagios3/rw || true chmod g+x /var/lib/nagios3 || true - chmod ug=rwx /var/lib/nagios3/rw/nagios.cmd || true + chmod ugo=rwx /var/lib/nagios3/rw/nagios.cmd || true diff --git a/Monitoring/conf/shack_guests.cfg b/Monitoring/conf/shack_guests.cfg index 7a8cc088..711eb79c 100644 --- a/Monitoring/conf/shack_guests.cfg +++ b/Monitoring/conf/shack_guests.cfg @@ -35,7 +35,7 @@ define host{ address 10.42.0.96 _TINC_ADDRESS 10.7.7.6 _SPEED_URL http://leechi.kicks-ass.org/tmp/live/chinaman_bitcoinslc_live - _TEMPER_URL http://leechi.kicks-ass.org/tmp/live/chinaman_bitcoinslc_live + _TEMPER_URL http://leechi.kicks-ass.org/tmp/live/chinaman_ati_temper hostgroups bitcoin-miner,tinc-nodes,ssh-servers contact_groups krebsminers } @@ -52,7 +52,7 @@ define service { } define command { command_name check_temper - command_line $USER1$/check_speed $_HOSTTEMPER_URL$ $ARG1$ + command_line $USER1$/check_temper $_HOSTTEMPER_URL$ $ARG1$ } define service { host_name chinaman 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