diff options
author | Sahina Bose <sabose@redhat.com> | 2014-04-21 17:36:08 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:37 +0530 |
commit | 89db997887f8b993fd5fcc68860b7c7f09732076 (patch) | |
tree | bed54561fdce5c18246c793dbf746f7d766db27f /config | |
parent | 6d9d04248ea574ffbe94edec9e552232924eb8ff (diff) |
plugins: Server side plugin for self-heal
Server side plugin to check the volume
self heal status
Change-Id: Ia1ee3fb653913360edb1b54b42cce3ed105bdb79
Signed-off-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/gluster-commands.cfg | 5 | ||||
-rw-r--r-- | config/glustercluster.cfg.sample | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index 60d6757..57b76ce 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -91,6 +91,11 @@ define command { command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o quota } +define command { + command_name check_vol_heal_status + command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o self-heal +} + 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 d51688d..191b6ee 100644 --- a/config/glustercluster.cfg.sample +++ b/config/glustercluster.cfg.sample @@ -111,7 +111,7 @@ define service{ # Edit this sample # host_name = the cluster host previously defined for cluster # service_description = Volume-status - <volname> -# check_command = check_vol_status!<cluster-hostgroup-name>!<volume-name> +# check_command = check_vol_quota_status!<cluster-hostgroup-name>!<volume-name> # _VOL_NAME = Volume name ################################################################################ define service{ @@ -123,6 +123,22 @@ define service{ } ################################################################################ +# This defines a Volume Self Heal status service +# Edit this sample +# host_name = the cluster host previously defined for cluster +# service_description = Volume Self-Heal - <volname> +# check_command = check_vol_heal_status!<cluster-hostgroup-name>!<volume-name> +# _VOL_NAME = Volume name +################################################################################ +define service{ + use gluster-service-without-graph + host_name test-cluster + service_description Volume Self-Heal - data-vol + _VOL_NAME data-vol ; MUST DECLARE the custom var _VOL_NAME + check_command check_vol_heal_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) |