|
From: | Martin Pala |
Subject: | Re: [monit] monitor checksum and timestamp |
Date: | Mon, 28 Jul 2008 21:22:40 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.15) Gecko/20080615 Iceape/1.1.10 (Debian-1.1.10-1) |
In you case it could be possible to simplify the test probably to use timestamp only?
The timestamp checks the mtime and ctime, thus if the file was updated, the timestamps will change. Unless you are rewriting the file over and over regardless of changes (which may be eliminated by the checksum test), the timestamp-only solution could work.
Optionally if you will still need to check both checksum and timestamp, you can use just the checksum test in monit and modify the "/bin/backup" to check the timestamp before the file is copied.
Martin Matthias Teege wrote:
Moin,I need to backup configuration files after changes.check file fluff_conf with path /etc/fluff.conf if changed checksum then exec "/bin/backup fluff.conf" works for this but if I make small changes the file was copied any two minutes. What I need is something like this: check file fluff_conf with path /etc/fluff.conf if changed checksum and timestamp > 30 Minutes then exec "/bin/backup fluff.conf" How do I config monit for that problem? Many thanks Matthias -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |