monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTP status code incorrect


From: Jamie Burchell
Subject: HTTP status code incorrect
Date: Fri, 27 May 2022 18:15:12 +0100

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]