<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=utf-8">
<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:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I would suggest formatting your output as an HTML table.  Here’s the reporting part of a script I wrote from a custom test that expands on the built in CPU
 stats.  The status line has to be exactly as written up to the color.  Everything after the color is up to you. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">$XYMON $XYMSRV "status $HOSTNAME.$TESTNAME $COLOR `date` $STATUS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$IDLECOLORDOT</td><td> Idle time&#58;</td><td>$IDLEPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$IOWAITCOLORDOT</td><td> IO Wait time&#58;</td><td>$IOWAITPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$USERPERCENTCOLORDOT</td><td> User time&#58;</td><td>$USERPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$NICEPERCENTCOLORDOT</td><td> Nice time&#58;</td><td>$NICEPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$SYSTEMPERCENTCOLORDOT</td><td> System time&#58;</td><td>$SYSTEMPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$IRQPERCENTCOLORDOT</td><td> IRQ time&#58;</td><td>$IRQPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><tr><td>$SOFTIRQPERCENTCOLORDOT</td><td> Soft IRQ time&#58;</td><td>$SOFTIRQPERCENT%</td></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<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>Joshua Hunt<br>
<b>Sent:</b> Wednesday, June 22, 2016 6:54 PM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] Custom Tests<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">Hello again Xymon members,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I'm very new to both Unix systems and Xymon, and I have to say learning Xymon on a Unix system is currently leaving me pretty stumped for a lot of things.<br>
<br>
Right now I am attempting to create a script that will read the past 20 minutes of a log file, and report an array of values back to Xymon. I am looking for the end result to have a "green face" if less than five zeroes are detected, a yellow from 5 - 10, and
 a red from 10 and up. I have the script written, but I am unsure how to implement it into Xymon and have the results printed out when I click on the face beneath the test column. Results to be viewed after clicking the test column are in the format as followed:<br>
<br>
TIMESTAMP     DATANAME     DATATYPE     FREQUENCY     TIMEFRAME<br>
<br>
With respective info included. So how would I go around formatting the end result of a test to look like this when you clicked for more information?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Cheers all! <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Joshua H<o:p></o:p></p>
</div>
</div>
</div>
<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>
<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>