Xymon Mailing List Archive search

Analysis.cfg CLASS syntax?

3 messages in this thread

list Elizabeth Schwartz · Wed, 20 Jul 2011 14:47:12 -0400 ·
Figured out my include problem issues but still stuck on using CLASS
in analysis.cfg
should this work?
also, I'm failing utterly to get the CLASS syntax to work in analysis.cfg.

I've got some classes set up and they  works fine in client-local.cfg
but analysis.cfg does not see to see anything with CLASS
For example I have in hosts.cfg

10.100.1.60     db3.example.com # CLASS:db ntp
10.100.1.61     db4.example.com # CLASS:db ntp

I'm using the db CLASS in client-local.cfg and it's fine, does the
right thing. But  If I start a section in analysis.cfg with
HOST=%^db[2|3|4|5|6|8].example.com everything works fine.

But if I change the section to
CLASS=db

nothing happens. Is that the right syntax?
Thanks for any clues
list Henrik Størner · Fri, 29 Jul 2011 18:17:54 +0200 ·
Hi Liz,
quoted from Elizabeth Schwartz
Figured out my include problem issues but still stuck on using CLASS
in analysis.cfg
should this work?
also, I'm failing utterly to get the CLASS syntax to work in analysis.cfg.

I've got some classes set up and they  works fine in client-local.cfg
but analysis.cfg does not see to see anything with CLASS
For example I have in hosts.cfg

10.100.1.60     db3.example.com # CLASS:db ntp
10.100.1.61     db4.example.com # CLASS:db ntp

I'm using the db CLASS in client-local.cfg and it's fine, does the
right thing. But  If I start a section in analysis.cfg with
HOST=%^db[2|3|4|5|6|8].example.com everything works fine.

But if I change the section to
CLASS=db

nothing happens. Is that the right syntax?
Ahem, the syntax in hosts.cfg and analysis.cfg aren't quite in sync.

In hosts.cfg, it is "CLASS:db". In analysis.cfg, you must use "CLASS=db".

Yuck ...


Regards,
Henrik
list Elizabeth Schwartz · Fri, 29 Jul 2011 14:57:40 -0400 ·
Thanks Hendrik! I am using the syntax CLASS=db in analysis.cfg but no joy

Here's an example section. If I comment OUT the first line and comment
IN the second line it doesn't work. I just get the defaults.

(in this particular case, a very noisy test as the *oracle* disk tests
 light up all the hosts like a christmas tree)

HOST=%^db[2|3|4|5|6|8].example.com
#CLASS=db
        MEMPHYS 100 101
        MEMSWAP 85 95
        DISK %.*oracle.* IGNORE
        DISK %.* 80 90
        LOG /export/home/xymon/client/tmp/powermt.out %degraded COLOR=red
        LOG /var/adm/messages %.*NIC.failure.* COLOR=yellow

I'm pretty sure the class is good because I used it in
client-local.cfg to set up a rule that works fine, I get the log I
want on all the hosts:

[db]
log:/export/home/xymon/client/tmp/powermt.out:10240

thanks Betsy