Monit checking URL follow redirects
- by beck
I am looking to use monit to keep an eye on my site. I want it to treat it the site like an external user so am testing the url but it doesn't seem to follow redirects. The content check is being performed on the html of the redirect.
#request works:
if failed url http://www.sharelatex.com/blog/posts/future.html content == "301"
#request fails
if failed url http://www.sharelatex.com/blog/posts/future.html content == "actual content"
Finding out how to get the url check to follow 30X would be great.