Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Upgrading MRTG or adding a MIB

Posted on 2006-11-21
13
Medium Priority
?
1,419 Views
Last Modified: 2011-09-20
We recently replaced a cisco router with an ImageSteam router, which runs on linux and I have to update the MRTG graphs to get the numbers for Eth0 and the CPU utilization, that is the only graphs I need off of the router. I easily get the entries in the main config file for the ethernet statistics but the CPU is proving to be more difficult. The version of MRTG we are running is 2.10.15 and it does not have the UCD-SNMP-MIB which is what appears to be required to get the ssRaw* info I need for the processor. Is there an area that I can put that Mib in the current load of MRTG so I can all it with Load Mib: or should I try to upgrade the version to solve the problem? The only problem with the upgrade is that there a lot of devices within this particular config. I have never upgraded or added a mib so I am aprehensive about my next step.

Thanks,
0
Comment
Question by:ozisdavid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
13 Comments
 
LVL 40

Expert Comment

by:noci
ID: 18026977
You don't need the MIB if you have the OID
(the number string interspearced with .)

So what you really need is the OID of ssRaw{entry}.
and use that in the graphs.

for ssCPURawSystem the OID is
  1.3.6.1.4.1.2021.11.52

http://support.ipmonitor.com/mibs/UCD-SNMP-MIB/item.aspx?id=ssCpuRawSystem

or its starting point...
http://support.ipmonitor.com/mibs_byoidtree.aspx

0
 
LVL 40

Expert Comment

by:noci
ID: 18027284
To answer the original question (adding a mib):

http://www.net-snmp.org/FAQ.html#How_do_I_add_a_MIB_

At least if you use net-snmp.
0
 

Author Comment

by:ozisdavid
ID: 18028157
I used that exact OID last week but all MRTG will do is upgrade the uptime but not populate the graph with any data. I can walk the machine and get all the stats and I do not get any errors when the cron job runs. I also upgraded to the latest version of MRTG, still no change. I am looking into reloading the box with a newer version of Linux. Currently we are running RH9 on that box so it needs updating. Thanks for your info it was right on the money, I just happen to have a very weird issue going on with this particular instance of MRTG. Anyone have any other tricks please let me know.

Thanks,
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 40

Expert Comment

by:noci
ID: 18029634
I think you need to add a 0 (that one is a version 1 oid) mrtg uses version 2c)
it needs a .0 added, I have been toying arond the last hour. and run into that one.

The OID would become:  1.3.6.1.4.1.2021.11.52.0

0
 

Author Comment

by:ozisdavid
ID: 18031794
Tried that too, last week still nothing. I keep thinking this has too be something really simple and have had everyone locally look to see if I was missing something and so far I have stumped all of my geek buddies. I watched the tcpdump between the mrtg server and the linux router and all of the cpuRaw data is there, just doesn't make it to the graphs.

0
 
LVL 40

Expert Comment

by:noci
ID: 18032432
Are you sure all files are writable for the account that is
doing the polling? ( for the simple stuff ).

That might explain getting the data but not updating.
0
 

Author Comment

by:ozisdavid
ID: 18078767
Sorry took so long to get back with you, but yes I checked the perms again and all is good so I am going to whack that box and put on a newer version of the os and try again, might even virtualize this particular server since it only does ntp and mrtg. Thanks for you help.

0
 
LVL 40

Expert Comment

by:noci
ID: 18080006
I you do virtual ntp, then at least be sure to have the rtc available to this system,
it will stabalize your timeing info for your environment. (if it also serves out time).
I would prefer to have the central timing service running on a real host.
0
 

Author Comment

by:ozisdavid
ID: 18230591
Sorry it took so long to get back on this.

The MIB file for UCD mib's must be loaded.  MRTG demands mibs in v2 format.  by default, snmpwalk/net-snmp returns them in v1.   easy enough to fix.  other problem is that MRTG does not look at system libs for the MIB's (think DLL Hell in windows). Putting the full path to the MIB descriptor took care of that. Cpu usage is determined by counters.nter.  Problem is we were getting with 1% continually becausewe had polluted counters due to lack of patience.  MRTG needs a rolling average to get started.  in other words, we would flush the counters, then query, get bad data, then switch to a different query, then start over, later, rinse, repeat.  picking the CORRECT query then flushing all of the counters made it report 9% usage the first time we queried it which was correct, once we figured everything out.

Thanks,
0
 
LVL 40

Expert Comment

by:noci
ID: 18746661
agree.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18777203
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question