Hi Rory, long time :)
The every statement comes to mind. From the manual;
every Validate this entry only at every n poll cycle.
Useful in daemon mode when the cycle is short
and a service takes some time to start.
check process dynamo with pidfile /etc/dynamo.pid
start program = "/etc/init.d/dynamo start"
stop program = "/etc/init.d/dynamo stop"
if failed port 8840 then alert
every 2 cycles
On 31. aug. 2010, at 20.39, rory wrote:
Before I go adding this functionality, I want to double check that it isn't
there and solicit some input.
Generally, I can set the cycle time of monit with
set daemon 20
However, as it turns out, my system has differing needs here. I'm thinking that
something like
check service foo with pidfile foo.pid
blah
blah
set cycle check 3
(This would cause it to only be checked every third cycle, so in the above
example, it would be checked once per minute)
Any comments?
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general