From: Alex Dehnert Date: Tue, 13 Oct 2015 03:55:09 +0000 (-0400) Subject: ESP: add RAID check X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=0dc9fd60dba200c512f38c23d174501529b44f1c;p=sysconfig%2Fnagios3.git ESP: add RAID check --- diff --git a/conf.d/nrpe-commands.cfg b/conf.d/nrpe-commands.cfg index c9cab85..7f89780 100644 --- a/conf.d/nrpe-commands.cfg +++ b/conf.d/nrpe-commands.cfg @@ -3,6 +3,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ } +define command { + command_name check_nrpe_generic + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_$ARG1$ +} + define command { command_name check_remote_users command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_users diff --git a/local.d/esp.cfg b/local.d/esp.cfg index bb2a180..9ee8107 100644 --- a/local.d/esp.cfg +++ b/local.d/esp.cfg @@ -111,6 +111,12 @@ define service { max_check_attempts 7 ; disk usage spikes briefly during backups or something, so give it ~7 minutes instead of ~4 before triggering } +define service { + use nrpe-esp-service + service_description HPRAID + check_command check_nrpe_generic!hpraid +} + define service { use nrpe-esp-service service_description ZOMBIE-PROC