detecting sleep time

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

detecting sleep time

Szépe Viktor

I have this dirty hack: it re-monitors unmonitored services hourly.

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
+36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület

To unsubscribe: