[Top][All Lists]

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

Re: [monit] check file - if missing to do XX? possible?

From: Martin Pala
Subject: Re: [monit] check file - if missing to do XX? possible?
Date: Fri, 14 Nov 2008 18:50:09 +0100

The limitation where Monit required monitored file to exist on Monit start was removed in upcoming Monit 5.0, you can get the last beta here (note that the beta is production stable):

If the file doesn't exist, Monit executes automatically the start program => everything you need to do is define the start program like this:

  check file with path /home/thisfile.txt
    start program = "/path/to/my/script"


On Nov 14, 2008, at 1:37 AM, Joe Shang wrote:

I want to enable in monit, to check for a file, like

check file with path /home/thisfile.txt

And I want if the file does not exist to execute a script for me... etc.

Though what happens is monit doesn't even start cause that file does
not exist, how can get over this? are there different parameters?

Because I have other arguments that if file does exist, to check for
changed checksum, and if changed to run a certain script.

But what is most important to me, is to check if the file exist, and
if not.. well execute something.

To unsubscribe:

reply via email to

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