Ad Widget

Collapse

No data in SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jandresaedo
    Junior Member
    • Jul 2017
    • 6

    #1

    No data in SNMP

    Hello Guys,
    I have worked with zabbix 3.2.7 and my target now is the UPS. I taked a generic xml template and I adpapted it for the Kolff UPS. I attached the xml template in this post.

    I tested the snmp OId mibs with snmpwalk, for example to take the UPS Load:

    Code:
    # snmpwalk -c public -v 2c 10.10.0.65 .1.3.6.1.2.1.33.1.4.4.1.5
    SNMPv2-SMI::mib-2.33.1.4.4.1.5.1 = INTEGER: 18
    The response looks good, the current CPU load is 18%.

    So, my problem is when I try get this result in zabbix, because I don't recieve data, the template's configuration is in the img in attached images.

    I don't have idea why I didn't recieve data from UPS, any help I'll would appreciate it.

    Thanks.
    Attached Files
    Last edited by jandresaedo; 01-09-2017, 15:27.
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi jandresaedo,
    what zabbix server logs (/var/log/zabbix/zabbix_server.log) are saying about this? Any error ? Is there any other host which is monitored via SNMP and it works fine or problem affects all hosts ?

    Regards,
    Aleksejs!

    Comment

    • jandresaedo
      Junior Member
      • Jul 2017
      • 6

      #3
      Hello Aleksejs
      I found some errors:

      Code:
      upsBatteryStatus" became not supported: SNMP error: (noSuchName) There is no such variable name in this MIB.
      upsBatteryTemperature" became not supported: SNMP error: (noSuchName) There is no such variable name in this MIB.
      upsBatteryVoltage" became not supported: SNMP error: (noSuchName) There is no such variable name in this MIB.
      I deleted the Template and I created a new Item:
      Code:
      Type:            SNMPV2Agent
      Key:              .1.3.6.1.2.1.33.1.2.7
      SNMP OID:  .1.3.6.1.2.1.33.1.2.7
      SNMP:         Public
      The status is enabled. But I have an error with this Item:
      Code:
       item "ups:.1.3.6.1.2.1.33.1.2.7" became not supported: No Such Instance currently exists at this OID
      And again, the same in snmpwalk from this server:
      Code:
      # snmpwalk -c public -v 2c 10.10.0.65 .1.3.6.1.2.1.33.1.2.7
      SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 22






      Thanks.


      Originally posted by allexpetrov
      Hi jandresaedo,
      what zabbix server logs (/var/log/zabbix/zabbix_server.log) are saying about this? Any error ? Is there any other host which is monitored via SNMP and it works fine or problem affects all hosts ?

      Regards,
      Aleksejs!
      Last edited by jandresaedo; 04-09-2017, 15:29.

      Comment

      • allexpetrov
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2017
        • 361

        #4
        Actually using just blank snmpwalk request you can get the all list of mibs:
        Code:
        snmpwalk -v 2c -c public 10.10.0.65
        however some of your MIBs need to be translated, so use this manual to add MIBs (http://net-snmp.sourceforge.net/wiki...d_loading_MIBS) to you SNMP folder.

        Regards,
        Aleksejs!

        Comment

        • jandresaedo
          Junior Member
          • Jul 2017
          • 6

          #5
          Yes, understood about snmpwalk -v 2c -c public 10.10.0.65 and its answer, but I don't understand why zabbix can't give me the same answer,

          I have created the Item with the same Mibs, why snmpwalk answer and zabbix not.


          Thanks.

          Originally posted by allexpetrov
          Actually using just blank snmpwalk request you can get the all list of mibs:
          Code:
          snmpwalk -v 2c -c public 10.10.0.65
          however some of your MIBs need to be translated, so use this manual to add MIBs (http://net-snmp.sourceforge.net/wiki...d_loading_MIBS) to you SNMP folder.

          Regards,
          Aleksejs!

          Comment

          • allexpetrov
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2017
            • 361

            #6
            Hi,
            I saw this link - http://zabbix.org/wiki/Bulk_SNMP_req...vice_blacklist , could it be your case?

            Regards,
            Alex!

            Comment

            • Muadeeb
              Junior Member
              • Aug 2017
              • 5

              #7
              Originally posted by jandresaedo
              Hello Guys,
              I have worked with zabbix 3.2.7 and my target now is the UPS. I taked a generic xml template and I adpapted it for the Kolff UPS. I attached the xml template in this post.

              I tested the snmp OId mibs with snmpwalk, for example to take the UPS Load:

              Code:
              # snmpwalk -c public -v 2c 10.10.0.65 .1.3.6.1.2.1.33.1.4.4.1.5
              SNMPv2-SMI::mib-2.33.1.4.4.1.5.1 = INTEGER: 18
              The response looks good, the current CPU load is 18%.

              So, my problem is when I try get this result in zabbix, because I don't recieve data, the template's configuration is in the img in attached images.

              I don't have idea why I didn't recieve data from UPS, any help I'll would appreciate it.

              Thanks.
              You're not poking the right OID in Zabbix. You did a walk on MIB-2.33.1.4.4.1.5, and the walk responded with MIB-2.33.1.4.4.1.5.1 .You need to add a '.1' to the end of the OID Key becuse Zabbix is doing a simple snmpget on the OID, not a walk.

              This is the same issue as with your post on the 4th: you need to add a '.0' to the end of your OID in Zabbix.


              Where you're going wrong is you are asking for a item without specifying a specific interface on that item. Think of it this way: you have a switch with 48 ports on it. Each port will have access to the same SNMP data (we'll work with IF-MIB::ifSpeed), but the only way to know WHICH port is to specify it. So doing a walk for IF-MIB::ifSpeed will return with 48 responses, but doing a simple get will respond with an error because the switch does not know which port you are wanting information on.

              Comment

              Working...