monit-general
[Top][All Lists]
Advanced

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

Re: Not able to disable default alert


From: hans
Subject: Re: Not able to disable default alert
Date: Sun, 29 Apr 2007 22:48:28 -0300

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

On 4/25/07, Sidra Khan <address@hidden> wrote:
Hi,

Sorry for bothering you but how do i unregister from this mailing list?

Thanks,
Sid

On Wed, 2007-04-25 at 21:36 +0200, Martin Pala wrote:
> The alert action is implicit - even if you set the exec action, you will
>   get the alert as well.
>
> If you want to disable the alert, then set the alert filter this way:
>
> --8<--
>     alert address@hidden but not on { change }
> --8<--
>
> (see manual for more details)
>
> Martin
>
> David Anderson wrote:
> > The monit manual says that I can disable the implicit pid-change alert.
> > I want to do this for clamav, as this is restarted regularly by a cron
> > job (because it is a memory hog - restarting it releases memory).
> >
> > I have this in my monit configuration:
> >
> >
> > check process clamd with pidfile /var/run/clamav/clamd.pid
> >    group virus
> >    start program = "/etc/init.d/clamd start"
> >    stop  program = "/etc/init.d/clamd stop"
> >    if changed pid then exec "/bin/true"
> >    if failed unixsocket /var/clamav/clamd.sock for 2 cycles then restart
> >    if 5 restarts within 5 cycles then timeout
> >
> >
> > The crucial line being the one with 'exec "/bin/true"'.
> >
> > However, it appears to have no effect - I still get e-mail alerts when
> > monit detects that the PID has changed. What am I doing wrong?
> >
> > Thanks for your time,
> > David
> >
> >
> >
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general


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



--
-------------------------------------------------------------------------------------------------------------
/"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
\ /   ASCII Ribbon Campaign  . Windows: "Where do you want to go today?"
X  - NO HTML/RTF in e-mail  . Linux: "Where do you want to go tomorrow?"
/ \ - NO Word docs in e-mail . BSD: "Are you guys coming or what?"
-------------------------------------------------------------------------------------------------------------




reply via email to

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