summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorNishanth Thomas <nthomas@redhat.com>2014-04-15 11:53:35 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commit4529ce7d5e539e42ce9d38d09d3badea3f5247ca (patch)
treec67ca568788cad7d5a1b9cde46b99b17151a07c7 /config
parent210b28d84f91050fd4a293653d0f5982ae34f189 (diff)
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 <nthomas@redhat.com>
Diffstat (limited to 'config')
-rw-r--r--config/gluster-commands.cfg5
-rw-r--r--config/gluster-templates.cfg1
-rw-r--r--config/glustercluster.cfg.sample1
3 files changed, 6 insertions, 1 deletions
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
}
################################################################################