Xymon Mailing List Archive search

analysis.cfg failed alerting

list Jeremy Laidman
Thu, 23 Feb 2012 09:30:41 +1100
Message-Id: <CAAnki7CC-B5JdbiN1fy2cxbhTB4y9V6L=user-bfdc2ddecebf@xymon.invalid>

On Thu, Feb 23, 2012 at 9:12 AM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
       FILE    %noticeofpowerfailure* red noexist
You're not using the asterisk (*) correctly for a regular expression.
It matches zero or more of the previous character, in this case, "e".
Instead try this:

     FILE    %noticeofpowerfailure.* red noexist

The dot matches anything, and is not a literal dot in regular expressions.

You haven't said what you're trying to do.  The "noexist" check will
generate an alert if the file exists, which might be counter-intuitive
depending on your frame of mind.  Is that what you want?

Cheers
Jeremy