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 <[email protected]> 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? > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
