Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Nagios-users] Regex Services?

From: Aaron Devey <adevey(at)omniture.com>
Date: Tue Jul 31 2007 - 18:59:23 EDT


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@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@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 Received on Tue Jul 31 18:59:47 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:49:23 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library