summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-01-02 09:40:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-01-02 09:40:40 +0000
commitead1e7c5b91584f954074e3cb9c97a39d5f0b46f (patch)
tree2b2996f9c3c012a68d00e31fdccd29c70116d57c
parentAlways ping with ipv4 (diff)
downloadconfig-ead1e7c5b91584f954074e3cb9c97a39d5f0b46f.tar.bz2
config-ead1e7c5b91584f954074e3cb9c97a39d5f0b46f.tar.xz
config-ead1e7c5b91584f954074e3cb9c97a39d5f0b46f.zip
Longer nrpe timeouts for some checks and fall back to unknown, not critical
-rw-r--r--nagios/objects/commands.cfg9
1 files 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