I am having some difficulties with the STOP rules when an alert is triggered. I have the following rule in my hobbit-alert file.
HOST=somehost.syr.edu MAIL ctbeers at syr.edu REPEAT=30m RECOVERED STOP MAIL pager_number at archwireless.net REPEAT=15m FORMAT=SMS RECOVERED STOP
My understanding is that the alert module should alert me and the pager when the alert triggers. However, it appears that when the alert module encounters the STOP keyword it stop processing the entire rule (instead of stopping only if the recipient has already been alerted).
Is this intended and if so how do I accomplish alerting two users for alert rules?
Note: I was running beta6 when this problem occurred. I have updated to 4.0.1 with the eventlog patch, so maybe its fixed there.
-- Christopher T. Beers Lead UNIX Architect - System Infrastructure Services (SIS) Syracuse University | 250 Machinery Hall | Syracuse, NY 13244 (315) 443-4103 Office | (315) 443-1621 Fax | p-ctbeers at syr.edu Pager
On Sat, Apr 09, 2005 at 10:43:21PM -0400, Christopher T. Beers wrote:
I am having some difficulties with the STOP rules when an alert is triggered. I have the following rule in my hobbit-alert file.
HOST=somehost.syr.edu MAIL ctbeers at syr.edu REPEAT=30m RECOVERED STOP MAIL pager_number at archwireless.net REPEAT=15m FORMAT=SMS RECOVERED STOP
My understanding is that the alert module should alert me and the pager when the alert triggers. However, it appears that when the alert module encounters the STOP keyword it stop processing the entire rule (instead of stopping only if the recipient has already been alerted).
Is this intended and if so how do I accomplish alerting two users for alert rules?
This is the intended behaviour - the "STOP" keyword is definitive. I believe you should just remove the STOP keyword from the first recipient line.
Regards, Henrik
You are right - as usual and I figured that out last night right after I sent it.
Thanks for your help.
-- Christopher T. Beers Lead UNIX Architect - System Infrastructure Services (SIS) Syracuse University | 250 Machinery Hall | Syracuse, NY 13244 (315) 443-4103 Office | (315) 443-1621 Fax | p-ctbeers at syr.edu Pager
--On April 10, 2005 8:59:20 AM +0200 Henrik Stoerner <henrik at hswn.dk> wrote:
| This is the intended behaviour - the "STOP" keyword is definitive. | I believe you should just remove the STOP keyword from the first | recipient line.
participants (2)
-
ctbeers@syr.edu
-
henrik@hswn.dk