[Xymon] Two newbie analysis.cfg syntax questions - include file and class syntax

Elizabeth Schwartz betsy.schwartz at gmail.com
Sun Jul 17 05:20:18 CEST 2011


OK this is basic but I can't find an answer or example online
1) what *exactly* is the syntax for including a file in analysis.cfg?
Should it be

include myfile.cfg
or
#include myfile.cfg
or what?

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



More information about the Xymon mailing list