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.
If you are going to do a regx, you have to use %. I see you are missing it for your HOST Try:
HOST=%* EXHOST=%(iadjapa)ccmp.*,%stn380esx.*
Michael Beatty Sherwin-Williams IT Analyst/Developer michael.beatty at sherwin.com 216-515-7374
On 06/11/2013 03:07 PM, 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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 david.baldwin at ausport.gov.au 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.
On 12 June 2013 09:21, David Baldwin <david.baldwin at ausport.gov.au> wrote:
I think it's all or nothing with regexp.
Yes, this. Paraphrasing the man page for analysis.cfg, the target string is exactly one of: (a) comma-separated list of hostnames (b) "*" to indicate "all hosts" (c) a Perl-compatible regular expression
Pick one. You're trying to mix these and it won't work.
HOST=%* EXHOST=%(iadjapa)ccmp.*,%stn380esx.*
This won't work because "*" is not a valid regular expression in the HOST= part. But the "%" should not be needed there because HOST=* matches item (b).
David's example should work for you because it's one single regular expression - item (c).
J
participants (4)
-
david.baldwin@ausport.gov.au
-
jlaidman@rebel-it.com.au
-
Michael.Beatty@sherwin.com
-
Paul.Root@CenturyLink.com