summaryrefslogtreecommitdiffstats
path: root/config/glustercluster.cfg.sample
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-03-20 14:14:19 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commitc8596ac20a74959ec2153e1747ec5a9eaa153ee2 (patch)
treeb95fac2504abc869b7846d6ae3a388a40df3a80a /config/glustercluster.cfg.sample
parent8a3133b13a6637eb5ed2fb191603a944ccd9b0f0 (diff)
plugins: Definitions for brick usage
Added nagios command definitions for brick usage Also added a sample file to be used as reference to configure a gluster cluster in Nagios Change-Id: I3db0ce05de997460589b40fd684fff6a4e023fb6 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/51 Reviewed-by: Ramesh N <rnachimu@redhat.com>
Diffstat (limited to 'config/glustercluster.cfg.sample')
-rw-r--r--config/glustercluster.cfg.sample65
1 files changed, 65 insertions, 0 deletions
diff --git a/config/glustercluster.cfg.sample b/config/glustercluster.cfg.sample
new file mode 100644
index 0000000..397c743
--- /dev/null
+++ b/config/glustercluster.cfg.sample
@@ -0,0 +1,65 @@
+################################################################################
+##
+## SAMPLE GLUSTER CLUSTER CONFIGURATION FOR NAGIOS
+##
+## This is an example of how Nagios can be configured to monitor your
+## gluster cluster. Please use this as a reference.
+## The sample configures a cluster "test-cluster" both as a host group
+## and host. Volume and Cluster services are under the host "test-cluster"
+##
+#################################################################################
+
+
+################################################################################
+# Cluster is defined as hostgroup. All hosts in the cluster will have
+# this hostgroup added in the "hostgroups" section
+################################################################################
+define hostgroup{
+ hostgroup_name test-cluster ; The name of the cluster hostgroup
+ alias TEST Cluster ; Long name of the group
+ }
+
+#################################################################################
+# Cluster is also defined as a host. All cluster specific services should
+# have host set as this cluster. For instance, Volume services
+#################################################################################
+define host{
+ use gluster-cluster ; Inherit default values from a template
+ host_name test-cluster ; The name of cluster. SHOULD BE SAME AS hostgroup defined above
+ alias test-cluster ; A longer name to be used for display
+ address dummy ; IP address of the host
+ check_command check_dummy!0
+}
+
+define host{
+ use gluster-host
+ host_name host.ipaddress1
+ alias node-host.ipaddress1
+ address host.ipaddress1
+ hostgroups gluster_hosts,test-cluster ; SHOULD HAVE the cluster it belongs to
+}
+
+define service {
+ use brick-service
+ host_name host.ipaddress1
+ service_description host.ipaddress1:/bricks/b1
+ display_name Brick-host.ipaddress1:/bricks/b1
+ _BRICK_DIR /bricks/b1 ; MUST DECLARE the custom var _BRICK_DIR
+}
+
+define service{
+ use gluster-service-with-graph
+ host_name test-cluster
+ service_description Volume Utilization - data-vol
+ _VOL_NAME data-vol ; MUST DECLARE the custom var _VOL_NAME
+ check_command check_vol_utilization!test-cluster!data-vol!70!90
+}
+
+define service{
+ use gluster-service-with-graph
+ host_name test-cluster
+ service_description Cluster Utilization
+ check_command check_cluster_vol_usage!80!90
+}
+
+