[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restart daemon if all (multiple log files stoppes to update)
From: |
Martin Pala |
Subject: |
Re: Restart daemon if all (multiple log files stoppes to update) |
Date: |
Tue, 12 Jul 2016 08:06:06 +0200 |
Hi,
combined check like this is currently not supported - you can use the "check
program" to implement custom script, that will return failure if all files are
old: https://mmonit.com/monit/documentation/monit.html#PROGRAM-STATUS-TESTING
Best regards,
Martin
> On 11 Jul 2016, at 14:18, Johan Ryberg <address@hidden> wrote:
>
> Hi,
>
> I have a daemon that generates > 20 different log files.
>
> It's OK if one or more stops updating but if ALL stop to update I want
> to restart the daemon after 15 min.
>
> I manged to monitor them one by one but monit restarts the daemon if
> one file stops updating and that is normal.
>
> Can I configure monit to restart if logfile1 and logfile2 and logfile3
> and logfile4 stops to update?
>
> Best regards Johan
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general