Xymon Mailing List Archive search

Regular expressions

list David Baldwin
Wed, 12 Jun 2013 09:21:02 +1000
Message-Id: <user-1fbea5f2d31a@xymon.invalid>

On 12/06/13 5:07 AM, Root, Paul T wrote:
I can seem to get the hang of this.

 
HOST=* EXHOST=iadccmp1,iadccmp2,apaccmp1,apaccmp2,%stn380esx.*

 
Doesn’t work.  Does the % have to be at the beginning? Does EXHOST not
work for it? Of course, what I really want is:

 
HOST=* EXHOST=%(iad|apa)ccmp.*,%stn380esx.*

 
That didn’t work either.

I think it's all or nothing with regexp.

Try:

HOST=* EXHOST=%(iadccmp1|iadccmp2|apaccmp1|apaccmp2|stn380esx.*)

David.

-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          Leverrier Street Bruce ACT 2617


Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.