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)

Home Page:http://mmonit.com/monit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check HTTP(s) header for content

sgohl opened this issue · comments

commented

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
commented

I consider this project dead, hence close the issue.