[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple fail restart triggering special record
From: |
Martin Pala |
Subject: |
Re: Multiple fail restart triggering special record |
Date: |
Mon, 19 Sep 2016 13:54:37 +0200 |
Yes, see https://mmonit.com/monit/documentation/monit.html#SERVICE-RESTART-LIMIT
Best regards,
Martin
> On 18 Sep 2016, at 00:44, jul <address@hidden> wrote:
>
> Hello monit list
>
> When a daemon fails to restart after one or twice attemps by monit, is there
> a way to execute a special command for subsequent restart?
>
> for example, let's say apache is failing to start but it was working before
> (and we assume no internal change).
> I would want to start it and at the same time, start a 15sec capture with
> tcpdump and sysdig, eventually collect with logs for corresponding period.
>
> How to do that?
>
> It seems a bit like core processing examples
> https://mmonit.com/wiki/Monit/ConfigurationExamples#corelin
> but the hard part is how to do other parallel commands while restarting.
>
>
> Thanks
>
> Jul
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general