monit-general
[Top][All Lists]
Advanced

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

Multiple fail restart triggering special record


From: jul
Subject: Multiple fail restart triggering special record
Date: Sat, 17 Sep 2016 22:44:15 +0000 (UTC)

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


reply via email to

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