[mrtg] Re: CPU Load Monitoring on Linux SMP machines

Martin Rheumer martinr at hotkey.net.au
Wed Aug 7 01:25:31 MEST 2002


Peter,

I got this to work fine ( Of course I use only the OID value
not the Mib Text )


enterprises.ucdavis.systemStats.ssCpuUser.0 = 45
.1.3.6.1.4.1.2021.11.9.0 = 45
enterprises.ucdavis.systemStats.ssCpuSystem.0 = 7
.1.3.6.1.4.1.2021.11.10.0 = 7
enterprises.ucdavis.systemStats.ssCpuIdle.0 = 46
.1.3.6.1.4.1.2021.11.11.0 = 46

enterprises.ucdavis.systemStats.ssCpuRawUser.0 = Counter32: 7956170
.1.3.6.1.4.1.2021.11.50.0 = Counter32: 7959875
enterprises.ucdavis.systemStats.ssCpuRawNice.0 = Counter32: 683
.1.3.6.1.4.1.2021.11.51.0 = Counter32: 683
enterprises.ucdavis.systemStats.ssCpuRawSystem.0 = Counter32: 1254799
.1.3.6.1.4.1.2021.11.52.0 = Counter32: 1255316
enterprises.ucdavis.systemStats.ssCpuRawIdle.0 = Counter32: 8141979
.1.3.6.1.4.1.2021.11.53.0 = Counter32: 8141979

But of interest is the fact these values are counters and not
the % times you see in "top" These seem to be stuck at the values
of the first 3 mibs I have pasted here.

Does anyone know what the last 4 mibs are actually showing ?

Your config doesnt work because the values are much greater
then the MaxBytes Value you have set as they are not the CPU %
we are both now looking for.

Can anyone shed some light on this ?

Thanks
Martin




At 06:27 PM 8/6/02 +0200, Peter Wienemann wrote:
>
>Hello!
>
>Has anyone made MRTG work to properly monitor the CPU load
>on Linux SMP machines (seperate graphs for each CPU)?
>
>I tried this:
>
>------------------------------------------------------
>LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
>
>Target[192.168.1.1_cpu0sum]: 
>ssCpuRawUser.0&ssCpuRawUser.0:public at 192.168.1.1 + 
>ssCpuRawSystem.0&ssCpuRawSystem.0:public at 192.168.1.1 + 
>ssCpuRawNice.0&ssCpuRawNice.0:public at 192.168.1.1
>RouterUptime[192.168.1.1_cpu0sum]: public at 192.168.1.1
>MaxBytes[192.168.1.1_cpu0sum]: 100
>Title[192.168.1.1_cpu0sum]: CPU 0 LOAD -- machine.domain.com
>PageTop[192.168.1.1_cpu0sum]: <H1>Active CPU 0 Load %</H1>
>Unscaled[192.168.1.1_cpu0sum]: ymwd
>ShortLegend[192.168.1.1_cpu0sum]: %
>YLegend[192.168.1.1_cpu0sum]: CPU Utilization
>Legend1[192.168.1.1_cpu0sum]: Active CPU 0 in % (Load)
>Legend2[192.168.1.1_cpu0sum]:
>Legend3[192.168.1.1_cpu0sum]:
>Legend4[192.168.1.1_cpu0sum]:
>LegendI[192.168.1.1_cpu0sum]:  Active
>LegendO[192.168.1.1_cpu0sum]:
>Options[192.168.1.1_cpu0sum]: growright,nopercent
>
>Target[192.168.1.1_cpu1sum]: 
>ssCpuRawUser.1&ssCpuRawUser.1:public at 192.168.1.1 + 
>ssCpuRawSystem.1&ssCpuRawSystem.1:public at 192.168.1.1 + 
>ssCpuRawNice.1&ssCpuRawNice.1:public at 192.168.1.1
>RouterUptime[192.168.1.1_cpu1sum]: public at 192.168.1.1
>MaxBytes[192.168.1.1_cpu1sum]: 100
>Title[192.168.1.1_cpu1sum]: CPU 1 LOAD -- machine.domain.com
>PageTop[192.168.1.1_cpu1sum]: <H1>Active CPU 1 Load %</H1>
>Unscaled[192.168.1.1_cpu1sum]: ymwd
>ShortLegend[192.168.1.1_cpu1sum]: %
>YLegend[192.168.1.1_cpu1sum]: CPU Utilization
>Legend1[192.168.1.1_cpu1sum]: Active CP1 0 in % (Load)
>Legend2[192.168.1.1_cpu1sum]:
>Legend3[192.168.1.1_cpu1sum]:
>Legend4[192.168.1.1_cpu1sum]:
>LegendI[192.168.1.1_cpu1sum]:  Active
>LegendO[192.168.1.1_cpu1sum]:
>Options[192.168.1.1_cpu1sum]: growright,nopercent
>------------------------------------------------------
>
>But both CPU load graphs remains zero.
>
>Cheers, Peter

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list