Xymon Mailing List Archive search

hosts wildcards in clients-local.cfg

6 messages in this thread

list Szymon Bakowski · Thu, 10 Jan 2008 12:34:12 +0000 ·
Hello,

Just wanted to ask a quick question (went through the archive, but haven't found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? They do work for me for example in hobbit-clients.cfg but it seems that I can not make it work in clients-local.cfg. In hobbit-clients.cfg I am using for example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.

Any hints ? Thanks.

Kind regards,

Szymon Bakowski

This communication and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received it in error please notify the sender or user-2acb746602e8@xymon.invalid or telephone +44 (0)20 8868 8899. The unauthorised use, disclosure, copying or alteration of this message is forbidden. Ladbrokes Betting and Gaming Limited will not be liable for direct, special, indirect or consequential damage as a result of any virus being passed on, or arising from alteration of the contents of this message by a third party. Please note that in replying to this mail, you are granting the right for that reply to be forwarded to any other individual and to be read by a surrogate in the event that the intended recipient is out of the office or is no longer employed by the company. Any views expressed by an individual within this message do not necessarily reflect the views of the firm.

Registered Office
Ladbrokes Betting & Gaming Limited
Imperial House, Imperial Drive, Rayners Lane, Harrow, Middlesex, HA2 7JW
Tel: +XX (X) XX XXXX XXXX Fax: +XX (X) XX XXXX XXXX
Registered in England Number 775667
list Henrik Størner · Thu, 10 Jan 2008 16:40:42 +0100 ·
quoted from Szymon Bakowski
On Thu, Jan 10, 2008 at 12:34:12PM +0000, user-cdf874ddad3a@xymon.invalid wrote:
Just wanted to ask a quick question (went through the archive, but haven't found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? They do work for me for example in hobbit-clients.cfg but it seems that I can not make it work in clients-local.cfg. In hobbit-clients.cfg I am using for example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.
No, you cannot.

The way around this is to use host "classes". The default class for a
host is the name of the operating system - that's why the "[linux]" and
"[hpux]" etc. sections work. You can change the class of a host either
by configuring it with the CLASS:classname setting in bb-hosts, or by specifying the class on the client when you start the Hobbit client.

It is a bit annoying that you cannot use regexp's in client-local.cfg.
Might be something I change.


Regards,
Henrik
list Szymon Bakowski · Sat, 12 Jan 2008 17:29:11 +0000 ·
quoted from Henrik Størner
On Thu, Jan 10, 2008 at 12:34:12PM +0000, user-cdf874ddad3a@xymon.invalid wrote:
Just wanted to ask a quick question (went through the archive, but haven't
found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? They do
work for me for example in hobbit-clients.cfg but it seems that I can not
make it work in clients-local.cfg. In hobbit-clients.cfg I am using for
example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.
No, you cannot.

The way around this is to use host "classes". The default class for a
host is the name of the operating system - that's why the "[linux]" and
"[hpux]" etc. sections work. You can change the class of a host either
by configuring it with the CLASS:classname setting in bb-hosts, or by
specifying the class on the client when you start the Hobbit client.

It is a bit annoying that you cannot use regexp's in client-local.cfg.
Might be something I change.


Regards,
Henrik

Thank you Henrik for your reply. Classes did help indeed. Can I use
them in other config files like for example in hobbit-clients.cfg ?

Regards
Szymon
list Henrik Størner · Sat, 12 Jan 2008 19:02:35 +0100 ·
On Sat, Jan 12, 2008 at 05:29:11PM +0000, Szymon Bakowski wrote:
On Thu, Jan 10, 2008 at 12:34:12PM +0000, Szymon.Bakowski (at)
quoted from Szymon Bakowski
ladbrokes.co.uk wrote:
Just wanted to ask a quick question (went through the archive, but haven't
found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? They do
work for me for example in hobbit-clients.cfg but it seems that I can not
make it work in clients-local.cfg. In hobbit-clients.cfg I am using for
example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.
No, you cannot.

The way around this is to use host "classes". The default class for a
host is the name of the operating system - that's why the "[linux]" and
"[hpux]" etc. sections work. You can change the class of a host either
by configuring it with the CLASS:classname setting in bb-hosts, or by
specifying the class on the client when you start the Hobbit client.

It is a bit annoying that you cannot use regexp's in client-local.cfg.
Might be something I change.

Thank you Henrik for your reply. Classes did help indeed. Can I use
them in other config files like for example in hobbit-clients.cfg ?
Yes, both hobbit-clients.cfg and hobbit-alerts.cfg support a CLASS=...
way of selecting hosts.


Regards,
Henrik
list Charles Jones · Mon, 14 Jan 2008 09:13:58 -0700 ·
I reported a bug of how setting class does not work when setting it 
client-side (unless it is fixed in latest snapshot), so this may not be 
an option unless they have patched.

-Charles
quoted from Henrik Størner

Henrik Stoerner wrote:
On Sat, Jan 12, 2008 at 05:29:11PM +0000, Szymon Bakowski wrote:
  
On Thu, Jan 10, 2008 at 12:34:12PM +0000, Szymon.Bakowski (at)
      
ladbrokes.co.uk wrote:
    
Just wanted to ask a quick question (went through the archive, but haven't
found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? They do
work for me for example in hobbit-clients.cfg but it seems that I can not
make it work in clients-local.cfg. In hobbit-clients.cfg I am using for
example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.
        
No, you cannot.

The way around this is to use host "classes". The default class for a
host is the name of the operating system - that's why the "[linux]" and
"[hpux]" etc. sections work. You can change the class of a host either
by configuring it with the CLASS:classname setting in bb-hosts, or by
specifying the class on the client when you start the Hobbit client.

It is a bit annoying that you cannot use regexp's in client-local.cfg.
Might be something I change.
      
Thank you Henrik for your reply. Classes did help indeed. Can I use
them in other config files like for example in hobbit-clients.cfg ?
    
Yes, both hobbit-clients.cfg and hobbit-alerts.cfg support a CLASS=...
way of selecting hosts.


Regards,
Henrik

list Massimo Morsiani · Tue, 5 Feb 2008 17:16:45 +0100 ·
Hi Henrik,

you wrote that we can use CLASS=... in hobbit-alerts.cfg (see your
attached email).

But what is the right way to use this tag in hobbit-alerts.cfg?
I didn't find anything in Hobbit man-pages.


Regards.

Massimo Morsiani
Information Technology Dept.
Gilbarco S.p.a.
via de' Cattani, 220/G
50145 Firenze, Italy
tel:	+XX-XXX-XXXXX
fax:	+XX-XXX-XXXXXX
email:	user-32025d8bd22e@xymon.invalid
web:	http://www.gilbarco.it
quoted from Charles Jones


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: sabato 12 gennaio 2008 19.03
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] hosts wildcards in clients-local.cfg

On Sat, Jan 12, 2008 at 05:29:11PM +0000, Szymon Bakowski wrote:
On Thu, Jan 10, 2008 at 12:34:12PM +0000, Szymon.Bakowski (at)
ladbrokes.co.uk wrote:
Just wanted to ask a quick question (went through the archive, but >> haven't found an answer for my question):

Is it possible to use host wildcards in clients-local.cfg file ? >> They do work for me for example in hobbit-clients.cfg but it seems >> that I can not make it work in clients-local.cfg. In >> hobbit-clients.cfg I am using for example as follows:

HOST=%www..\.foo\.com

but it doesn't work in clients-local.cfg.
No, you cannot.

The way around this is to use host "classes". The default class for a
host is the name of the operating system - that's why the "[linux]" >and "[hpux]" etc. sections work. You can change the class of a host >either by configuring it with the CLASS:classname setting in >bb-hosts, or by specifying the class on the client when you start the
Hobbit client.
It is a bit annoying that you cannot use regexp's in
client-local.cfg.
Might be something I change.

Thank you Henrik for your reply. Classes did help indeed. Can I use them in other config files like for example in hobbit-clients.cfg ?
Yes, both hobbit-clients.cfg and hobbit-alerts.cfg support a CLASS=...
way of selecting hosts.


Regards,
Henrik


This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee.  Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law.  If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system.  If you have any questions about this e-mail please notify the sender immediately.