[mrtg] Need help on CPU info collection

Steve Shipway s.shipway at auckland.ac.nz
Tue Sep 9 05:54:25 CEST 2008


You are using the wrong counters.

Either use ssCpuUser, ssCpuSystem and ssCpuNice (which return values in percentages) with the 'gauge' option and a MaxBytes[] of 100, or else use ssCpuRawUser etc WITHOUT the gauge option but with a Factor[]:100 (as these return a total count of seconds used, so rate of change per second of total seconds used x 100 = percentage use).  Your SNMP agent may not support both though.

Steve

________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Li Wei Nan
Sent: Tuesday, 9 September 2008 15:39
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Need help on CPU info collection

I can still not generate the CPU graph after adding GAUGE to my config.
I really have no idea now. The CPU graph generated by MRTG is not all 'zero's, after I zoom the graph and seeing it careful, it doesn't generate CPU statistics at all.
...
Target[cluster1.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public at 172.16.6.183<mailto:public at 172.16.6.183> + ssCpuRawSystem.0&ssCpuRawSystem.0:public at 172.16.6.183<mailto:public at 172.16.6.183> + ssCpuRawNice.0&ssCpuRawNice.0:public at 172.16.6.183<mailto:public at 172.16.6.183>
...
Options[cluster1.cpu]: gauge,withzeroes,noo,growright

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080909/c894ad59/attachment-0001.html 


More information about the mrtg mailing list