Antwort: Regular Expression Expansion

Hugo van der Kooij hvdkooij at vanderkooij.org
Fri May 5 16:47:47 CEST 2006


On Fri, 5 May 2006, Ingo Lantschner wrote:

> 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?

How about sharing with us the exact settings used in nagios.cfg in this
regard?

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list