Discussion:
snmp and how to find the oid's for a mib?
me2
2011-12-03 15:15:20 UTC
Permalink
me2 [http://community.zenoss.org/people/me2] created the discussion

"snmp and how to find the oid's for a mib?"

To view the discussion, visit: http://community.zenoss.org/message/63015#63015

--------------------------------------------------------------
I am a newb to snmp and zenoss.

I can walk the win2003 box (vmware vm) and get this back.

SNMPv2-MIB::sysDescr.0 = STRING: Hardware: x86 Family 15 Model 65 Stepping 3 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.311.1.1.3.1.2
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (370556193) 42 days, 21:19:21.93
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: ISA01
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 76
IF-MIB::ifNumber.0 = INTEGER: 4
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.65539 = INTEGER: 65539
IF-MIB::ifIndex.65540 = INTEGER: 65540
IF-MIB::ifIndex.65541 = INTEGER: 65541

it goes on for many pages. I am trying to find the oid's that I can successfully monitor.

I know there are conversion utilities that need a mib file and a "-smi" file to produce the oids. Or at least I was able to get the oids for another device with these 2 files.

Foe this windows 2003 vm I have found oid's by googling and came up with this:

http://www.oidview.com/mibs/0/RFC1213-MIB.html http://www.oidview.com/mibs/0/RFC1213-MIB.html

Might there be others?

I would like to monitor total cpu utilization for this vm and read something about needing to know how many cpu's are in the box etc, and it looked complicated.

How would you suggest I get this infoirmation? Can I pass a valid windows id/password and somehow pull it in an alternate way?

thank you
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63015#63015]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
me2
2011-12-03 15:23:19 UTC
Permalink
me2 [http://community.zenoss.org/people/me2] created the discussion

"Re: snmp and how to find the oid's for a mib?"

To view the discussion, visit: http://community.zenoss.org/message/63016#63016

--------------------------------------------------------------
I read in another thread to use wmi..and will look it up.

also this is referenced


You can try one of these:

http://community.zenoss.org/docs/DOC-3386 http://community.zenoss.org/docs/DOC-3386
http://community.zenoss.org/docs/DOC-3570 http://community.zenoss.org/docs/DOC-3570
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63016#63016]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
themactech
2011-12-03 21:29:06 UTC
Permalink
themactech [http://community.zenoss.org/people/themactech] created the discussion

"Re: snmp and how to find the oid's for a mib?"

To view the discussion, visit: http://community.zenoss.org/message/63005#63005

--------------------------------------------------------------
In order to get numerical oids, perform you snmpwalk with the proper flag, in this case -On

The O is for output, and the n is for numerical, this will output your snpmwalk with numerical oids.  When I am browsing a device to see what I should monitor, I do this:

snmpwalk -v2c -cpublic 192.168.1.1 | stringOIDdump.txt
snmpwalk -v2c -cpublic -On 192.168.1.1 | textOIDdump.txt

I can then reference both files to see what I need and get the proper numerical value to poll for.  The mib file is very useful as well since it will usualy show table of values.  For example an oid called PhysDriveStatus might return a 1, but if you have no idea what the table is it is not as useful.  Reading the mib file for that PhysDriveStatus should show a table of possible values, i.e. 0=ok, 1=warning, 2=critical, 3=unknown

Manuel
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63005#63005]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
me2
2011-12-04 18:44:30 UTC
Permalink
me2 [http://community.zenoss.org/people/me2] created the discussion

"Re: snmp and how to find the oid's for a mib?"

To view the discussion, visit: http://community.zenoss.org/message/63028#63028

--------------------------------------------------------------
thank you, very helpful.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63028#63028]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...