monit-general
[Top][All Lists]
Advanced

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

Re: alert on file not changed


From: address@hidden
Subject: Re: alert on file not changed
Date: Wed, 12 Jul 2017 11:16:43 +0200

Create a small bash script with the follow, this should give a true/false value (1/0) for $filename older than 30 minutes:

echo $(( (`date +%s` - `stat -L --format %Y $filename`) > (30*60) ))

_________________ eXtremeSHOK.com _________________

On 12 Jul 2017, at 10:14 AM, Nick Upson <address@hidden> wrote:

Hi

I'm trying to detect that a program has stopped writing to its logfile but have been unable to come up with a working monit config to do so, has someone already done this and willing to share?

reply via email to

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