On Aug 28, 2008, at 4:43 AM, Art Age Software wrote:
Hi,
A couple monit questions:
1. Let's say I have monit monitoring the checksum of a file. I then
make a change to the file which invalidates the checksum. What is
the
recommended way to tell monit to regenerate the checksum so that it
does not alert and unmonitor the file, but causing the least impact.
So far, the only thing that has worked for me has been to kill and
restart monit itself.
This is simple - just use the "if changed checksum" statement:
--8<--
check file myfile with path /tmp/aaa
if changed checksum then alert
--8<--
The "if changed checksum" reset the checksum and it check with the
new value
next cycle already.