[Top][All Lists]

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

Re: monitoring a directory's used space

From: Callum Macdonald
Subject: Re: monitoring a directory's used space
Date: Wed, 25 Jul 2012 09:48:16 +0200

You could modify the rsync statement to avoid the need for wildcards.
There's something wonky with the way monit executes commands, so I'd
guess wildcard expansion doesn't work. At a guess this would work:
then exec "rsync /source/dir /dest/dir"

I've been watching this thread as I have a slightly similar need. One of
the options we're considering is lsyncd. It does almost exactly what
you've described, without generating notifications (that I'm aware of).

Cheers - Callum.

On Tue, 2012-07-24 at 23:44 -0400, Adam Wolfe wrote:
> I've decided to go with a
> "check directory client-stuff with path /yada/yada/
>      if changed timestamp then alert
>      if changed timestamp then exec my-sync-script"
> This appears to be working exactly as I need it.
> I tried using a
>      "if changed timestamp then rsync /source/dir/* /dest/dir/"
> but monit doesn't like wildcards (i.e. *) in the exec statement. Not too 
> much hassle, really.  Just confusing for a bit.
> --
> To unsubscribe:

reply via email to

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