monit-general
[Top][All Lists]
Advanced

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

Re: not receiving alert email


From: Angelo Chen
Subject: Re: not receiving alert email
Date: Tue, 30 Apr 2013 23:55:27 +0800

 if failed url http://admin:address@hidden/ then
        alert

remove the parenthese, it works.


On Tue, Apr 30, 2013 at 10:11 PM, Angelo Chen <address@hidden> wrote:
Hi Martin,

I have this test:

check host sample with address 192.168.1.2
   if failed (url http://admin:address@hidden/) then
        alert

but i got this in log:

'sample' failed protocol test [HTTP] at INET[foo.net:80] via TCP

if I do a :

I got a http 200 response,

anything missing here?

Thanks,

Angelo







On Tue, Apr 30, 2013 at 8:12 PM, Martin Pala <address@hidden> wrote:
See monit manual ... excerpt for testing password protected page content (if you need just the protocol test, omit the content option):

--8<--
check host FOO with address www.foo.bar
      if failed (url http://user:address@hidden:8080/login?querystring and content == 'up') then alert
--8<--



On Apr 30, 2013, at 1:53 PM, Angelo Chen <address@hidden> wrote:

> using a new email address works.
> one thing
> check host sample with address sample.com
>     if failed port 3060 protocol HTTP then
>         alert
>
> if the remote returns 404, it will be considered as failed, how to put in a user name password for basic auth in this case?
>
>
>
> On Tue, Apr 30, 2013 at 6:12 PM, Martin Pala <address@hidden> wrote:
> Hi,
>
> the settings looks correct, please check the monit log file.
>
> Regards,
> Martin
>
>
> On Apr 30, 2013, at 11:36 AM, Angelo Chen <address@hidden> wrote:
>
>> Hi,
>>
>> with following monitrc, I receive an email when monit is started or restarted, but when the host being monitored goes offline, I can not receive any alert email, am I missing something? Thanks,
>>
>> set daemon 30 # with start delay 2 min
>>
>> set mailserver smtp.gmail.com port 587
>>         username "address@hidden" password "sample"
>>         using tlsv1
>>         with timeout 60 seconds
>>
>> set alert address@hidden
>>
>> set logfile /var/log/monit.log
>>
>> set eventqueue
>>       basedir /var/monit
>>
>> check host test with address sample_id
>>     if failed port 3010 protocol HTTP then
>>         alert
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



reply via email to

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