Antwort: Regular Expression Expansion

Janet Post Janet.Post at excapsa.ca
Fri May 5 16:01:19 CEST 2006


Just a thought here...but the [a-z] will only match against lowercase
characters.  Is that the behaviour you wanted?

 

 

________________________________

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ingo
Lantschner
Sent: May 5, 2006 7:39 AM
Cc: nagios-users at lists.sourceforge.net
Subject: Antwort: [Nagios-users] Regular Expression Expansion

 


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/ae0656b5/attachment.html>


More information about the Users mailing list