Archived community.zenoss.org | full text search
Skip navigation
13151 Views 3 Replies Latest reply: Dec 4, 2011 1:44 PM by me2 RSS
me2 Rank: White Belt 56 posts since
Nov 27, 2011
Currently Being Moderated

Dec 3, 2011 10:19 AM

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

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: namewashere

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.

 

For 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

 

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.

 

Actually my overall objective is to monitory Microsoft ISA activesync connections but as I have read there are no mibs specifically for this, so I have fallen back to general monitoring of the box.

 

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

 

thank you

  • themactech Rank: Brown Belt 537 posts since
    Apr 13, 2009
    Currently Being Moderated
    2. Dec 3, 2011 4:28 PM (in response to me2)
    Re: snmp and how to find the oid's for a mib?

    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

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points