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  [email protected]  skype: szepe.viktor
Budapest, III. kerület





--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to