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

Cannot integrate Zabbix 7.0 in Grafana #1917

Open
danjorz opened this issue Nov 20, 2024 · 1 comment
Open

Cannot integrate Zabbix 7.0 in Grafana #1917

danjorz opened this issue Nov 20, 2024 · 1 comment

Comments

@danjorz
Copy link

danjorz commented Nov 20, 2024

[Hi,]

I would like to ask if anyone from you guys have successfully integrate Zabbix 7.0.4 version in Grafana? I try to add data source but unfortunately it gives me this error.
Image

I also try to test the API using curl and gives me this error.
Image

Here are the version of softwares that I'm using.
Image

Asking for your help guys. Thank you.

@danjorz danjorz changed the title Cannot integrate Zabbix Cannot integrate Zabbix 7.0 in Grafana Nov 20, 2024
@btnrsec
Copy link

btnrsec commented Nov 21, 2024

I have successfully integrated this plugin with Zabbix 7.0.4.

First the apiinfo does not call with auth, just try:

curl --request POST \ --url 'https://example.com/zabbix/api_jsonrpc.php' \ --header 'Content-Type: application/json-rpc' \ --data '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}'

This should return:

{ "jsonrpc": "2.0", "result": "7.0.4", "id": 1 }

Then try with a user and password:

curl --request POST \ --url 'https://example.com/zabbix/api_jsonrpc.php' \ --header 'Content-Type: application/json-rpc' \ --data '{"jsonrpc":"2.0","method":"user.login","params":{"username":"Admin","password":"zabbix"},"id":1}'

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

I would confirm the user credentials (do not use auth as it is depreciated, either use user and password or Authorization Bearer) and the user permissions.

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

2 participants