monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new http response codes


From: K. Adam Wolfe
Subject: new http response codes
Date: Mon, 02 Jun 2014 12:53:21 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi Listers,

I'm trying to use monit's new(er) http response code checks and I'm running into an issue.  My check looks like so:

check host some-server address fqdnoftheserver
  if failed
  port  <whatever> protocol http
  and status = 500
then alert


In the logs I see monit is alerting because it's receiving a 200 response (which is not the time to alert).  I was hoping to get alerts only when the response is a 500.  Can that be done?
Or do I need to change it to something like < 200 or maybe != 200?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]