Xymon Mailing List Archive search

Best way to monitor for configuration value?

list Jeremy Laidman
Fri, 21 Sep 2012 09:45:48 +1000
Message-Id: <CAAnki7CQ1PhwawiwvG78uua+UC-N=user-8534fc9a1dd5@xymon.invalid>

On 21 September 2012 01:25, Betsy Schwartz <user-c61747246f66@xymon.invalid> wrote:
To clarify:

We are OK with having the configuration file changing, we are just
No problem.

New requirement:
   var=ON may or may not exist, this is the default state.
   we just need to go yellow if var=OFF
No problem.

Sounds like a custom test is what I need.
Nah, then you gotta deploy and manage the custom test on each of your
client hosts, and be sure to install it on any new hosts that come along.
 I hate that.

In client-local.cfg, add the following:
[name-of-client]
    file:`grep -i "^var=OFF$" /path/to/file >/tmp/varcheck; echo
/tmp/varcheck`

Then, in analysis.cfg, add the following:
HOST=name-of-client
    FILE /tmp/varcheck YELLOW SIZE>0

Won't that do what you need?

J