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/objects/cluster.cfg | 6 +++--- nagios/objects/commands.cfg | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'nagios/objects') 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