I’ve installed and configured check_mk raw 1.6.0p8 on Debian 10. I’m monitoring the infrastructure of the Jenkins project and some servers that are inside my own network.
I would like to check the age of a specific file on updates.jenkins.io. In order to check that file, I have configured check_http to follow redirects. However, the check does not seem to follow the redirect.
The service check command that is reported on the check page is:
check_mk_active-http!'-u' '/updates/hudson.tasks.Maven.MavenInstaller.json' '-w' '0.300000' '-c' '0.500000' '--onredirect=follow' '-m' '6000:0' '--sni' '$_HOSTADDRESS_4$'
The output from the check is:
HTTP WARNING: HTTP/1.1 404 Not Found - page size 424 too small - 424 bytes in 0.109 second response time
I thought I might be making a check_mk configuration mistake, so I tried an experiment on a separate computer with the check_http script from monitoring-plugins-2.2. I assume the check_http in check_mk is different, but may have some common ancestry long ago.
When I run the monitoring-plugins check_http script it follows the redirect:
$ plugins/check_http -H updates.jenkins.io -u /updates/hudson.tasks.Maven.MavenInstaller.json -w 0.800000 -c 1.700000 -f follow -m 6000:0
HTTP OK: HTTP/1.1 200 OK - 6753 bytes in 0.406 second response time |time=0.406446s;0.800000;1.700000;0.000000;10.000000 size=6753B;6000;0;0
I see that the check_mk service check is using --onredirect=follow
while the script from monitoring-plugin-2.2 is using -f follow
.
Any recommendations on the mistake I’ve made and how to correct it?