monit-general
[Top][All Lists]
Advanced

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

detecting sleep time


From: SZÉPE Viktor
Subject: detecting sleep time
Date: Sat, 04 Feb 2017 00:48:10 +0100
User-agent: Horde Application Framework 5

Hello!

I have this dirty hack: it re-monitors unmonitored services hourly.
https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/monit/monit-debian-setup.sh#L199-L226

Is there a way to detect that Monit is doing in the initial sleep?
My script re-monitors every service when it happens to run right in the middle of this period.

A workaround is

tail -n 1 /var/log/monit.log | grep "Monit start delay set to [0-9]\+s$"

I am looking for a Monit-way solution.
Thank you.


SZÉPE Viktor
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498  address@hidden  skype: szepe.viktor
Budapest, III. kerület







reply via email to

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