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
Hi Liz,
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
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
participants (2)
-
betsy.schwartz@gmail.com
-
henrik@hswn.dk