arnaudsj / monit

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)
http://mmonit.com/monit/
Other
515 stars 63 forks source link

check HTTP(s) header for content #21

Closed sgohl closed 5 years ago

sgohl commented 5 years ago

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
sgohl commented 5 years ago

I consider this project dead, hence close the issue.