Hi
I got 3 rabbitMQ nodes all with the same monitoring username. All do the same response so examples only show 1.
Getting data from the webserver API (basic http authentication) works from my workstation using a browser and by using curl.
Curl command looks like:
Using the same address with a http agent in zabbix server works fine as well.
Using the same address with zabbix agent works as well but the key is ofcourse different:
So far so good.
Now the strange thing come to play.
When I want to retrieve a different endpoint (the nodes endpoint)
This works fine with curl and browser on my system.
When i logon to the host and change and use localhost this works fine on the host as well.
When I use http agent or zabbix-agent route I get an empty response.
When I change the credentials to wrong ones, I get an authentication failure.
I just can't find the reason for this empty response and hopefully someone can point me to the right directions.
BTW other endpoints like /api/vhosts also give an empty response, where retrieving the information directly from my own system works fine.
Zabbix 7.0.0
I got 3 rabbitMQ nodes all with the same monitoring username. All do the same response so examples only show 1.
Getting data from the webserver API (basic http authentication) works from my workstation using a browser and by using curl.
Curl command looks like:
Code:
curl -i -u username:password http://webserverip1:15672/api/overview
Using the same address with zabbix agent works as well but the key is ofcourse different:
Code:
web.page.regexp[http://username:password@localhost,/api/overview,15672,^({.*)$,,]
Now the strange thing come to play.
When I want to retrieve a different endpoint (the nodes endpoint)
Code:
curl -i -u username:password http://webserverip1:15672/api/nodes
When i logon to the host and change and use localhost this works fine on the host as well.
When I use http agent or zabbix-agent route I get an empty response.
When I change the credentials to wrong ones, I get an authentication failure.
I just can't find the reason for this empty response and hopefully someone can point me to the right directions.
BTW other endpoints like /api/vhosts also give an empty response, where retrieving the information directly from my own system works fine.
Zabbix 7.0.0
it's not a bug but an user error. The /nodes page gives a slightly different output, This Json output doesn't start with { but with [{ the causes that the regex doesn't match. Change the regex part to
Comment