..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 [EMAIL PROTECTED]


monit fails with the following output:

        AssertException: at p.y:2353
        aborting..
        Aborted


Is this a bug ?

Thanks in advance,
Nathan


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

Reply via email to