http proto check: response status code handling bug?
Issue #633
resolved
Monit version 5.16 on Ubuntu 16.04.2 LTS.
I have a check that contains:
if failed port 5556 proto http request /health status gt 0 then restart
The service is running; and in the logs I see:
monit[35447]: 'foobar' failed protocol test [HTTP] at [localhost]:5556/health [TCP/IP] -- HTTP error: Server returned status 200
it looks like monit is failing the check even though the status is 200 (greater than 0)?
thanks! Matt
Comments (3)
-
reporter -
repo owner - changed status to resolved
Fixed: Issue
#633: HTTP protocol test: allow to use zero status value.→ <<cset 99b00e4e5a25>>
-
reporter Thanks for the quick fix!
- Log in to comment
btw, changing
gt 0
togt 1
does work as expected. HTH