[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [monit] Regex match functionality.
From: |
Pablo Iranzo Gómez |
Subject: |
Re: [monit] Regex match functionality. |
Date: |
Wed, 24 Oct 2007 23:28:29 +0200 (CEST) |
Hi
It seems that there are many "proposed" functionalities that could
be implemented doing something like:
exec "/usr/bin/SOMECOMMAND" with timeout Y seconds
if return==0 then action
if return==2 then action
if return_log regexp "failed" then action
if exec_time > 3 seconds then action
This will allow to test network interfaces, smart status, etc
using already existing utilities from the OS side...
Regards
Pablo
--
Pablo Iranzo GĂłmez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:
Si se encuentra bien, no se preocupe. Se le pasarĂĄ
On Wed, 24 Oct 2007, Martin Pala wrote:
> It is not possible to group the matching lines in one cycle and map it
> to one action now.
>
> I have added the concept here:
> http://www.tildeslash.com/monit/doc/next.php#39
>
> Patches are welcomed if anybody want to help (and be famous via the
> monit contributors list :)
>
>
> Martin
>
>
> Dominic M wrote:
> > I have monit scanning files that can possibly spew a bit of cruft, such
> > as /var/log/messages
> >
> > When something like tomcat gets bounced, it can add up to 30 lines of
> > text on some of my servers. Monit is sending one alert per-line within
> > the cycle duration. Is there a way for it to simply send one e-mail will
> > all regexp matched or (or in the case of me using an exclude file) not
> > matched.
> >
> > This is my conf:
> >
> > check file messages with path /var/log/messages
> > ignore match /etc/monit.d/messages.ignore.cfg
> > if match .* then alert
> >
> >
> > I'm sure there has to be a way for it to just concatenate all matching
> > lines and then send that off once per cycle?
> >
> > --
> > -Dominic M.
> > :wq
> >
> >
> > ------------------------------------------------------------------------
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>