Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1427
  • Last Modified:

Upgrading MRTG or adding a MIB

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
ozisdavid
Asked:
ozisdavid
  • 6
  • 4
1 Solution
 
nociSoftware EngineerCommented:
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
 
nociSoftware EngineerCommented:
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
 
ozisdavidAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
nociSoftware EngineerCommented:
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
 
ozisdavidAuthor Commented:
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
 
nociSoftware EngineerCommented:
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
 
ozisdavidAuthor Commented:
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
 
nociSoftware EngineerCommented:
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
 
ozisdavidAuthor Commented:
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
 
nociSoftware EngineerCommented:
agree.
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

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.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now