Xymon Mailing List Archive search

regular expressions in analysis.cfg

list Jeremy Laidman
Wed, 6 Mar 2013 21:41:02 +1100
Message-Id: <user-516ee7b76b52@xymon.invalid>

On 6 March 2013 11:04, Phil Crooker <user-e8e31cd73303@xymon.invalid> wrote:
Thanks, it does work on ignore statements with regular expressions but not
with simple strings:

LOG eventlog_application %^warning COLOR=yellow "IGNORE=No externals have
been specified"
LOG eventlog_application %^warning COLOR=yellow IGNORE="No externals have
been specified"
I would have thought both of these would work.  Might be a bug.

If I escape the spaces or if I add the %, it works.
Well that's something.

 But still, this is not logical - quotes are normally after the equal
sign
Well, no.  This is not illogical, just not familiar to you, that's all.
 We're not dealing with a shell script, but a highly-specific configuration
file.  The quoting is consistent across Xymon configuration files.

But the fact that the quoted string with spaces doesn't match is probably a
bug.

and of course it shouldn't be necessary to make this into a regex when it
isn't.
That's true.

Cheers
Jeremy