[hobbit] BBALPHAMSG for service 'proc', 'disk', etc no line feeds

Ralph Mitchell ralphmitchell at gmail.com
Fri Apr 4 17:25:51 CEST 2008


On Fri, Apr 4, 2008 at 9:10 AM, Bill Arlofski <waa-hobbitml at revpol.com>
wrote:

>
> Galen Johnson wrote:
>
> > I'd be surprised if Hobbit was doing this...
> >
>
> Well, when I was working on my custom email script (mentioned last
> week), I can see that the $BBALPHAMSG that is handed off to the script
> by hobbit is exactly what I am seeing in the email, so hobbit is handing
> it to me (the script) with no formatting, line feeds etc.  I guess I was
> just wondering if there was some setting in the config file(s) to toggle
> formatting or something similarly simplistic that I might have missed.
>

Are you wrapping $BBALPHAMSG in double quotes in your script??  If you do
something like:

    echo $BBALPHAMSG | mailx .....

that will strip out the linefeeds.  Put quotes around it and you get the
message verbatim:

   echo "$BBALPHAMSG" | mailx ....

Ralph Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080404/9e2a8396/attachment.html>


More information about the Xymon mailing list