Hi
On Wed, 24 Oct 2007, monit user wrote:

> I am trying to add a secondary email for just certain conditions but that
> email is receiving an alert when I restart monit, too. I only want that
> address to receive mail for the specific situations where I use it. I can't
> figure out what I am doing wrong, never used this feature of monit before...
>
> set alert [EMAIL PROTECTED]
> set alert [EMAIL PROTECTED]
>
> check system 10.0.0.10
>    if loadavg (5min) > 5.0 2 times within 3 cycles then alert
>       alert [EMAIL PROTECTED]
>
> ...
>
> check process httpd with pidfile /var/run/httpd.pid
>     if failed host 10.0.0.10 port 80 then alert
>        alert [EMAIL PROTECTED]



        I had a similar problem with that ;), try to remove the "set
alert", at it seems to set a global alert email, instead, use:

        check proces ....
                if failed host....
                alert [EMAIL PROTECTED] on { timeout,failed}

        Regards
        Pablo


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

Reply via email to