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
2 files changed, 6 insertions, 0 deletions
diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg
index f1b94a4..60d6757 100644
--- a/config/gluster-commands.cfg
+++ b/config/gluster-commands.cfg
@@ -95,3 +95,8 @@ define command{
command_name check_cluster_status
command_line $USER1$/gluster/check_cluster_status.py $HOSTNAME$
}
+
+define command{
+ command_name submit_external_command
+ command_line $USER1$/gluster/submit_external_command.py -c '$ARG1$' -H '$ARG2$' -s '$ARG3$' -t '$ARG4$'
+}
diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg
index d9bebf9..8af2931 100644
--- a/config/gluster-templates.cfg
+++ b/config/gluster-templates.cfg
@@ -58,6 +58,7 @@ define service {
use gluster-passive-service
register 0
_GLUSTER_ENTITY Brick
+ event_handler submit_external_command!'SCHEDULE_SVC_CHECK'!$HOSTGROUPNAME$!'Volume Status - $_SERVICEVOL_NAME$'!'$LONGDATETIME$'
}
define service {