From 3ae1ad0a6739d1841926bba48c3a61a9f8957ff4 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 11 Jul 2011 19:28:46 +0200 Subject: added config for nagios for speed/temp scripts plugins/*: fixed some usability issues, Warning -> !! , Info -> ** , Stupid -> ?? conf/shack_guests: contains config for miner --- Monitoring/conf/hostgroups_nagios2.cfg | 31 ++++++++++++++++++++++++++++++ Monitoring/conf/shack_guests.cfg | 35 +++++++++++++++++++++++++++++----- 2 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 Monitoring/conf/hostgroups_nagios2.cfg (limited to 'Monitoring/conf') diff --git a/Monitoring/conf/hostgroups_nagios2.cfg b/Monitoring/conf/hostgroups_nagios2.cfg new file mode 100644 index 00000000..63acbf50 --- /dev/null +++ b/Monitoring/conf/hostgroups_nagios2.cfg @@ -0,0 +1,31 @@ +# 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 + } + + diff --git a/Monitoring/conf/shack_guests.cfg b/Monitoring/conf/shack_guests.cfg index faf9f833..7a8cc088 100644 --- a/Monitoring/conf/shack_guests.cfg +++ b/Monitoring/conf/shack_guests.cfg @@ -34,21 +34,46 @@ define host{ alias Chinaman Bitcoin Mining Rig 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 hostgroups bitcoin-miner,tinc-nodes,ssh-servers contact_groups krebsminers } +define command { + command_name check_speed + command_line $USER1$/check_speed $_HOSTSPEED_URL$ $ARG1$ + } define service { host_name chinaman - service_description BTCGUILD hash rate checker + service_description Temperature Checker use generic-service - check_command check_btcguild_miner!4bf1543d2eca8648277bdc66c326eea9!txgen_chinaman!450 + check_command check_temper!85 85 65 45 contact_groups krebsminers } - define command { - command_name check_btcguild_miner - command_line $USER1$/check_btcguild_miner $ARG1$ $ARG2$ $ARG3$ + command_name check_temper + command_line $USER1$/check_speed $_HOSTTEMPER_URL$ $ARG1$ + } +define service { + host_name chinaman + service_description Mining Speed checker + use generic-service + check_command check_speed!600 + contact_groups krebsminers } +#define service { +# host_name chinaman +# service_description BTCGUILD hash rate checker +# use generic-service +# check_command check_btcguild_miner!4bf1543d2eca8648277bdc66c326eea9!txgen_chinaman!450 +# contact_groups krebsminers +# } + + +#define command { +# command_name check_btcguild_miner +# command_line $USER1$/check_btcguild_miner $ARG1$ $ARG2$ $ARG3$ +# } define host{ use generic-host -- cgit v1.2.3