Regex Services?

Aaron Devey adevey at omniture.com
Wed Aug 1 00:59:23 CEST 2007


I've never used regex in services.  Assuming it's possible in this case,
a workaround for the comma might be:

^(host|gost)\d\d?\.\w+\.\w+$


-Aaron


Kerry Milestone wrote:
> When trying to verify with Nagios, it seems to stop reading the string 
> on the first comma it comes accross.  The Nagios documentation is a 
> little light with how to use regex other than using wildcards.
>
> Is what I am trying to do, actually possible?
>
> Cheers.
>
>
> Error: Could not find any host matching '^(host|gost)\d{1'
>
>
>   
>> kerry,
>>
>> note
>>
>> ^(host|gost)\d{1,2}\.\w+\.$
>>
>> change it to 
>> ^(host|gost)\d{1,2}\.\w+\.\w+$
>>
>> and test again.
>>
>> Learner
>>   
>>     
>
>
> -------------------------------------------------------------------------
> 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
>
>   


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