[Xymon] CPU USAGE DISPLAY (CPU Statistics)

Schwab, Jos Jos.Schwab at newellco.com
Wed Aug 6 23:24:11 CEST 2014


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.



Jos Schwab
Office – 815-233-8667
Mobile – 815-908-8587
SAP Technical Engineer
29 East Stephenson Street
Freeport, Il. 61032

jos.schwab at newellco.com


From: Jeremy Laidman [mailto:jlaidman at rebel-it.com.au]
Sent: Wednesday, August 06, 2014 4:09 PM
To: Schwab, Jos
Cc: xymon at xymon.com; Mark Felder
Subject: RE: [Xymon] CPU USAGE DISPLAY (CPU Statistics)


On 07/08/2014 4:26 AM, "Schwab, Jos" <Jos.Schwab at newellco.com<mailto:Jos.Schwab at newellco.com>> wrote:

> 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.

So top doesn't match the behavior described in man page, or the version you have doesn't support the feature?

Are you trying this from the command line or from the Xymon client config?

Does this work:

CPULOOP=1 top -b -n 1

On the only system available to me right now (old-ish Debian) top doesn't seem to support this.  Instead:

$ top -b -n2 | sed '1,/^top/d'

You could try adding this into your xymonclient-linux.sh script on your client host.

Note that this will make each run take 5 seconds longer. Probably not a problem though.

J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140806/c62a6ee1/attachment.html>


More information about the Xymon mailing list