From 09559e2bc1472fdd64a4ca288b377e729493d1bc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 26 Jun 2021 17:22:04 +0100 Subject: Check mounts directly, not mount services --- nagios/nrpe.cfg | 1 + nagios/objects/cluster.cfg | 6 +++--- nagios/objects/commands.cfg | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'nagios') diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg index e93ea7c..3b074d1 100644 --- a/nagios/nrpe.cfg +++ b/nagios/nrpe.cfg @@ -11,6 +11,7 @@ connection_timeout=300 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -r -w 1.1,1.1,1.1 -c 3,3,3 command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ +command[check_mount]=/usr/lib64/nagios/plugins/check_disk -E $ARG1$ command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 -k command[check_drbd]=/usr/lib64/nagios/plugins/check_drbd -d all -r Primary diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg index 23945f7..59a2fd6 100644 --- a/nagios/objects/cluster.cfg +++ b/nagios/objects/cluster.cfg @@ -276,19 +276,19 @@ define service { use remote-service hostgroup_name linux-servers service_description Home mount - check_command check_service!home.mount + check_command check_mount!/home } define service { use remote-service hostgroup_name linux-servers service_description WWW mount - check_command check_service!var-www-shared.mount + check_command check_mount!/var/www/shared } define service { use remote-service hostgroup_name linux-servers service_description Git mount - check_command check_service!var-git.mount + check_command check_mount!/var/git } define service { use remote-service diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg index 7c9f215..7d2d9d3 100644 --- a/nagios/objects/commands.cfg +++ b/nagios/objects/commands.cfg @@ -33,6 +33,11 @@ define command { command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk -a $ARG1$ $ARG2$ $ARG3$ } +define command { + command_name check_mount + command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mount -a $ARG1$ +} + define command { command_name check_drbd command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drbd -- cgit v1.2.3