Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while run the register_st2_config_to_zabbix.py #56

Open
Maiky28 opened this issue Aug 30, 2022 · 1 comment
Open

Issues while run the register_st2_config_to_zabbix.py #56

Maiky28 opened this issue Aug 30, 2022 · 1 comment
Labels

Comments

@Maiky28
Copy link

Maiky28 commented Aug 30, 2022

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.

@akhilvadagam
Copy link

can anyone let us know if any other step worked for this error

@arm4b arm4b added the question label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants