[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] monit 3.0 reset_mailfilter
From: |
mike |
Subject: |
[patch] monit 3.0 reset_mailfilter |
Date: |
Fri, 04 Oct 2002 12:00:09 +0100 |
User-agent: |
Demon-WebMail/2.0 |
Dear Monit Developers,
I have found a small bug in monit 3.0. The new alerts, resource and
stop, are not reset after an alert has been parsed from the
configuration file. Hence if the first alert includes either resource
or stop then subsequent ones will as well even if they shouldn't.
Configuration file fragment:
alert address@hidden { restart stop }
mail-format {
subject: WARNING: $PROGRAM $EVENT
}
alert address@hidden { timeout }
mail-format {
subject: ERROR: $PROGRAM $EVENT
}
Fragment of "monit -v status" output:
Alert mail to = address@hidden
alert from = (default)
alert subject = ERROR: $PROGRAM $EVENT
alert message = (default)
alert on timeout = yes
alert on restart = no
alert on checksum = no
alert on resource = no
alert on stop = yes <-- This should not be set
Alert mail to = address@hidden
alert from = (default)
alert subject = WARNING: $PROGRAM $EVENT
alert message = (default)
alert on timeout = no
alert on restart = yes
alert on checksum = no
alert on resource = no
alert on stop = yes
Fix:
diff -urN monit-3.0.orig/p.y monit-3.0/p.y
--- monit-3.0.orig/p.y Fri Sep 13 02:32:26 2002
+++ monit-3.0/p.y Thu Oct 3 15:38:41 2002
@@ -932,6 +932,8 @@
mtf.timeout= FALSE;
mtf.restart= FALSE;
mtf.checksum= FALSE;
+ mtf.resource= FALSE;
+ mtf.stop= FALSE;
}
Mike
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] monit 3.0 reset_mailfilter,
mike <=