From 0dc9fd60dba200c512f38c23d174501529b44f1c Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Mon, 12 Oct 2015 23:55:09 -0400 Subject: [PATCH] ESP: add RAID check --- conf.d/nrpe-commands.cfg | 5 +++++ local.d/esp.cfg | 6 ++++++ 2 files changed, 11 insertions(+) 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 -- 2.34.1