From 83306793066febaa07d5b407d3703f80959932ff Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Oct 2020 18:39:06 +0000 Subject: Add lm sensors checks --- nagios/objects/cluster.cfg | 6 ++++++ nagios/objects/commands.cfg | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'nagios/objects') diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg index bb03a64..451cdf4 100644 --- a/nagios/objects/cluster.cfg +++ b/nagios/objects/cluster.cfg @@ -123,6 +123,12 @@ define service { service_description Store Volume check_command check_disk!10%!5%!/var/store/ } +define service { + use remote-service + hostgroup_name linux-servers + service_description Sensors + check_command check_sensors +} define service { use remote-service host_name defiant diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg index c057b2c..4bf4f67 100644 --- a/nagios/objects/commands.cfg +++ b/nagios/objects/commands.cfg @@ -53,6 +53,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_swap -a $ARG1$ } +define command { + command_name check_sensors + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_sensors +} + define command { command_name check_haproxy command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_haproxy -- cgit v1.2.3