1833252 Members
2893 Online
110051 Solutions
New Discussion

SNMP OIDs

 
SOLVED
Go to solution
Mike Hassell
Respected Contributor

SNMP OIDs

Hello All,

I am working on a project that uses rrdtool (similar to mtrg) to generate graphs of various performance statistics. It works just fine, using perl modules to grab the SNMP stats, imports into these small rrdtool databases and exports these to the web (gifs).

However I am having a hard time locating the full numeric OIDs when using a snmpget function (acutally using perl SNMP module). I am familiar with snmptranslate that comes with the ucd-snmp package, however I can't seem to find all the OIDs I need to poll. I have a copy of the HP-UX definitions for unix agents, but can't seem to figure out how to translate these english names into the full numeric OID. The ucd-snmp package only gives some of the SNMP enligsh names and not the full HP OIDs.

So, I'm asking all you SNMP experts out there, where to find the full numeric OIDs?

I also have one other question regarding these metrics that I'm polling. CPU load average polls and archives fine and I can even create the pretty looking graphs (that those manager types just love), but I don't know how to present these metric on a 100% scale. Is there any other OID out there that will show the percentage used of the combined processors? I'm looking for a metric like sar outputs, but I would like to grab this via SNMP.

Any help would be greatly appericated. Thanks.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
3 REPLIES 3
Craig A. Sharp
Super Advisor

Re: SNMP OIDs

Mike,

I see you never got a reply to your question.
I have a similar problem in that I do not know what OID's are used for things like load and cpu. I do know that there are the enterprise OID's but no translations. Do you have any information you might be able to share?
I am also using MRTG and it is great.

Thanks,

Craig
Sridhar Bhaskarla
Honored Contributor
Solution

Re: SNMP OIDs

Mike,

If you can get to NNM somewhere, you can get the translation of text to numeric UIDs. xnmbrowser gives you a window where you can browse through OIDs based on text. You can also get that information if you have the MIBs with you. If you can get two files rfc1213-MIB-II and hp-unix, it's all clear in there.

I use rrd here. But I don't use snmp queries to get the information. I use sar to get the information. Also, if you are not able to see good graphs, try changing the resolution of the graph

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Mike Hassell
Respected Contributor

Re: SNMP OIDs

Craig & Sridhar,

Thanks for the reply as I'm still working on this project. I love the funtionality of rrdtool and SNMP, but I've yet to get everything I want from my SNMP perl scripts.

Craig, to answer your question, no I don't have any additional information to shed on this subject as I only have the default HP-UX MIB running on my servers and I've yet to look at Sridhar's suggestion of looking into rfc-1213-MIB-II. I would recommend that you look into rrdtool if you think MRTG is nice:

http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tutorial/rrdtutorial.html

Sridhar, as far as your comments about pulling the info from sar, I would say this woulid work, but I hate having to pull all that info to a centralized location via ftp scripts and then import into the rrds, but if it works it works. This would give me the ability to gather all the info I'm after, most from SNMP gets and the rest from sar output.

Thank you both for the comments as this is something I think all of us can benefit from.

- Mike
The network is the computer, yeah I stole it from Sun, so what?