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