BB Unix Network Monitor - Message

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

Re: {bb} bbwarn email recipients



On Mon, 2006-08-28 at 18:51, System Administrator wrote:
> Hey Brothers,
> 
> I have one system which has been dying unexpectedly and I
> want BB to let me know when this happens so I can restart
> it and troubleshoot the problem quickly. I have a pager
> which accepts email messages so I put an entry into the
> bbwarnrules.cfg file which includes that address as the
> recipient for problems with that host; nothing happened.
> 
> I just figured out today that it wasn't sending the mail
> to 'ralert', the email alias we've set up which redirects
> mail to a couple different recipients. This is a sendmail
> alias, not a BB definition. Apparently BB is ignoring the
> email alias because I found messages like this in BBOUT:
> >Mon Aug 28 08:30:00 2006 bbd bbpage Unknown recipient <ralert> - it may
> need to be prefixed with pg-
> >Mon Aug 28 08:35:57 2006 bbd bbpage Unknown recipient <ralert> - it may
> need to be prefixed with pg-
> I grep-ed for bbpage in the bin directory and the only hit
> I got was bbd so I then looked at the source for bbpage.c
> which appears to build the email alert message from scratch;
> I'm still digging into the code to be sure what it's doing.
> 
> I'm pretty sure I've got the syntax of the bbwarnrules.cfg
> file correct. Has anyone else seen/had this problem? It's
> not a huge issue because I can always just define a new,
> separate alias in bbwarnsetup.cfg (which I've already done)
> but it would be cleaner in the long run to use the existing
> UNIX alias since that's how the rest of the system reports
> serious problems and any changes to the system-wide alert
> list need only be made in one place.
> 
> I've tested the email alias from the UNIX command line and
> it works perfectly - I get both email and a page. I don't
> know if this is pertinent but due to our security policy
> sendmail is configured to reject the vrfy and expn options.

You need to have an "at" sign ( @ ) included for it to be treated
as an e-mail recipient. If the alias is defined for sendmail on
the BB server, I'd use "ralert@localhost".

Cheers, Phil.



-- 
Real Programmers don't play tennis, or any other sport that
requires you to change clothes. Mountain climbing is OK, and real
programmers wear their climbing boots to work in case a mountain
should suddenly spring up in the middle of the machine room.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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