[mrtg] Re: CPU information is not 'right'

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Dec 1 21:21:14 MET 1999


> 
> Here is out put from 'sar -u' on the machine of interest:
> 
> time	    %usr %sys  %wio %idle
> 04:20:02       2      93       0       5
> 04:25:00       3      95       0       2
> 04:30:00       4      86       0       9

[snip]

> 06:20:00      18      23       3      56
> 06:25:01      17      21       3      59
> 06:30:00      13      23       3      61
> 
> 
> As you can see the graph between 4AM and 6AM do not quite match the
> data.  the first column (blue) shows nearly 0 cpu usage by users.  and
> no system usage (green) either even though the second column shows some
> very high numbers for that time frame.
> 

What we can't see is that the graph does match above numbers for other times.
Even better, between 06:00 and 06:30 the blue graph never goes below 50%

Could it be that you are graphing green==usr and blue==idle?
Or perhaps the numbers are not related at all and you are monitoring
something else (such as system load)?

Whatever you are using to collect your numbers, run it without mrtg
and compare it to the output of sar.  If they match, your mrtg config file
may be wrong (doubt it).  If they don't match, don't expect mrtg to produce
a correct graph.

Isn't debugging fun :-)
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list