[Top][All Lists]

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

Re: [monit] Resetting Checksums

From: Jan-Henrik Haukeland
Subject: Re: [monit] Resetting Checksums
Date: Thu, 28 Aug 2008 19:19:41 +0200

I need to check the code to be certain, but could you just test if calling 'monit reload' resets the value? This would be the only way afaik, short of changing code in Monit

On 28. aug.. 2008, at 19.13, Art Age Software wrote:

1) If you are monitoring the checksum of a file, it's, IMHO, for monitoring if someone makes changes on this file, isn'it ? (Personnally, I don't monitor a checksum on a file subject to changes, so Monit do what I expect of it by default). Then, if you change something, monit will trigger an alert. But, if you want, I think you can use exec in order to stop/ start
this service with a script.
In this case, your checksum will be regenerate (I don't have access to a
sandbox for tests with monit, so please check it)

I think I wasn't clear in my initial question. Yes, I want monit to
alert me if the checksum changes due to an unauthorized change to a
file. But sometimes I need to update the file myself. For example, I
have monit monitoring its own config file monit.conf. Sometimes, I add
a new service to monitor in monit.conf. So I want to "reset" monit's
monitoring of this file so that it will rechecksum and monitor the
updated file. Make sense?

2) Create a script for initialisation. Something like :

monit -g <group name> monitor all
You can unmonitor with : monit -g <group name> unmonitor all.

If you run a script, which do :
/etc/init.d/monit start
monit -g <group name> monitor all

Then, you can run all your service at startup.

I am not concerned with startup. The correct thing happens at startup
as the manual mode processes are started by heartbeat. However, if I
want to restart monit - but not heartbeat - then the manual mode
processes won't get monitored after restarting monit. This is the
problem I am trying to solve.



On Thu, Aug 28, 2008 at 4:43 AM, Art Age Software <address@hidden>


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.

2. When I restart monit, any "mode manual" services that were
monitored become unmonitored after restart. Is there any way to
restart monit and have it resume monitoring all the services it had
been monitoring prior to restarting, including "mode manual" services?

Thanks for any ideas.

To unsubscribe:

Pierrick Grasland

To unsubscribe:

To unsubscribe:

reply via email to

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