Just a thought here…but the [a-z]
will only match against lowercase characters. Is that the behaviour you
wanted?
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ingo Lantschner
Sent: May 5, 2006 7:39 AM
Cc:
[email protected]
Subject: Antwort: [Nagios-users]
Regular _expression_ Expansion
[EMAIL PROTECTED]
schrieb am 03.05.2006 05:13:58:
> #dependent_service_description
^Tun.*-(?:Chattanooga|Midlothian)$
> ...
>
> The commented line generates errors on
pre-flight check. It's almost as
> if it cannot handle the alternation (|).
Have I mangled the regular
> _expression_ or is this a peculiarity of
Nagios? Thanks - John
Seems as if it is not clear, which flavor of Regex
is suported in Nagios, I had a similar problem, and could not find a clear
documentation about the regex-suport in Nagios yet.
F.e.
[sw][0-9]{3}[a-z]{2,124}\.company\.net
This should match any string starting with either s or w, followed by exactly 3
digits and a resonable number of characters plus the domain suffix.
But it did not work. May be I am missing some backslashes?
Please, can anyone point us to the right place?
TIA, Ingo.
|