Hello all,
As I'm getting used to the monit syntax, I am wondering if there is a
way to author a monit configuration file such that moments after monit
itself is first started (such as by inetd or on Mac OS X launchd), it
will perform a check on the status of a resource (such as to see if the
apache daemon is running) and then after that first-time immediate
check, monit will only check the status of the resource every x number
of cycles?
Take the monit configuration snippet below. I set my high frequency
check to once every 60 seconds. I then only want to ping my Apache httpd
daemons to see if they are doing fine every 10 minutes. However, when
monit itself is first run, I want it to not wait 10 minutes and in fact
I want it to check the Apache daemons right away, then if everything is
Ok it will regularly check every 10 minutes.
Is this possible with the syntax magic of monit?
Thanks,
Serg
set daemon 60 # highest frequency monitoring is once every 60s
check process apache with pidfile
"/opt/local/apache2/logs/httpd.pid" every 10 cycles
if failed port 80 and protocol http then restart
if 2 restarts within 3 cycles then timeout
------------------------------------------------------------------------
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general