Xymon Mailing List Archive search

BBALPHAMSG for service 'proc', 'disk', etc no line feeds

list Ralph Mitchell
Fri, 4 Apr 2008 10:25:51 -0500
Message-Id: <user-4755365f422b@xymon.invalid>

On Fri, Apr 4, 2008 at 9:10 AM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>
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