Under Xymon 4.3.25, I'm trying to use the class attribute to group hosts together by what monitoring and alerting they need.
So for each host I have a hosts.cfg line like:
192.0.2.1 somehost.example.com # CLASS:Foo trace ssh
Then in analysis.cfg I have:
CLASS=Foo
PROC this
PROC that
And alerts.cfg has:
CLASS=Foo
SCRIPT=blah
However, the tests in analysis.cfg are not being applied. If I replace CLASS=Foo with HOST=somehost.example.com they work as expected. Also, CLASS=linux seems to work, which implies that the CLASS: directive in the hosts.cfg is being ignored.
As far as I can tell, the messages on xymon's "client" channel don't contain the class name that was specified in hosts.cfg, so xymond_client is using the class that the client sent instead. Other channels, such as "status" do include the class name that was specified in hosts.cfg.
Am I misunderstanding how the class is supposed to be used, or is this a bug?
--
- Steve Hill
Technical Director
Opendium Limited http://www.opendium.com
Direct contacts:
Instant messager: xmpp:user-8cda31fbea61@xymon.invalid
Email: user-8cda31fbea61@xymon.invalid
Phone: sip:user-8cda31fbea61@xymon.invalid
Sales / enquiries contacts:
Email: user-2675bcaab7d4@xymon.invalid
Phone: +XX-XXXX-XXXXXX / sip:user-2675bcaab7d4@xymon.invalid
Support contacts:
Email: user-126f03e2871f@xymon.invalid
Phone: +XX-XXXX-XXXXXX / sip:user-126f03e2871f@xymon.invalid