From ead1e7c5b91584f954074e3cb9c97a39d5f0b46f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 2 Jan 2025 09:40:40 +0000 Subject: Longer nrpe timeouts for some checks and fall back to unknown, not critical --- nagios/objects/commands.cfg | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg index 772e7a3..c680637 100644 --- a/nagios/objects/commands.cfg +++ b/nagios/objects/commands.cfg @@ -40,12 +40,12 @@ define command { define command { command_name check_drbd - command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drbd + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drbd -t 30:UNKNOWN } define command { command_name check_raid - command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_raid + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_raid -t 30:UNKNOWN } define command { @@ -88,6 +88,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_service -a $ARG1$ } +define command { + command_name check_needrestart + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_needrestart -t 30:UNKNOWN +} + ################################################################################ # NOTE: The following 'check_...' commands are used to monitor services on -- cgit v1.2.3