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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Neu
        Sent: Wednesday, April 18, 2007 3:39 AM
        To: [email protected]
        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:[EMAIL PROTECTED] + 
ssCpuRawSystem.0&ssCpuRawSystem.0:[EMAIL PROTECTED] + 
ssCpuRawNice.0&ssCpuRawNice.0:[EMAIL PROTECTED]
        ----- 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.
_________________________________________________________
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to