Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/register_st2_config_to_zabbix.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
SCRIPT_MEDIA_TYPE = '1'

# This is a constant for the metadata of MediaType to be registered
ST2_MEDIA_NAME = 'StackStorm'
ST2_DISPATCHER_SCRIPT = 'st2_dispatch.py'
ST2_ACTION_NAME = 'Dispatching to StackStorm'

Expand Down Expand Up @@ -70,6 +71,7 @@ def register_media_type(client, options, mediatype_id=None):

# send request to register a new MediaType for StackStorm
params = {
'name' : ST2_MEDIA_NAME,
'description': 'StackStorm',
'type': SCRIPT_MEDIA_TYPE,
'exec_path': ST2_DISPATCHER_SCRIPT,
Expand Down