I have a monit rule which looks like this:

check host example.com with address example.com
  if failed url http://example.com/status
    content == "ok"
    then alert
  group example.com

But when the content doesn't match, instead of reporting a content error, Monit's HTTP status page reports a “connection failure” instead of the expected “content failure”, and the email simply says “failed protocol test”.

Have I misconfigured something? Or is monit normally this vague about failures?

link|improve this question

64% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.