Xymon Mailing List Archive search

CLASS on hobbit-alerts.cfg / bb-hosts

2 messages in this thread

list James · Wed, 8 Jul 2009 20:54:15 +0100 ·
Hi guys, me again - should be the last time I ask hopefully!

I think this one might be a dead end but maybe not - i've done a bit of searching and I can't find any succesful resolution. I'm trying to group our different servers into services, such as "web servers", "database servers" etc in terms of alerting and thought I could use the CLASS definition.

I've set them up such that in bb-hosts we have a server, eg:

10.1.1.1    www1    #    CLASS:www     ssh    http://www1/

And then within hobbit-alerts.cfg I have something such as:

CLASS=www
    MEMSWAP    80    90

However for the life of me I can't get it to work, checking the "info" page of www1 (for example) shows at the bottom that it's reading "CLASS:www" as a separate tag rather than processing it as a class definition. Am I doing something silly? Is there another way I could approach this?

Many thanks!
James
list Alan Sparks · Thu, 09 Jul 2009 09:30:55 -0600 ·
quoted from James
James wrote:
However for the life of me I can't get it to work, checking the "info"
page of www1 (for example) shows at the bottom that it's reading
"CLASS:www" as a separate tag rather than processing it as a class
definition. Am I doing something silly? Is there another way I could
approach this?
 
I've never been able to use CLASS in hobbit-clients either, even though
it is a documented feature.  client-local, yes.  I've asked before
myself, but have never found an answer, so I've had to assume the
implementation is somehow broken. 
-Alan