monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Resetting Checksums


From: Martin Pala
Subject: Re: [monit] Resetting Checksums
Date: Mon, 1 Sep 2008 13:17:30 +0200


On Sep 1, 2008, at 9:33 AM, Art Age Software wrote:

On Sat, Aug 30, 2008 at 3:28 PM, Martin Pala <address@hidden> wrote:

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.

Just to be sure I understand correctly, you are suggesting I change
from "if failed checksum..." to "if changed checksum..." Correct?


Yes





reply via email to

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