From 4529ce7d5e539e42ce9d38d09d3badea3f5247ca Mon Sep 17 00:00:00 2001 From: Nishanth Thomas Date: Tue, 15 Apr 2014 11:53:35 +0530 Subject: Cluster Status: Plugin to display the overall status of cluster This plugin use mk-livestatus to retrieve the status of the all the volumes and provide aggregrate status of the cluster Addressed review comments Change-Id: Ia83b41cfdc6dcfc1f379c024ba6ea33f9ccfe598 Signed-off-by: Nishanth Thomas --- config/gluster-commands.cfg | 5 +++++ config/gluster-templates.cfg | 1 + config/glustercluster.cfg.sample | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index c2fe324..73b9e7a 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -80,3 +80,8 @@ define command { command_name check_vol_quota_status command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o quota } + +define command{ + command_name check_cluster_status + command_line $USER1$/gluster/check_cluster_status.py $HOSTNAME$ +} diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index eaffcda..a1da860 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -18,6 +18,7 @@ define host { use gluster-generic-host register 0 _gluster_entity Cluster + check_command check_cluster_status } define host{ diff --git a/config/glustercluster.cfg.sample b/config/glustercluster.cfg.sample index c7de065..d51688d 100644 --- a/config/glustercluster.cfg.sample +++ b/config/glustercluster.cfg.sample @@ -28,7 +28,6 @@ define host{ 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 } ################################################################################ -- cgit