Checkmk Agent Update failure message

Hey,

On my hosts I currently have problems with the update of the agent because the following error message appears:

Failed to connect to agent bakery: 404 Client Error: Not Found for url: https://monitoring.domain.com/deploy_agent.py
Retrying with fallback URL: https://monitoring.domain.com/site/check_mk

I’m not quite sure why the error occurs. Also the update is working via the fallback URL but I won’t to get rid of the ugly error message.

Thanks in advance
n3m0

Hi @n3m0

This URL can’t work because it’s missing the site in there. Because you can install multiple sites on a single server a update URL like this can’t work. You can try it yourself to open the URL and you should get a 404 as well. That’s also probably the reason why you fallback URL is working fine because it defines the site in it.

Can you please provide a screenshot of your agent updater rule?

It should look like this:

Thanks in advance!

Norm

Hi Norm,
thanks for your reply.

Here is the configuration of my agent updater rule:

I’m providing an DNS name and also the site of checkmk which I’m monitoring the host in. Currently there is only one site available.
Nevertheless, this message appears during the agent update.

Greetings
n3m0

You don’t need to override the update info unless you want the updater to work against a specific update server.

Can you remove it and just use

If I remove the update info will the error disappear? Or is it just a advice?

Edit: I removed the update info but the error still occurs.

Detected forced redirect from HTTP to HTTPS. Connecting via HTTPS for now. Consider configuring HTTPS.
Response without json Content-Type
Failed to connect to agent bakery: 404 Client Error: Not Found for url: https://monitoring.domain.com/deploy_agent.py
Retrying with fallback URL: https://monitoring.domain.com/domain/check_mk

I assume you baked new agents and installed the new agent?

Yeah, exactly. But as already mentioned the error still exists.