Hello
I have setup a HTTP status code check:
check host xxx with address xxx every 20 cycles
if failed port 80 protocol http status = 301 for 2 cycles then alert
if failed port 443 protocol https status = 302 for 2 cycles then alert
Using “curl -I” from the same machine monit is running on, I can see that
the response is 302:
HTTP/2 302
However, monit is complaining that the response is 307:
Description: failed protocol test [HTTP] at [xxx]:443 [TCP/IP TLS] -- HTTP
error: Server returned status 307
A request in the browser also shows 302, so I’m not sure what the issue is?
Monit version 5.30.0 on Rocky Linux.