Ad Widget

Collapse

SNMP MIB Files

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

    #1

    SNMP MIB Files

    So, I'm using the APC PDU New SNMP Template.

    The Zabbix Team has collected all official Zabbix monitoring templates and integrations.


    I copied the MIB file to /var/lib/snmp/mibs/ietf/ (this is a proxy running on a Raspberry PI). I commented out the line in the snmp.conf file.

    All the items for the SNMP devices using this template give the "SNMP error: (noSuchName) There is no such variable name in this MIB." error.

    I have the SNMP packages installed. Is there something I have to do to link the MIB file to the template?
  • myRCzabbix
    Member
    • Jun 2018
    • 39

    #2
    Try installing and using an MIB Browser like iReasoning and see if you can actually do a GET, GET BULK or GET SUB-TREE for those OIDs from your device. If you can't then those OIDs are not supported by your device.

    Comment

    • jluvs2ride
      Member
      • Jul 2015
      • 85

      #3
      Thanks for your response. I downloaded the MIB from the manufacturer for this device. Browsing the MIB file I can see the OIDs. Do the SNMP support software and MIBs need to be installed on the Server or the Proxy?

      Comment

      • myRCzabbix
        Member
        • Jun 2018
        • 39

        #4
        What I actually meant is to test from your workstation if you could actually get a value for those OIDs. The MIB files essentially translate the OID numbers to a string (I am oversimplifying). What I was suggesting was you test first if the OIDs you have actually exist on the device you are trying to monitor. They may not be existing/supported by the device.

        Comment

        • jluvs2ride
          Member
          • Jul 2015
          • 85

          #5
          Originally posted by myRCzabbix
          What I actually meant is to test from your workstation if you could actually get a value for those OIDs. The MIB files essentially translate the OID numbers to a string (I am oversimplifying). What I was suggesting was you test first if the OIDs you have actually exist on the device you are trying to monitor. They may not be existing/supported by the device.
          I do understand what you're saying, but I only have the SNMP packages and MIB files installed on the Proxy. I'm thinking the SNMP packages and MIB files should be installed on the server.

          Comment

          • myRCzabbix
            Member
            • Jun 2018
            • 39

            #6
            Originally posted by jluvs2ride

            I do understand what you're saying, but I only have the SNMP packages and MIB files installed on the Proxy. I'm thinking the SNMP packages and MIB files should be installed on the server.
            I don't think you do. The message you are encountering either means you don't have access to the OID, you are querying for an incorrect OID (hardly the case since it's from a template that is known to work by others), or the OID you are querying doesn't actually exist/is not supported by the device. This is why I was asking if you could test it first.

            Not sure why you are obsessed with where to put the MIB files. It won't matter whether you put them in the proxy or the server if either one of the three possible causes above is true.

            Here's a screenshot of me querying a printer for OID .1.3.6.1.2.1.43.11.1.1.6.1.1.

            Click image for larger version

Name:	Untitled.png
Views:	2666
Size:	41.6 KB
ID:	363881

            As you can see, there's a result. Now if I were to query for OID .1.3.6.1.2.1.43.11.1.1.6.1 (missing the last .1), here's what I get

            Click image for larger version

Name:	Untitled.png
Views:	2703
Size:	78.0 KB
ID:	363882

            The error message (which is the same as yours) tells me the device doesn't have that OID.

            What I was asking you to do is to do a walk so that you would get something like the one below where it lists down all the OIDs the device supports.

            Click image for larger version

Name:	Untitled.png
Views:	2878
Size:	95.9 KB
ID:	363883

            Comment

            • jluvs2ride
              Member
              • Jul 2015
              • 85

              #7
              I did the SNMP walk and snmp get on the proxy to query the device in question. The OIDs I was looking for were not found.

              Comment

              • myRCzabbix
                Member
                • Jun 2018
                • 39

                #8
                Originally posted by jluvs2ride
                I did the SNMP walk and snmp get on the proxy to query the device in question. The OIDs I was looking for were not found.
                Then it doesn't support the specific OIDs you were looking for.

                Your next step would be to figure out which OID in the device would give you the same information as the OID you got from the template and change the those OID entries in the template.

                Comment

                • jluvs2ride
                  Member
                  • Jul 2015
                  • 85

                  #9
                  Yeah, I don't get it. The MIB was supposed to be for that specific hardware. I changed templates and I have the info I want.

                  Comment

                  Working...