Xymon Mailing List Archive search

Best way to monitor for configuration value?

list Jeremy Laidman
Thu, 20 Sep 2012 11:29:27 +1000
Message-Id: <user-6df711da1a92@xymon.invalid>

On 20 September 2012 07:25, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
You could use md5 but if the config file has other changes that you don't
care about then this wont work.  Unless there is only one value that
changes I don't see any other option except an external test, which whould
be easy to implement.
What would be really useful, I think, is the ability to specify a custom
hash command using backticks.  Something like this:

client-local.cfg:
    file:/path/to/file:`/usr/bin/sed -n '/^var=/s/^var=//p' /path/to/file`

analysis.cfg:
    HOST=blabla
        FILE /path/to/file HASH="foo"

J