Xymon Mailing List Archive search

bb-hosts class override

4 messages in this thread

list Nick Nauwelaerts · Fri, 20 Nov 2009 15:52:53 +0100 ·
hello,
i can't seem to find a way to get the class override in bb-hosts to
work. we have a bunch of servers running several linux versions. them
being linux the report their status like this by default (gathered from
clientdata):
client vl143,eu,compumark,com.linux linux

this will make them fall into the CLASS=linux in hobbit-clients.cfg. i
would however like them to be recognized under a different class, being
sles11. this can be done by changing the CONFIGCLASS on the client in
hobbitclient.cfg, but i'd prefer not to do such configuration on each
client, limiting my configuration to the server. as such, i've added the
following to my bb-hosts:
10.223.136.143  vl143.eu.compumark.com # ssh CLASS=sles11

however, this does not seem to force the client under the sles11 class.

if i change the CONFIGCLASS on the local client, it does work, verifying
that my class configuration in hobbit-clients.cfg on the server is
correct. in this case the client would report it's class as such:
client vl143,eu,compumark,com.linux sles11

how does one use the CLASS directive in bb-hosts? i've seen this in the
mailinglist archives but alas, without a solution.

our server is running xymon 4.2.2 on sles10 sp2 amd64, our clients are a
mix of sles9, sles10 & sles11 all xymon 4.2.2, all amd64.

thx


// nick
list Thomas Eckert · Fri, 20 Nov 2009 16:47:35 +0100 ·
have you tried to use
  CLASS:sles11
quoted from Nick Nauwelaerts
?

user-18dd505c6204@xymon.invalid wrote:
hello,
i can't seem to find a way to get the class override in bb-hosts to
work. we have a bunch of servers running several linux versions. them
being linux the report their status like this by default (gathered from
clientdata):
client vl143,eu,compumark,com.linux linux

this will make them fall into the CLASS=linux in hobbit-clients.cfg. i
would however like them to be recognized under a different class, being
sles11. this can be done by changing the CONFIGCLASS on the client in
hobbitclient.cfg, but i'd prefer not to do such configuration on each
client, limiting my configuration to the server. as such, i've added the
following to my bb-hosts:
10.223.136.143  vl143.eu.compumark.com # ssh CLASS=sles11

however, this does not seem to force the client under the sles11 class.

if i change the CONFIGCLASS on the local client, it does work, verifying
that my class configuration in hobbit-clients.cfg on the server is
correct. in this case the client would report it's class as such:
client vl143,eu,compumark,com.linux sles11

how does one use the CLASS directive in bb-hosts? i've seen this in the
mailinglist archives but alas, without a solution.

our server is running xymon 4.2.2 on sles10 sp2 amd64, our clients are a
mix of sles9, sles10 & sles11 all xymon 4.2.2, all amd64.

thx


// nick

list Nick Nauwelaerts · Fri, 20 Nov 2009 17:18:58 +0100 ·
indeed, i should have mentioned that.

i tried:
CLASS=sles11
CLASS:sles11
CONFIGCLASS=sles11
CONFIGCLASS:sles11

according to the manpage CLASS:sles11 should be the correct syntax.

// nick
quoted from Thomas Eckert

 
-----Original Message-----
From: Thomas Eckert [mailto:user-0871e9ea8ab4@xymon.invalid] Sent: Friday, November 20, 2009 16:48
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] bb-hosts class override

have you tried to use
  CLASS:sles11
?

user-18dd505c6204@xymon.invalid wrote:
hello,
i can't seem to find a way to get the class override in bb-hosts to
work. we have a bunch of servers running several linux versions. them
being linux the report their status like this by default (gathered from
clientdata):
client vl143,eu,compumark,com.linux linux
this will make them fall into the CLASS=linux in hobbit-clients.cfg. i
would however like them to be recognized under a different class, being
sles11. this can be done by changing the CONFIGCLASS on the client in
hobbitclient.cfg, but i'd prefer not to do such configuration on each
client, limiting my configuration to the server. as such, i've added the
following to my bb-hosts:
10.223.136.143  vl143.eu.compumark.com # ssh CLASS=sles11
however, this does not seem to force the client under the sles11 class.
if i change the CONFIGCLASS on the local client, it does work, verifying
that my class configuration in hobbit-clients.cfg on the server is
correct. in this case the client would report it's class as such:
client vl143,eu,compumark,com.linux sles11
how does one use the CLASS directive in bb-hosts? i've seen this in the
mailinglist archives but alas, without a solution.
our server is running xymon 4.2.2 on sles10 sp2 amd64, our clients are a
mix of sles9, sles10 & sles11 all xymon 4.2.2, all amd64.
thx
// nick
list Thomas Eckert · Sat, 21 Nov 2009 19:50:01 +0100 ·
It's not working for me on xymon-4.3.0 SVN-snapshot from 2009.10.10 either.

I'm using
  CLIENT:"foo"
in a few setup and that works fine (this results in CLIENT:"foo" not
showing up on the info-column after "Other tags:") and thus I thought it
was only a syntax-problem ("=" vs. ":").

A quick test of "OS:" with
  OS:"foo"
results in the "OS:"-line on the info-column to disappear and "OS:foo"
showing up after "Other tags:".

I observe the same behaviour for CLASS:"foo" (showing up after "Other
tags:") but a test-entry from server/etc/hobbit-clients.cfg:
  CLASS=foo
    DISK    * 1 2
is not used.

A quick look in lib/loadhosts.c shows that "CLASS:" is the correct syntax.

Thomas
quoted from Nick Nauwelaerts

user-18dd505c6204@xymon.invalid wrote:
indeed, i should have mentioned that.

i tried:
CLASS=sles11
CLASS:sles11
CONFIGCLASS=sles11
CONFIGCLASS:sles11

according to the manpage CLASS:sles11 should be the correct syntax.

// nick

 
-----Original Message-----
From: Thomas Eckert [mailto:user-0871e9ea8ab4@xymon.invalid] Sent: Friday, November 20, 2009 16:48
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] bb-hosts class override

have you tried to use
  CLASS:sles11
?

user-18dd505c6204@xymon.invalid wrote:
hello,
i can't seem to find a way to get the class override in bb-hosts to
work. we have a bunch of servers running several linux 
versions. them
being linux the report their status like this by default 
(gathered from
clientdata):
client vl143,eu,compumark,com.linux linux

this will make them fall into the CLASS=linux in 
hobbit-clients.cfg. i
would however like them to be recognized under a different 
class, being
sles11. this can be done by changing the CONFIGCLASS on the 
client in
hobbitclient.cfg, but i'd prefer not to do such 
configuration on each
client, limiting my configuration to the server. as such, 
i've added the
following to my bb-hosts:
10.223.136.143  vl143.eu.compumark.com # ssh CLASS=sles11

however, this does not seem to force the client under the 
sles11 class.
if i change the CONFIGCLASS on the local client, it does 
work, verifying
that my class configuration in hobbit-clients.cfg on the server is
correct. in this case the client would report it's class as such:
client vl143,eu,compumark,com.linux sles11

how does one use the CLASS directive in bb-hosts? i've seen 
this in the
mailinglist archives but alas, without a solution.

our server is running xymon 4.2.2 on sles10 sp2 amd64, our 
clients are a
mix of sles9, sles10 & sles11 all xymon 4.2.2, all amd64.

thx


// nick