summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nagios/objects/cluster.cfg24
-rw-r--r--nagios/objects/commands.cfg9
2 files changed, 33 insertions, 0 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index 5cf7861..ad809be 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -484,6 +484,30 @@ define service {
check_command check_crm
process_perf_data 0
}
+define service {
+ use local-service
+ host_name virtualip
+ service_description GlusterFS home
+ check_command check_glusterfs!home
+}
+define service {
+ use local-service
+ host_name virtualip
+ service_description GlusterFS git
+ check_command check_glusterfs!git
+}
+define service {
+ use local-service
+ host_name virtualip
+ service_description GlusterFS store
+ check_command check_glusterfs_nospace!store
+}
+define service {
+ use local-service
+ host_name virtualip
+ service_description GlusterFS www
+ check_command check_glusterfs!www
+}
#
# Passive checks
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index c680637..65f9723 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -179,6 +179,15 @@ define command {
command_line $USER1$/check_dns -H $HOSTADDRESS$ -s $HOSTADDRESS$
}
+define command {
+ command_name check_glusterfs
+ command_line sudo $USER1$/check_glusterfs -p -f -l $ARG1$
+}
+define command {
+ command_name check_glusterfs_nospace
+ command_line sudo $USER1$/check_glusterfs -p -f -l $ARG1$ -w 98 -c 99
+}
+
#
# These are sample performance data commands that can be used to send performance
# data output to two text files (one for hosts, another for services). If you