Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. (unofficial mirror)
It seems not to be possible to check for HTTP Header content?
I want to check a couple of domains for having the desired Location: statement
(which also should trigger an error if that domain does not have a valid certificate).
This check must work for both http and https. It's a SEO thing ...
Anything must be wrong with this check?
CHECK HOST example.com WITH ADDRESS example.com
IF FAILED URL https://example.com
content == "Location: https://someredirect.com/"
THEN alert
It seems not to be possible to check for HTTP Header content? I want to check a couple of domains for having the desired
Location:
statement (which also should trigger an error if that domain does not have a valid certificate). This check must work for both http and https. It's a SEO thing ...Anything must be wrong with this check?