Activemq special agent

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.

Any ideas ?

0.0.0.0 cannot be a destination host.

Do you run the curl command using something like curl -v 0.0.0.0:8161 ?

1 Like

yes, curl -u “user:password” http://0.0.0.0:8161/admin/xml/queues.jsp on the server with activemq
I read in activemq documentation that activemq uses 0.0.0.0 :thinking:

Hi.

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.

RG, Christian

1 Like

Ah ok!, this was what confused me as i’ve only used local agents baked into the agent before :sweat_smile: 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.

RG, Christian

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!

Well i got it working for the one host now, but all the other normal services vanished ?

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.
image

2 Likes

oh yeah! thanks for notifying that option, crossed the box and choose the option with api and checkmk, now it works, thanks all :slight_smile:

Also noticed it was default 127.0.0.1 and not 0.0.0.0 like i found in some activemq documentation.