<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;}
p
        {mso-style-priority:99;
        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-reply;
        font-family:"Times New Roman","serif";
        color:black;
        font-weight:normal;
        font-style:normal;}
.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:14.0pt;color:black">I am saying that it looks like with CPULOOP=1set properly that cpu stats are averaged across a very short time; more in ‘realtime’, the way I’d like. So all is good. Thank you all for your help.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black">Jos Schwab<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black">Office – 815-233-8667<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black">Mobile – 815-908-8587<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:14.0pt;color:black">SAP Technical Engineer<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black">29 East Stephenson Street<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black">Freeport, Il. 61032<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:14.0pt;color:black">jos.schwab@newellco.com<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><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""> Jeremy Laidman [mailto:jlaidman@rebel-it.com.au]
<br>
<b>Sent:</b> Wednesday, August 06, 2014 4:09 PM<br>
<b>To:</b> Schwab, Jos<br>
<b>Cc:</b> xymon@xymon.com; Mark Felder<br>
<b>Subject:</b> RE: [Xymon] CPU USAGE DISPLAY (CPU Statistics)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p>On 07/08/2014 4:26 AM, "Schwab, Jos" <<a href="mailto:Jos.Schwab@newellco.com">Jos.Schwab@newellco.com</a>> wrote:<o:p></o:p></p>
<p>> When the environment variable CPULOOP=1 is set properly (with export), the CPULOOP=1 variable setting does have the intended effect of hiding the first top display on my CentOS 6.5 system.<o:p></o:p></p>
<p>So top doesn't match the behavior described in man page, or the version you have doesn't support the feature?<o:p></o:p></p>
<p>Are you trying this from the command line or from the Xymon client config?<o:p></o:p></p>
<p>Does this work:<o:p></o:p></p>
<p>CPULOOP=1 top -b -n 1<o:p></o:p></p>
<p>On the only system available to me right now (old-ish Debian) top doesn't seem to support this.  Instead:<o:p></o:p></p>
<p>$ top -b -n2 | sed '1,/^top/d'<o:p></o:p></p>
<p>You could try adding this into your xymonclient-linux.sh script on your client host.<o:p></o:p></p>
<p>Note that this will make each run take 5 seconds longer. Probably not a problem though.<o:p></o:p></p>
<p>J<o:p></o:p></p>
</div>
</body>
</html>