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 – XXX-XXX-XXXX
Mobile – XXX-XXX-XXXX
SAP Technical Engineer
XX East Stephenson Street
Freeport, Il. 61032
user-2b687a9b0cb4@xymon.invalid
From: Jeremy Laidman [mailto:user-71895fb2e44c@xymon.invalid]
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" <user-2b687a9b0cb4@xymon.invalid<mailto:user-2b687a9b0cb4@xymon.invalid>> 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