[mrtg] can't figure out CPU

Brian Neu proclivity76 at yahoo.com
Wed Apr 18 03:39:04 CEST 2007


Gracious and patient mrtg users:

   A humble mrtg newbie requests your assistance.

    In trying to get MRTG to monitor CPU/system info from the localhost, I have running into the following situation.



So with either v1 or v2c, I get this:

]# snmpwalk -v 2c -c <mycom> localhost ssCpuUser.0
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0

Working,right?  Not for mrtg, at least not the way that I'm trying to do it:

---------   /etc/mrtg/cpu.cfg  -------
WorkDir: /var/www/mrtg
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/share/snmp/mibs/TCP-MIB.txt
Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:aonetworks at localhost + ssCpuRawSystem.0&ssCpuRawSystem.0:aonetworks at localhost + ssCpuRawNice.0&ssCpuRawNice.0:aonetworks at localhost
----- truncated for your viewing pleasure ----


]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/cpu.cfg 
Unknown SNMP var ssCpuRawUser.0
 at /usr/bin/mrtg line 2149
Unknown SNMP var ssCpuRawUser.0
 at /usr/bin/mrtg line 2149
2007-04-17 21:31:22: WARNING: Expected a number but got '3:26:16'
2007-04-17 21:31:22: WARNING: Expected a number but got 'myhost.mydomain.com'
Unknown SNMP var ssCpuRawSystem.0
 at /usr/bin/mrtg line 2149
Unknown SNMP var ssCpuRawSystem.0
 at /usr/bin/mrtg line 2149



Soooo, what am I doing wrong?


rpm -qa |egrep "mrtg|snmp"
net-snmp-libs-5.3-4.2
mrtg-2.15.1-1
net-snmp-5.3-4.2
net-snmp-devel-5.3-4.2
net-snmp-utils-5.3-4.2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070417/2b753b19/attachment.html 


More information about the mrtg mailing list