http status codes
Issue #4
resolved
It would be great to have an ability to define "good" and "bad" status codes for http checks. For now I have to monitor page that must return 404. Google says others have similar issues with other non-200 http codes.
Comments (6)
-
repo owner -
repo owner -
assigned issue to
- changed component to Monit
- changed version to 5.8
- marked as minor
-
assigned issue to
-
repo owner - changed status to resolved
Custom status code test will be part of next release.
Example usage: Return error if page DOES exist (for success 404 is expected):
if failed port 80 protocol http request "/non/existent.php" status = 404 then alert
If you want to test it, you can get the development version here: https://bitbucket.org/tildeslash/monit/get/master.tar.gz
Compilation:
tar -xzf master.tar.gz cd tildeslash-monit-* ./bootstrap && ./configure && make
The monit binary will be in current directory, you can install it to "/usr/local/bin" using "make install".
-
repo owner - changed component to 1. Monit
-
repo owner - changed component to Monit
-
repo owner - removed version
Removing version: 5.8 (automated comment)
- Log in to comment
A bit unorthodox, but I see your point and it does make sense to be able to test and declare failure on any HTTP status code returned by the server.