BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Receiving Email Status Reports for BB



In <3D8746D3B6F2E049A3D3103E7A55B9E801229BF0@Toroondc913> brent.mccrackin@bell.ca writes:

>I'd like these emails to be sent to BB to be 'filtered' by the paging
>rules in Big Brother.  BB would receive the emails, and set the status
>to red with the details of the message.  If no further emails are
>received after a time has passed, set the status back to green based on
>the assumption that emails should be received regularly during a
>problem.

I've hacked up something like this at work... basically, you run a
script regularly (via cron, or as a Big Brother extension script) to
look at the mailbox, if it is empty you send off a green status to BB,
if there is mail in it you send off a red status including whatever
text you pick out from the mailbox.

The devilish detail of course is keeping the status red for longer
than the poll interval, but still getting rid of the red status after
e.g. 30 minutes. It's easy with mails stored in "maildir" format
(each mail is in a separate, timestamped file), but somewhat harder
with mails stored in the traditional mbox format.


Henrik
-- 
Henrik Storner
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index