Hi,
here is the implementation of the event ratio dependant actions.
It is now possible to specify how many events during how many
cycles are needed to trigger the action. Both failed and passed
actions may be restricted this way.
Example syntax:
if failed ... [[X] [times] [within] Y cycles] then <action>
else if passed [[for] Z cycles] then <action>
The part 'X times within Y cycles' is optional - when not used,
monit will act on first event (equals to '1 times within 1 cycle').
It is also possible to specify just consecutive cycles count.
This behavior is generic and extends all testing rules. Backward
compatibility is fully retained.
Example:
check host foo.bar with address 192.168.1.1
if failed port 80 for 5 times within 8 cycles then exec '/my/
script'
else if passed for 10 cycles then alert
If you agree, i will send it to cvs.
TODO: documentation
Martin
<event_ratio.patch>
_______________________________________________
monit-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monit-dev