<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Times New Roman \, serif \;";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1348101477;
        mso-list-type:hybrid;
        mso-list-template-ids:-378371604 -1659441958 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>That is exactly what I was thinking.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Xymon version 4.3.0<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In my script I get the results as follows:<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span style='color:#1F497D'>Echo $BBALPHAMSG (everything is fine – except for formatting which is what I am trying to correct)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span style='color:#1F497D'>Echo “$BBALPHAMSG” >file (message is written to file and formatting is as I would like but the “\*” characters are converted as described below)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span style='color:#1F497D'>Echo $BBALPHAMSG >file (same as above but message is not formatted)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I have tried to pipe both of these through sed before sending to the file but that still isn’t working as the characters are converted prior to the pipe.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>There has got to be a way that I can write these to a file but I am just missing something simple.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Thanks,</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>John</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'>_____________________________________________________________________</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>John Rothlisberger<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Senior Analyst <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Application & Technology Integration <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Implementation & Managed Services for Business Process Outsourcing<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>IT Strategy, Infrastructure & Security - Technology Growth Platform<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Accenture<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>312.693.3136 office<b><o:p></o:p></b></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'>_____________________________________________________________________</span><span style='color:#1F497D'> <o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> David Baldwin [mailto:david.baldwin@ausport.gov.au] <br><b>Sent:</b> Wednesday, July 27, 2011 5:10 PM<br><b>To:</b> Rothlisberger, John R.<br><b>Cc:</b> xymon@xymon.com<br><b>Subject:</b> Re: [Xymon] Corrupted data in BBALPHAMSG?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John,<br><br>The "corrupted characters" you are seeing are the ASCII characters corresponding to the number after the \ character. e.g. \4 -> ^D, \44 -> $, etc. It looks like the string is being passed to something like a string formatting function (e.g. sprintf) without being properly quoted to escape '\' characters.<br><br>What version of Xymon are you using?<br><br>David.<br><br><o:p></o:p></p><p class=MsoNormal>Has anyone noticed what appears to be corruption in BBALPHAMSG?  I have only noticed this behavior (so far) on disk checks and it always follows the backslash between the Total Space and Available Space.  It also seems to be consistent from host to host (ex.  The host below will have the same corruption for each disk check other hosts may show slightly different characters but not all hosts exhibit errors).  <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Within my email script all I am doing is ‘echo “$BBALPHAMSG” >tmpfile’.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Xymon Server: Ubuntu 10.04<o:p></o:p></p><p class=MsoNormal>Client (in this instance): W2k3 Server<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>The actual client data appears to be just as expected with no odd characters (this is pulled from the “Client data” link on the Xymon page):<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>[disk]</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>Filesystem     1K-blocks     Used       Avail    Capacity    Mounted      Summary(Total\Avail)</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>C               20241899   11256291    8985608    55%       /FIXED/C        19.31gb\8.58gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>D              856979392  641409136  215570256    74%       /FIXED/D        817.28gb\205.59gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>F              179205040   54697624  124507416    30%       /FIXED/F        170.92gb\118.75gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>G              179205072  174737304    4467768    97%       /FIXED/G        170.92gb\4.26gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>H              179205072  174778264    4426808    97%       /FIXED/H        170.92gb\4.22gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>I              176064364  129088448   46975916    73%       /FIXED/I        167.92gb\44.81gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>J             1756490840   41785572 1714705268     2%       /FIXED/J        1.65tb\1.61tb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>O              976771068      95844  976675224     0%       /FIXED/O        931.53gb\931.44gb</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>But then when I use BBALPHAMSG within an email script there can be odd corruption:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>yellow Wed Jul 27 09:24:50 2011 - Filesystems NOT ok</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>&yellow G (97% used) has reached the WARNING level (97%)</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>&yellow H (97% used) has reached the WARNING level (97%)</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>Filesystem     1K-blocks     Used       Avail    Capacity    Mounted      Summary(Total\Avail)</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>C               20241899   11256291    8985608    55%       /FIXED/C        19.31gb\8.58gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>D              856979392  641409136  215570256    74%       /FIXED/D        817.28gb<span style='background:yellow'><85></span>.59gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>F              179205040   54697624  124507416    30%       /FIXED/F        170.92gb    <span style='background:yellow'>8</span>.75gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>G              179205072  174737304    4467768    97%       /FIXED/G        170.92gb<span style='background:yellow'>^D</span>.26gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>H              179205072  174778264    4426808    97%       /FIXED/H        170.92gb<span style='background:yellow'>^D</span>.22gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>I              176064364  129088448   46975916    73%       /FIXED/I        167.92gb<span style='background:yellow'>$</span>.81gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>J             1756490840   41785572 1714705268     2%       /FIXED/J        1.65tb<span style='background:yellow'>^A</span>.61tb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>O              976771068      95844  976675224     0%       /FIXED/O        931.53gb\931.44gb</span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New ;","serif"'>See <a href="http://xymonserver/xymon-cgi/svcstatus.sh?HOST=ServerA&SERVICE=disk">http://xymonserver/xymon-cgi/svcstatus.sh?HOST=ServerA&SERVICE=disk</a></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks,</span><span style='font-size:12.0pt;font-family:"Times New Roman , serif ;","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>John</span><span style='font-size:12.0pt;font-family:"Times New Roman , serif ;","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'>_____________________________________________________________________</span><span style='font-size:12.0pt;font-family:"Times New Roman , serif ;","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>John Rothlisberger</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Senior Analyst </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Application & Technology Integration </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Implementation & Managed Services for Business Process Outsourcing</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>IT Strategy, Infrastructure & Security - Technology Growth Platform</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Accenture</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>312.693.3136 office</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:silver'>_____________________________________________________________________</span> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>David Baldwin - Assistant Director, Infrastructure (acting)<o:p></o:p></pre><pre>Information and Communication Technology Services<o:p></o:p></pre><pre>Australian Sports Commission          <a href="http://ausport.gov.au">http://ausport.gov.au</a><o:p></o:p></pre><pre>Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616<o:p></o:p></pre><pre><a href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617<o:p></o:p></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a> <br><br></span><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div></div></body></html>