[Xymon] Best way to monitor for configuration value?

Jeremy Laidman jlaidman at rebel-it.com.au
Thu Sep 20 03:29:27 CEST 2012


On 20 September 2012 07:25, Tim McCloskey <tm at freedom.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120920/fd7bcedc/attachment.html>


More information about the Xymon mailing list