monit-general
[Top][All Lists]
Advanced

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

Re: No alert but error log for "failed url"


From: Nestor Urquiza
Subject: Re: No alert but error log for "failed url"
Date: Wed, 10 Nov 2010 14:12:50 -0500

Sometimes you just have to write it down and send to thousands of
people before you find a workaround. Using parenthesis has solved this
issue for me:

if (failed url https://portal.krfs.com/web/guest and content ==
"loginme") then alert


On Wed, Nov 10, 2010 at 1:41 PM, Nestor Urquiza
<address@hidden> wrote:
> Hi guys,
>
> I have been struggling with this for a while now (monit 5.2.1). I see
> no google results neither similar issues in the mailing archives so I
> am almost certain I am missing some configuration or this is a problem
> with latest versions of monit.
>
> 1) First I configure a regular expression I know will not match the
> server response to be sure an error is triggered. So in /etc/monitrc:
> check host portal.krfs.com with address portal.krfs.com
>  if failed url https://mysite.com and content == "loginme" then alert
> group server
>
>
> 2) I can see monit complaining from logs. In /var/log/messages:
> Nov 10 13:17:24 p2365879 monit[1270]: HTTP error: Failed regular
> expression test on content returned from server
> Nov 10 13:17:24 p2365879 monit[1270]: 'mysite.com' failed protocol
> test [HTTP] at INET[mysite.com:443] via TCPSSL
>
> 3) No email alert is received though. Email is working as I get
> notified when monit stops and starts. In /var/log/maillog:
> Nov 10 13:09:26 p2365879 sendmail[1278]: oAAI9O0L001276:
> to=<address@hidden>, delay=00:00:02, xdelay=00:00:02,
> mailer=esmtp, pri=120501, relay=mysmtp.com. [m.y.i.p], dsn=2.0.0,
> stat=Sent (Thanks)
>
>
> Any help on this is really appreciated. Thanks!
>
> -Nestor
>



reply via email to

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