Xymon Mailing List Archive search

ANALYSIS.CFG evaluation order question

list Robert Herron
Wed, 14 May 2014 16:16:22 -0400
Message-Id: <CANNwAgUavXRPY4g22jOcso5m==user-d52a6fe70f56@xymon.invalid>

Please disregard this question.  I found the answer in the man pages for
hobbit-client.cfg and analysis.cfg.  And the answer is yes, the file is
still evaluated from top to bottom.


Robert Herron
user-8b27ea4290da@xymon.invalid


On Wed, May 14, 2014 at 11:43 AM, Robert Herron <user-8b27ea4290da@xymon.invalid>wrote:
Currently running Xymon 4.2.3 and on the verge of upgrading to 4.3.17.
Given the various filename changes involved with 4.3.x move, I'm reviewing
and cleaning my config files.

The last block of documentation in my current hobbit-clients.cfg says:

"Rules are evaluated from the top of this file and down, and the first
matching rule is used. So you should put the specific rules first, and the
generic rules last."

Is this still true?

The ~/xymon-4.2.3/hobbitd/etcfiles/hobbit-clients.cfg and
~/xymon-4.3.17/xymond/etcfiles/analysis.cfg do not have this block or
anything on order of evaluation.

Basically, I want to verify db1 goes RED for a load of 35, db[3-5] at 22,
and everything else at 10 using this configuration:
HOST=%db1
        LOAD    33.0 35.0
HOST=%db(1|3|4|5)
        LOAD    17.0 22.0
        PROC    tnslsnr
        PROC    ntpd
        PROC    postfix
DEFAULT
        # These are the built-in defaults.
        UP      1h
        LOAD    5.0 10.0

Thanks.


Robert Herron
user-8b27ea4290da@xymon.invalid