<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
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;}
--></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 lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">The script must report values in a specific format in either a status message or a data message, separated by a colon like so:<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">$LABEL:$VALUE<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">Otherwise the NCV module will not pick it up. 
<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"><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">Here’s some examples from my workstations, everything between the BEGIN/END but not including the BEGIN/END lines is sent as the status message, including the blank lines:<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">BEGIN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">status corpvskreienl.na.lzb.hq.mounts green Fri Jun 17 10:29:34 EDT 2016 OK<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"><table border=1><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><tr><td>Color</td><td>Device</td><td>Mount Location</td><td>Filesystem type</td><td>Options</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><tr><td>&green</td><td>rootfs</td><td>/</td><td>rootfs</td><td>rw</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"></table><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">END<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"><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">And a data message:<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">BEGIN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">data corpvskreienl.na.lzb.hq.mounts
<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">C:80<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">D:60<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">END<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"><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">My tests all send status messages using HTML formatting, being very careful not to send a colon anywhere in the status report so as not to confuse the NCV module.  You can use HTML formatting for colons, tables,
 etc in the status messages and they will be passed through to the browser and display properly.  I will then send a second data only message with the NCV format for the NCV module to pick up.  Good practice for me always has been to include a blank line before
 and after the message body in both status and data messages.  It used to be required due to a bug if I remember correctly, not sure if it still is but I always do it anyway out of habit and don’t have any issues. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p id="c1-id-6" style="FONT-FAMILY: Arial"><span id="c1-id-7" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><strong id="c1-id-39"><span id="c1-id-41" style="font-size:9pt">Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="c1-id-8">
</span><span id="c1-id-9" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal">One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com</span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Foster Patch<br>
<b>Sent:</b> Friday, June 17, 2016 10:11 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Xymon Graph propagated with -nan<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Hello,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">I have a custom monitor that I created which will monitor connections and requests. (<a href="http://pastebin.com/bdLZfFAW">http://pastebin.com/bdLZfFAW</a>) The monitor works properly, however the graphing does
 not. <span style="color:#1F497D">This image displays what is wrong with the graph:</span>
<a href="http://imgur.com/ZFKkPYs">http://imgur.com/ZFKkPYs</a><span style="color:#1F497D">.</span> I have also attached my rrd dump of this monitor. (<a href="http://pastebin.com/CRadmAHu">http://pastebin.com/CRadmAHu</a>) Finally, attached is the graph definition
 for the test, located in graphs.cfg (<a href="http://pastebin.com/zX1HNi3p">http://pastebin.com/zX1HNi3p</a>). I know the issue here is that the last_ds is picking up the values as “U”, which is bad, but I don’t know what to do about it.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Any help would be appreciated, thanks,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:.5in;text-autospace:none">
<span style="font-size:13.5pt;font-family:"Arial","sans-serif";color:#FF6600">Foster Patch</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:.5in;text-autospace:none">
<span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:black">Web Server Technician</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:.5in;text-autospace:none">
<span style="font-size:13.5pt;font-family:"Arial","sans-serif";color:#FF6600">AccuWeather</span><span style="color:#ED7D31">
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p id="c1-id-10" style="FONT-FAMILY: 'Arial Narrow'; LINE-HEIGHT: 14px"><span id="c1-id-11" style="FONT-FAMILY: Arial; COLOR: #000000"><span id="c1-id-12" style="FONT-SIZE: 8pt; LETTER-SPACING: normal"><span id="c1-id-13" style="FONT-SIZE: 8pt"><span id="c1-id-14" style="FONT-SIZE: 8pt">This
</span></span><span id="c1-id-15" style="FONT-SIZE: 8pt"><span id="c1-id-16" style="FONT-SIZE: 8pt">message</span><span id="c1-id-17" style="FONT-SIZE: 8pt"> is intended
</span></span><span id="c1-id-18" style="FONT-SIZE: 8pt"><span id="c1-id-19" style="FONT-SIZE: 8pt">only</span></span><span id="c1-id-20" style="FONT-SIZE: 8pt"><span id="c1-id-21" style="FONT-SIZE: 8pt"> for t</span></span><span id="c1-id-22" style="FONT-SIZE: 8pt"><span id="c1-id-23" style="FONT-SIZE: 8pt">he
 individual or entity to which it is addressed.  It may contain privileged, confi</span></span></span><span id="c1-id-24" style="FONT-SIZE: 8pt; LETTER-SPACING: normal"><span id="c1-id-25" style="FONT-SIZE: 8pt"><span id="c1-id-26" style="FONT-SIZE: 8pt">dential
 information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. 
 If you have received this communication in error, please notify </span></span></span><span id="c1-id-27" style="FONT-SIZE: 8pt; LETTER-SPACING: normal"><span id="c1-id-28" style="FONT-SIZE: 8pt"><span id="c1-id-29" style="FONT-SIZE: 8pt">us</span></span></span><span id="c1-id-30" style="FONT-SIZE: 8pt; LETTER-SPACING: normal"><span id="c1-id-31" style="FONT-SIZE: 8pt"><span id="c1-id-32" style="FONT-SIZE: 8pt">
 immediately by e-mail or by telephone at the above number.</span></span></span><span id="c1-id-33" style="FONT-SIZE: 8pt; LETTER-SPACING: normal"><span id="c1-id-34" style="FONT-SIZE: 8pt"><span id="c1-id-35" style="FONT-SIZE: 8pt"> Thank you</span></span></span></span><span id="c1-id-36" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><span id="c1-id-37" style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial Narrow'"><span id="c1-id-38" style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial Narrow'">.</span></span></span></p>
</body>
</html>