[mrtg] can't figure out CPU
Koelstra, J. (Jan)
JKoelstra at MINSZW.NL
Wed Apr 18 10:08:58 CEST 2007
Brian,
Since you get a messages 'Unknown SNMP var ssCpuRawUser...' I suggest you try the full numerical oid's at the target line.
Long time ago whwn using an MRTG 2.7 or 2.8 version I encounterd a similar problem: With a regular expression in the target line the only way to get it running was with the full numerical oid's. I don't know if this was ever fixed.
HTH,
Jan.
-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Brian Neu
Sent: Wednesday, April 18, 2007 3:39 AM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] can't figure out CPU
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
_________________________________________________________
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
_________________________________________________________
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The state accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
_________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070418/a80b5df5/attachment.htm
More information about the mrtg
mailing list