CMK version: 2.3.0p22 OS version: Ubuntu 22.04 lts
Error message: [special_activemq]: Agent exited with code 1: Unable to connect. Credentials might be incorrect: HTTPConnectionPool(host=‘0.0.0.0’, port=8161): Max retries exceeded with url: /admin/xml/queues.jsp (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7eace7195c40>: Failed to establish a new connection: [Errno 111] Connection refused’))CRIT
I’m able to curl with basic auth to this adress and i get the wanted output, but checkmk keeps giving this error ?, i’ve double checked the password a few times that it’s the same i use in curl.
The special agent run on the monitoring server to connect to the activemq server. So, you need to add the known IP-address as mentioned by @JDomian. The 0.0.0.0 on the activemq server is used to listen to all interfaces.
Ah ok!, this was what confused me as i’ve only used local agents baked into the agent before so if i have 20 different servers doing queues, each one needs their own manual configuration ?
Hi.
It depend on you creditials on the server. Have each of them the same, you can handle it with one rule if the server has the same tag, label or folder.
Hi,
But if I understood correctly this field "Server Name: " needs to be the server adress i’m connecting to from the monitoring server, so that would mean each server need’s it’s own config ?
Thank you for the answers!
Maybe you have the Checkmk agent/API integrations option set to “API integrations if configured, else Checkmk agent” selected for your host. I believe this makes the API supersede the agent.