I've been facing the next issue when I run the /opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py.
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., Invalid parameter "/1": the parameter "name" is missing. 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\': \'a6385ad53fa4799d21c713e7a25b13f7\'}', -32602)
I've read at least two similar issues in the forum, but when I do the recommended steps I don't get any solution.
I'm using Zabbix 6.0. Anyone has any idea to solve it?
Hi guys;
I've been facing the next issue when I run the /opt/stackstorm/packs/zabbix/tools/register_st2_config_to_zabbix.py.
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., Invalid parameter "/1": the parameter "name" is missing. 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\': \'a6385ad53fa4799d21c713e7a25b13f7\'}', -32602)
I've read at least two similar issues in the forum, but when I do the recommended steps I don't get any solution. I'm using Zabbix 6.0. Anyone has any idea to solve it?
Best regards.