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

Zabbix 7.2 broke connection #67

Closed
mbeccalli opened this issue Jan 13, 2025 · 5 comments · Fixed by #68
Closed

Zabbix 7.2 broke connection #67

mbeccalli opened this issue Jan 13, 2025 · 5 comments · Fixed by #68

Comments

@mbeccalli
Copy link

mbeccalli commented Jan 13, 2025

Hello,

after upgrading to zabbix 7.2 one of our clients server, we cannot connect to it anymore with zabbix-vue. The error is:
Check server configuration in extension options: Error communicating with: <>

I've found some changes in the API auth for 7.2 and was wondering if those changes could be the problem not allowing the connection. I've tried with user auth and API token, the only thing is that it can read the version of zabbix server from the extension options

7.2 changes: https://www.zabbix.com/documentation/current/en/manual/api/changes

@mbeccalli
Copy link
Author

Sorry I forgot to add that following API documentation I can connect and send request with postman

@mbeccalli
Copy link
Author

Hello,

I ended up creating my own dashboard with flask, but if you're interested I've found the problem:
API calls until 7.2 required or allowed (for newer versions that didn't require it) to have the auth token passed with the payload. Since 7.2 sending the token breaks the response.
I've solved by checking the API version from the server and sending the payload for the request accordingly

@GabrieleValente
Copy link

GabrieleValente commented Jan 22, 2025

Ho riscontrato anche io questo problema, come lo hai risolto? Grazie

@mbeccalli
Copy link
Author

I've created my own python script served via flask in a webpage.
The problem is that the API required in old versions, then accepted a value 'auth' with the token in the request.
Now the requests is not working adding that value, it's explained in the API changes I've shared before

The change to the repo has to be done by the creator, a pull request to change the request can be done but I'm no js expert

@mchugh19
Copy link
Owner

Fixed Zabbix 7.0 & 7.2 API access in the 2.2.0 which was just released to the chrome and firefox extension stores.

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

Successfully merging a pull request may close this issue.

3 participants