diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-26 17:22:04 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-26 17:22:04 +0100 |
commit | 09559e2bc1472fdd64a4ca288b377e729493d1bc (patch) | |
tree | 9c689cf440d83010dcf7a450f8c18fe2dc18956e /nagios/objects | |
parent | Add backup of crm config (diff) | |
download | config-09559e2bc1472fdd64a4ca288b377e729493d1bc.tar.bz2 config-09559e2bc1472fdd64a4ca288b377e729493d1bc.tar.xz config-09559e2bc1472fdd64a4ca288b377e729493d1bc.zip |
Check mounts directly, not mount services
Diffstat (limited to 'nagios/objects')
-rw-r--r-- | nagios/objects/cluster.cfg | 6 | ||||
-rw-r--r-- | nagios/objects/commands.cfg | 5 |
2 files changed, 8 insertions, 3 deletions
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 @@ -34,6 +34,11 @@ define command { } 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 } |