|
From: | abdoul |
Subject: | Re: no email on resource limit passed |
Date: | Fri, 10 Nov 2006 11:35:58 +0000 |
There is no support for just failure e-mails in monit currently ... i
think you can use the monit's 'exec' action.
This way you can start simple script which will send you the message
just on failure.
Example:
--8<--
check device rootfs with path /
if space usage > 90% then exec "/send/me/alert.sh"
--8<--
Martin
abdoul wrote:
> Yes this is exactly what i would like to do - fair enough to receive 1st
> alert so we can check right away, but the second one could be skipped
>
> thx
> ab
>
> On 02/11/06, * Jonathan Dance* <address@hidden <mailto: address@hidden>>
> wrote:
>
> I think what he means is only receiving the "failure" e-mails, not the
> "recovery" e-mails. For every event where automated recovery occurs,
> monit sends two e-mails. I might also be interested in such a setting
> for use with SMS notifications.
>
> On 11/2/06, Martin Pala < address@hidden
> <mailto:address@hidden>> wrote:
> > You can use the option of the alert statement to register just
> subset of
> > events for alert. Excerpt from monit manual:
> >
> > --8<--
> > Event filtering can be used to send a mail to different email
> > addresses depending on the events that occurred. For instance:
> >
> > alert address@hidden { nonexist, timeout, resource, icmp, connection }
> > alert address@hidden on { checksum, permission, uid, gid }
> > alert address@hidden
> > --8<--
> >
> > See monit manual for more info.
> >
> > Cheers,
> > Martin
> >
> > abdoul wrote:
> > > Hello
> > >
> > > I wonder if it's possible to disable the alert email when
> resource limit
> > > is passed.
> > >
> > > Thanks
> > > AB
> >
> >
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
> >
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>
> ------------------------------------------------------------------------
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |