monit-dev
[Top][All Lists]
Advanced

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

Preliminary log matching support


From: Christian Hopp
Subject: Preliminary log matching support
Date: Tue, 2 Aug 2005 18:48:16 +0200 (CEST)

Hi!

Here is the second preliminary log matching support patch:

1.) cosmetics are corrected

2.) documentation has been updated

3.) parse buffer is 511 byte long

4.) the output is more verbose:

'foobar.log' content line matches regular expression!
Regular expression:
^[a-z]*$
Content:
foobar123

5.) the statement has been extended:

IF [NOT] MATCH {regex|path} THEN action

and

IGNORE [NOT] MATCH {regex|path}

- IGNORE has precedence over IF
- lines matching an IGNORE rule is not anymore checked
- all not empty lines in a file where path points to is added to the match
  list (either IGNORE or IF)
- NOT inverts the IF or IGNORE matching rule accordingly

=> you can do online logchecking with nearly the power of logcheck!

still todo:

* find a regex library which can be shipped with monit source
  (licences,...).  Any ideas?
* examples in the docs

Have fun with it,


Christian

--
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/

Attachment: monit_logmatch_prelim2.patch
Description: Text document


reply via email to

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