Antwort: Regular Expression Expansion

Ingo Lantschner ingo.lantschner at edvg.at
Fri May 5 13:39:04 CEST 2006


nagios-users-admin at lists.sourceforge.net 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060505/77fb314f/attachment.html>


More information about the Users mailing list