summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
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
}
################################################################################