Ad Widget

Collapse

SNMP OIDs, MIBs, and Templates.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jluvs2ride
    Member
    • Jul 2015
    • 85

    #1

    SNMP OIDs, MIBs, and Templates.

    I am trying to understand the relationship between MIBs and OIDs IOT create SNMP based Templates.

    I've done an SNMPWalk to a network connected device and captured the output to a txt file. I have the MIB file generated by this device, but I do not understand how to relate the objects in the MIB file to the OIDs.

    So, for example I can see "Fan Status" in the MIB but I do not understand how to relate this to the appropriate OID.

    Is there a tool, or a table that facilitates this? If so, can you describe how it is used?

    Thanks.
  • onallion
    Senior Member
    • Mar 2016
    • 131

    #2
    You need to add the MIB to your MIB folder (in Centos it is /usr/share/snmp/mibs/). Once that's done, Snmpwalk will automatically use the mib to translate the OIDs.

    Good luck

    Comment

    • jluvs2ride
      Member
      • Jul 2015
      • 85

      #3
      Thanks for your response.

      Yeah, I've done that and captured the SNMPWalk output to a text file, but I'm just unclear as to how to interpret the results.

      So if I want the fan speed for example, is there a way to determine which OID returns this value?

      Comment

      • onallion
        Senior Member
        • Mar 2016
        • 131

        #4
        Well, a simple search for "fan" should get you started

        Comment

        • jluvs2ride
          Member
          • Jul 2015
          • 85

          #5
          Originally posted by onallion
          Well, a simple search for "fan" should get you started
          OK, I can find fan in the MIB, but not in the SNMPWalk. How do I get the OID from the MIB?

          Comment

          • onallion
            Senior Member
            • Mar 2016
            • 131

            #6
            When you have the MIB in the proper folder and you snmpwalk, the result should be "translated". So you are supposed to be able to find "fan" there, unless something is wrong.

            So for example here's my Snmpwalk for a device I have the MIB for:

            IP-FORWARD-MIB::ipCidrRouteDest.0.0.0.0.0.0.0.0.0.

            As you can see the OID is automatically translated. You don't need to know the actual OID, you can use the MIB in Zabbix. If you want the OID for some reason, you can use snmptranslate.
            Last edited by onallion; 29-03-2017, 10:46.

            Comment

            • jluvs2ride
              Member
              • Jul 2015
              • 85

              #7
              Originally posted by onallion
              When you have the MIB in the proper folder and you snmpwalk, the result should be "translated". So you are supposed to be able to find "fan" there, unless something is wrong.

              So for example here's my Snmpwalk for a device I have the MIB for:

              IP-FORWARD-MIB::ipCidrRouteDest.0.0.0.0.0.0.0.0.0.

              As you can see the OID is automatically translated. You don't need to know the actual OID, you can use the MIB in Zabbix. If you want the OID for some reason, you can use snmptranslate.
              So, having the MIB file in the proper folder translates the OID to IP-FORWARD-MIB::ipCidrRouteDest.0.0.0.0.0.0.0.0.0.?

              I suppose I need to find some training on SNMP.

              One of the devices I want to monitor is a My Cloud EX2. I downloaded the MIB file and added it to directory. I found a program that loads the MB file and makes it a little clearer and gives you the OID, but all the OIDs I try give me errors. I'm assuming the MIB file is outdated and no one bothered to update it.

              Comment

              • onallion
                Senior Member
                • Mar 2016
                • 131

                #8
                Possibly. If possible, always download the MIBs from the device itself (sometimes they are stored in a folder in the device's filesystem) or from the official website.

                EDIT: Also, after adding new MIBS to the folder, always restart Zabbix Server/Proxy or it won't work
                Last edited by onallion; 30-03-2017, 14:42.

                Comment

                • jluvs2ride
                  Member
                  • Jul 2015
                  • 85

                  #9
                  Thanks for your ongoing help with this.

                  Originally posted by onallion
                  Possibly. If possible, always download the MIBs from the device itself (sometimes they are stored in a folder in the device's filesystem) or from the official website.

                  EDIT: Also, after adding new MIBS to the folder, always restart Zabbix Server/Proxy or it won't work
                  Well, I did download the MIB directly from the device. I'll try again later after restarting the server, but I'm getting the error at the command line using the snmpget command that the OID is unrecognized.
                  Last edited by jluvs2ride; 30-03-2017, 15:10.

                  Comment

                  • jluvs2ride
                    Member
                    • Jul 2015
                    • 85

                    #10
                    Bizarre!

                    OK, now for some reason when I do an snmpwalk on my devices there is no human readable information in the OIDs.

                    It appears that something I have done has broken my snmp configuration.

                    Comment

                    • polpan
                      Junior Member
                      • Jan 2019
                      • 5

                      #11
                      Hi all, noob here, sorry, but does doing the snmpwalk will give me a filename .MIB?
                      thanks

                      Comment

                      Working...