From d5f6c2145bb37d7607d3f05329c0efca3c398fae Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Thu, 24 Apr 2014 16:35:27 +0530 Subject: plugins: Server side plugin for geo-rep Added server side plugin option for geo-rep status Change-Id: I6f604862ec7d4813298a670b7ed2cc0b448faf23 Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/7592 --- config/gluster-commands.cfg | 5 +++++ config/glustercluster.cfg.sample | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'config') 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 @@ -142,6 +142,22 @@ define service{ check_command check_vol_heal_status!test-cluster!data-vol } +################################################################################ +# 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 - +# check_command = check_vol_georep_status!! +# _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 -- cgit