Regular Expression Expansion
John A. Sullivan III
jsullivan at opensourcedevel.com
Wed May 3 05:13:58 CEST 2006
Hello, all. I'm still struggling a bit with regular expression
expansion in Nagios 2.0. Here is a snippet from a config file I have
been playing with:
define servicedependency{
dependent_host_name HammondSGGW.niag
dependent_service_description ^Tun.*-Chattanooga$, ^Tun.*-Midlothian$
#dependent_service_description ^Tun.*-(?:Chattanooga|Midlothian)$
host_name BuffaloSGGW.niag
service_description Niagara_SSH
execution_failure_criteria c
}
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
--
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com
Financially sustainable open source development
http://www.opensourcedevel.com
-------------------------------------------------------
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