|
From: | Martin Pala |
Subject: | semi-handled event queue implementation patch |
Date: | Thu, 06 Oct 2005 23:02:32 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050914 Debian/1.7.11-1 |
Hi,here is patch which implements the general queue for semi-handled events. When some part of event handling failed, the event can be queued and failed parts retried later. The queue is implemented as FIFO - the new semi-handled events are added to the end of the queue and the queue processing starts from the oldest event (so for example mails should arrive in correct order). The event timestamp and other information is kept as well.
Currently it is used just for the alert - when the alert failed (mailserver unavailable), it is added to the queue and the alert delivery is tried later again.
There is yet one minor enhancement - monit now can send the alert when monit itself was started/stopped/reloaded.
What about it - can i add it to the cvs? Martin
internal_events_and_queue_20051006-01.patch
Description: application/unknown
[Prev in Thread] | Current Thread | [Next in Thread] |