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

The script is not working for me with 6.0 #1

Open
elicro-rimon opened this issue Nov 15, 2022 · 0 comments
Open

The script is not working for me with 6.0 #1

elicro-rimon opened this issue Nov 15, 2022 · 0 comments

Comments

@elicro-rimon
Copy link

I am running the next basic test command:
python3 /usr/lib/zabbix/frontendscripts/update_all_items.py 'Zabbix server'

and I receive the next error:

Traceback (most recent call last):
  File "/usr/lib/zabbix/frontendscripts/update_all_items.py", line 93, in <module>
    main()
  File "/usr/lib/zabbix/frontendscripts/update_all_items.py", line 27, in main
    hostid = hostid_get(token)
  File "/usr/lib/zabbix/frontendscripts/update_all_items.py", line 47, in hostid_get
    hostid = data["result"][0]["hostid"]
IndexError: list index out of range

I printer the json response content to verify that it's not an issue with the API token and the result is:

{'jsonrpc': '2.0', 'result': [], 'id': 1}

I got to the repo from the Youtube videos:

https://www.youtube.com/watch?v=tg2-lqkCDv0

https://www.youtube.com/watch?v=7c9g9GivZOE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant