[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Multiple regexp in file content match path
From: |
Nathan |
Subject: |
Multiple regexp in file content match path |
Date: |
Tue, 02 Oct 2007 10:10:57 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20070728) |
..ok the next problem:
Should have said before, this is with the latest stable version of monit
(4.9)
>From http://www.tildeslash.com/monit/doc/manual.php#file_content_testing
"path is an absolute path to a file containing extended regular
expression on every line."
I assume that means you can have multiple regular expressions in the
file, one per line.
So I create a file, foo.regexp, containing the following:
.*\sERROR\s.*
.*\sWARN\s.*
I then have the following config:
check file server.log with path /foo/log/server.log
if match /etc/monit/foo.regexp then
exec "/bin/true"
alert address@hidden
monit fails with the following output:
AssertException: at p.y:2353
aborting..
Aborted
Is this a bug ?
Thanks in advance,
Nathan
- Multiple regexp in file content match path,
Nathan <=