diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 18:39:06 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-10-31 19:04:27 +0000 |
commit | 83306793066febaa07d5b407d3703f80959932ff (patch) | |
tree | b35419dca82b4d01c336fd7ce4cfe7d6d4a5ff4e | |
parent | Add check of RAID arrays (diff) | |
download | config-83306793066febaa07d5b407d3703f80959932ff.tar.bz2 config-83306793066febaa07d5b407d3703f80959932ff.tar.xz config-83306793066febaa07d5b407d3703f80959932ff.zip |
Add lm sensors checks
-rw-r--r-- | nagios/.gitignore | 1 | ||||
-rw-r--r-- | nagios/nrpe.cfg | 1 | ||||
-rw-r--r-- | nagios/objects/cluster.cfg | 6 | ||||
-rw-r--r-- | nagios/objects/commands.cfg | 5 |
4 files changed, 13 insertions, 0 deletions
diff --git a/nagios/.gitignore b/nagios/.gitignore new file mode 100644 index 0000000..54c75f3 --- /dev/null +++ b/nagios/.gitignore @@ -0,0 +1 @@ +nrpe.sensors diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg index 5fbf9e1..65d9000 100644 --- a/nagios/nrpe.cfg +++ b/nagios/nrpe.cfg @@ -19,3 +19,4 @@ command[check_file_age]=/usr/lib64/nagios/plugins/check_file_age -f $ARG1$ -w 18 command[check_haproxy]=/usr/lib64/nagios/plugins/check_haproxy_stats -s /run/haproxy.stats command[check_time]=/usr/lib64/nagios/plugins/check_ntp_time -H uk.pool.ntp.org command[check_swap]=/usr/lib64/nagios/plugins/check_swap $ARG1$ +command[check_sensors]=xargs < /etc/nagios/nrpe.sensors /usr/lib64/nagios/plugins/check_lm_sensors --sanitize 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 @@ -125,6 +125,12 @@ define service { } define service { use remote-service + hostgroup_name linux-servers + service_description Sensors + check_command check_sensors +} +define service { + use remote-service host_name defiant service_description MythTV Volume check_command check_disk!10%!5%!/var/store/mythrecordings/ 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 @@ -54,6 +54,11 @@ define command { } 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 } |