summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-04-24 16:35:27 +0530
committerSahina Bose <sabose@redhat.com>2014-05-01 23:22:40 -0700
commitd5f6c2145bb37d7607d3f05329c0efca3c398fae (patch)
tree9aeb1736c3f5ce3681a328847ae4e4e8d6dad5af /config
parentdd16d35b465974b17dfafd29006e8124f04c34e0 (diff)
plugins: Server side plugin for geo-rep
Added server side plugin option for geo-rep status Change-Id: I6f604862ec7d4813298a670b7ed2cc0b448faf23 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7592
Diffstat (limited to 'config')
-rw-r--r--config/gluster-commands.cfg5
-rw-r--r--config/glustercluster.cfg.sample16
2 files changed, 21 insertions, 0 deletions
diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg
index 196ca08..9c3e386 100644
--- a/config/gluster-commands.cfg
+++ b/config/gluster-commands.cfg
@@ -96,6 +96,11 @@ define command {
command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o self-heal
}
+define command {
+ command_name check_vol_georep_status
+ command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o geo-rep
+}
+
define command{
command_name check_cluster_status
command_line $USER1$/gluster/check_cluster_status.py $HOSTNAME$
diff --git a/config/glustercluster.cfg.sample b/config/glustercluster.cfg.sample
index adf823d..e8d73c1 100644
--- a/config/glustercluster.cfg.sample
+++ b/config/glustercluster.cfg.sample
@@ -143,6 +143,22 @@ define service{
}
################################################################################
+# This defines a Volume Geo Replication status service
+# Edit this sample
+# host_name = the cluster host previously defined for cluster
+# service_description = Volume Geo-Replication - <volname>
+# check_command = check_vol_georep_status!<cluster-hostgroup-name>!<volume-name>
+# _VOL_NAME = Volume name
+################################################################################
+define service{
+ use gluster-service-without-graph
+ host_name test-cluster
+ service_description Volume Geo-Replication - data-vol
+ _VOL_NAME data-vol ; MUST DECLARE the custom var _VOL_NAME
+ check_command check_vol_georep_status!test-cluster!data-vol
+}
+
+################################################################################
# This defines a Cluster utilization service
# Edit this sample
# host_name = cluster host previously defined. (The service is under a cluster)