Stack storm integration with Zabbix is failing when running register_st2_config_to_zabbix.py

Hello All,

I am trying to integrate stack storm with zabbix and i am following the work plan

when running the step

/opt/stackstorm/virtualenvs/zabbix/bin/python /opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py -z http://. . ./zabbix -u “Admin” -p “*****”

I’m getting error. Saying params are wrong.
{code}
/opt/stackstorm/virtualenvs/zabbix/bin/python /opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py -z http://.../zabbix -u “Admin” -p “*****”
Traceback (most recent call last):
File “/opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py”, line 191, in
main()
File “/opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py”, line 176, in main
mediatype_id = register_media_type(client, options, mediatype_id)
File “/opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py”, line 83, in register_media_type
ret = client.mediatype.create(**params)
File “/opt/stackstorm/virtualenvs/zabbix/lib/python3.6/site-packages/pyzabbix/api.py”, line 82, in fn
args or kwargs
File “/opt/stackstorm/virtualenvs/zabbix/lib/python3.6/site-packages/pyzabbix/api.py”, line 250, in do_request
raise ZabbixAPIException(msg, err[‘code’])
pyzabbix.api.ZabbixAPIException: (“Error -32602: Invalid params., Media type is missing parameters: name while sending {‘jsonrpc’: ‘2.0’, ‘method’: ‘mediatype.create’, ‘params’: {‘description’: ‘StackStorm’, ‘type’: ‘1’, ‘exec_path’: ‘st2_dispatch.py’, ‘exec_params’: ‘-- CHANGE ME : api_url (e.g. https://st2-node/api/v1)\n-- CHANGE ME : auth_url (e.g. https://st2-node/auth/v1)\n-- CHANGE ME : login uername of StackStorm --\n-- CHANGE ME : login password of StackStorm --\n{ALERT.SENDTO}\n{ALERT.SUBJECT}\n{ALERT.MESSAGE}\n’}, ‘id’: ‘1’, ‘auth’: ‘b7e4b784f8dc6a930eccf97471f2b39’}”, -32602)
root@stockstorm:~#

{code}

Can any of you guys help me with the above issue.