summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-26 17:22:04 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-26 17:22:04 +0100
commit09559e2bc1472fdd64a4ca288b377e729493d1bc (patch)
tree9c689cf440d83010dcf7a450f8c18fe2dc18956e
parentAdd backup of crm config (diff)
downloadconfig-09559e2bc1472fdd64a4ca288b377e729493d1bc.tar.bz2
config-09559e2bc1472fdd64a4ca288b377e729493d1bc.tar.xz
config-09559e2bc1472fdd64a4ca288b377e729493d1bc.zip
Check mounts directly, not mount services
-rw-r--r--nagios/nrpe.cfg1
-rw-r--r--nagios/objects/cluster.cfg6
-rw-r--r--nagios/objects/commands.cfg5
3 files changed, 9 insertions, 3 deletions
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
@@ -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
}