[mrtg] Re: MRTG with 14all.cgi and odd scales

kelsey hudson khudson at tsss.org
Thu Oct 27 23:59:52 MEST 2005

Takumi Yamane wrote:
> ssCpuRaw* is not percentages, use ssCpu* instead if its available.
> $ snmpwalk -v 2c -c string agent systemStats
> ....
> UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 4
> UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 14
> UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 80
> UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 98542201
> UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 210465
> UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 306196258
> UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 1639873889

While this is true that they are not percentages, the ssCpuRaw* targets 
are more accurate; that is, they reflect the CPU usage over the 
reporting period rather than immediate readings (which the ssCpuUser.0 
and friends reflect). Using the percentage OIDs results in a graph that 
could potentially have many readings which are not representative of 
your target's actual utilization.

I've got my target set up as:

Target[nemesis_cpu0]: \
    ssCpuRawUser.0&ssCpuRawUser.0:public at localhost + \
    ssCpuRawSystem.0&ssCpuRawSystem.0:public at localhost + \
    ssCpuRawNice.0&ssCpuRawNice.0:public at localhost

MaxBytes[nemesis_cpu0]: 100
Options[nemesis_cpu0]: growright, nopercent, noo
Unscaled[nemesis_cpu0]: ymwd

and it works just fine. mrtg 2.10.15 and rrdtool 1.0.49, Linux 2.6, 
1000Hz timer.

I've successfully used this target on probably twenty-five hosts around 
the office with complete success -- different operating systems and 
different kernel releases as well, all using the Net-SNMP agent.

Hopefully you can get yours working. Goodl luck!


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

More information about the mrtg mailing list