<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Times New Roman" size="4"><span style="font-size:14pt;">
<div>Mark, </div>
<div>        Lastly, I also see in the man pages for TOP in the bugs section (again on CentOS) the TOP author speaks to this very topic. He calls the intervals samples.  Here is that except: </div>
<div> </div>
<div>7. BUGS</div>
<div>       Send bug reports to:</div>
<div>          Albert D. Cahalan, <albert@users.sf.net></div>
<div> </div>
<div>       The top command calculates Cpu(s) by looking at the change in CPU time values between  samples.  When </div>
<div>       you  first  run it, it has no previous sample to compare to, so these initial values are the percent-</div>
<div>       ages since boot. It means you need at least two loops or you have to ignore summary output  from  the</div>
<div>       first loop.  This is problem for example for batch mode. There is a possible workaround if you define</div>
<div>       the CPULOOP=1 environment variable. The top command will be run one extra hidden loop  for  CPU  data</div>
<div>       before standard output.</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Jos Schwab</div>
<div>Office – 815-233-8667</div>
<div>Mobile – 815-908-8587</div>
<div><i>SAP Technical Engineer</i></div>
<div>29 East Stephenson Street</div>
<div>Freeport, Il. 61032</div>
<div> </div>
<div><i>jos.schwab@newellco.com</i></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>

<b>From:</b> Schwab, Jos <br>

<b>Sent:</b> Tuesday, July 29, 2014 10:56 AM<br>

<b>To:</b> 'Mark Felder'<br>

<b>Cc:</b> 'xymon@xymon.com'<br>

<b>Subject:</b> RE: [Xymon] CPU USAGE DISPLAY (CPU Statistics)</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Mark, </div>
<div>        I failed to mention that in the man pages for TOP in CentOS 6.5, the –d command line option is called the interval which I had read somewhere is used to average statistics over. I hope that helps make it more clear and understandable. </div>
<div> </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Jos Schwab</div>
<div>Office – 815-233-8667</div>
<div>Mobile – 815-908-8587</div>
<div><i>SAP Technical Engineer</i></div>
<div>29 East Stephenson Street</div>
<div>Freeport, Il. 61032</div>
<div> </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"><a href="mailto:jos.schwab@newellco.com"><font face="Times New Roman" size="4" color="blue"><span style="font-size:14pt;"><i><u>jos.schwab@newellco.com</u></i></span></font></a></span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>

<b>From:</b> Schwab, Jos <br>

<b>Sent:</b> Tuesday, July 29, 2014 10:19 AM<br>

<b>To:</b> 'Mark Felder'<br>

<b>Cc:</b> <a href="mailto:xymon@xymon.com"><font color="blue"><u>xymon@xymon.com</u></font></a><br>

<b>Subject:</b> RE: [Xymon] CPU USAGE DISPLAY (CPU Statistics)</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>        Sorry for the delay mark. I took off a couple of days. </div>
<div> </div>
<div>        By interval I mean the time span that is used for the calculations in the cpu stats in the third line of TOP. The first display is calculated across the time since boot. The second 'interval' is the time calculated for those same cpu stats since
the last iteration of the TOP display which is...well... it looks like 1 or 2 seconds. Thus that is what I mean by ‘interval’. Interval is whatever is the measured period of time over which any given TOP display’s cpu statistics are calculated. Xymon shows
the first display of TOP which looks like the first screen shot below. Then from the same server virtually a few seconds later, I captured a second display of TOP. Notice the cpu statistics are very different even though the REAL condition of the server hadn’t
changed at all. I would like to change xymon to display that second iteration of the TOP command.  </div>
<div> </div>
<div>        Let me know if you would like more clarification. Thanks! <font face="Wingdings">J</font> </div>
<div> </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">         << OLE Object: Picture (Device Independent Bitmap) >> </span></font></div>
<div> << OLE Object: Picture (Device Independent Bitmap) >> </div>
<div> </div>
<div>Jos Schwab</div>
<div>Office – 815-233-8667</div>
<div>Mobile – 815-908-8587</div>
<div>SAP Technical Engineer</div>
<div>29 East Stephenson Street</div>
<div>Freeport, Il. 61032</div>
<div> </div>
<div><a href="mailto:jos.schwab@newellco.com"><font color="blue"><u>jos.schwab@newellco.com</u></font></a></div>
<div> </div>
<div> </div>
<div>-----Original Message-----<br>

From: Mark Felder [<a href="mailto:feld@feld.me"><font color="blue"><u>mailto:feld@feld.me</u></font></a>]
<br>

Sent: Wednesday, July 23, 2014 5:40 PM<br>

To: Schwab, Jos<br>

Cc: <a href="mailto:xymon@xymon.com"><font color="blue"><u>xymon@xymon.com</u></font></a><br>

Subject: Re: [Xymon] CPU USAGE DISPLAY (CPU Statistics)</div>
<div> </div>
<div> </div>
<div>On Jul 23, 2014, at 10:51, Schwab, Jos <<a href="mailto:Jos.Schwab@newellco.com">Jos.Schwab@newellco.com</a>> wrote:</div>
<div> </div>
<div>> Hello everyone,</div>
<div>>           I am pretty new to the Linux world. Getting to the point quickly; xymon apparently uses the top display for the CPU display. When I see a CPU alert from xymon I’d like to see the current time interval’s CPU stats (The third line of top display
- %us, %sy, %ni, etc) rather than the averages of those stats since the last reboot of the machine. This is an old ‘complaint’ in bugzilla which was closed in 2007 as ‘not a bug’. I couldn’t find any work-arounds or customizing tips out there to change the
display in xymon. What changes can a person make to see the current time interval (any top display other than the first one) statistics for the cpu display in xymon? What about changes in the monitored OS? Any suggestions are appreciated! Thanks.    </div>
<div>>  </div>
<div> </div>
<div>I think I know what you are asking for, but to be sure can you define what you mean by "current time interval" ?</div>
<div> </div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>