Regex Services?

Kerry Milestone Kerry.Milestone at CacheLogic.com
Wed Aug 1 01:16:50 CEST 2007


hehe... no, not annoyed. 

I have tried much simpler matching expressions too.  I am not sure its 
the regex, but the way Nagios incorperates it.  For instance, putting a 
* into the expression, it matches everything even when there are 
[host|gost] defined.  What I really want to have in, is (host|gost) but 
Nagios doesn't seem to like round brackets.  The expression below will 
match also osth or ostg.

Kerry.


Goksie Learner wrote:
> please dont be annoyed with me.
>
> why dont u consider changing ^[host|gost]\d{1,2}\.\w+\.\w+$
>
> if in perl and other langs that i  like studying... this this matches 
> your request.
>
> Learner


-- 
Kerry Milestone
Network Engineer


-------------------
1 0 ... my two bits


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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