[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] monitor checksum and timestamp

From: Martin Pala
Subject: Re: [monit] monitor checksum and timestamp
Date: Tue, 29 Jul 2008 19:44:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080615 Iceape/1.1.10 (Debian-1.1.10-1)

Matthias Teege wrote:
In you case it could be possible to simplify the test probably to use timestamp only?

I'm not sure how to check this.

check file fluff_conf with path /etc/fluff.conf
 if timestap < 30 minutes
   then exec "/bin/backup fluff.conf"

will probably backup the file more then one time.

Many thanks

That's true ... to fix this, you can set the service to be checked just once per 30 minutes - you can skip cycles using the "every <x> cycles" statements.

For example if monit is set to check every minute (60s), you can skip 30 cycles (i.e. 30 minutes):

set daemon 60

check file fluff_conf with path /etc/fluff.conf
 every 30 cycles
 if changed checksum then exec "/bin/backup fluff.conf"

=> the test will be evaluated once per 30 minutes and if the checksum changed, the backup will be performed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]