Ad Widget

Collapse

Zabbix not pulling Data from SNMP OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LukeAB93UK
    Member
    Zabbix Certified Specialist
    • Jun 2023
    • 72

    #1

    Zabbix not pulling Data from SNMP OID

    Hey Guys,

    I have an interesting problem here on Zabbix Zabbix 6.0.9.

    I am trying to pull this value from a Juniper SRX 320 router running JUNOS 21.3R1.9.

    Click image for larger version  Name:	image.png Views:	0 Size:	4.0 KB ID:	465399

    I can using the above command I can see the raw data and the router has SNMP configured as "read only" using udp on port 161 with an snmp community user to be able to poll the information.

    ​Now we do employ Zabbix Proxies and the host that this proxy is on Centos.

    When I click on "Get Value and Test" I am greeting with this error message.

    Click image for larger version

Name:	image.png
Views:	7297
Size:	61.2 KB
ID:	465401

    I was wondering if there is something we missed or things we can check because I am starting to think the problem lays either with our Zabbix Server or Proxies so I am just wondering if there are things we should check because this data is just simply not coming through.​
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Try specifying the following OIDs.
    1.3.6.1.2.1.10.94.1.1.5.1.2.550​

    Comment

    • LukeAB93UK
      Member
      Zabbix Certified Specialist
      • Jun 2023
      • 72

      #3
      Originally posted by Atsushi
      Try specifying the following OIDs.
      1.3.6.1.2.1.10.94.1.1.5.1.2.550​
      Hey there.

      I have also tried that as well with the same result.


      Click image for larger version

Name:	image.png
Views:	7147
Size:	41.5 KB
ID:	465405

      I tried to pull the information on one of our Zabbix procies too with same results

      Click image for larger version

Name:	image.png
Views:	7194
Size:	21.7 KB
ID:	465406

      Part of me is thinking our proxy is misconfigured but im now to this so not entire sure where to look if im being honest.​

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Pls try "snmpwalk yours_creditans -Ona 1.3.6.1.2.1.10.94.1.1.5.1" and show the output

        Or just try the OID 1.3.6.1.2.1.10.94.1.1.5.1.2.550​.0

        Comment

        • LukeAB93UK
          Member
          Zabbix Certified Specialist
          • Jun 2023
          • 72

          #5
          Originally posted by Hamardaban
          Pls try "snmpwalk yours_creditans -Ona 1.3.6.1.2.1.10.94.1.1.5.1" and show the output

          Or just try the OID 1.3.6.1.2.1.10.94.1.1.5.1.2.550​.0
          Hello,

          I am just getting this output.

          snmpwalk 10.x.x.x <SNMPCommunity> -Ona 1.3.6.1.2.1.10.94.1.1.5.1
          <SNMPCommunity>: Unknown Object Identifier (Sub-id not found: (top) -> <SNMPCommunity>)

          Comment

          • markosa
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Aug 2022
            • 104

            #6
            Do you have some rules in Juniper so that community used isn't allowed to read those values? Can you read any information using that community from zabbix proxy?

            Comment

            • LukeAB93UK
              Member
              Zabbix Certified Specialist
              • Jun 2023
              • 72

              #7
              Originally posted by markosa
              Do you have some rules in Juniper so that community used isn't allowed to read those values? Can you read any information using that community from zabbix proxy?
              Yes I am.

              If I run snmpwalk I can pull data.

              [user@zabbixproxy02 ~]$ snmpwalk -c <community> -v2c <IP Removed>
              SNMPv2-MIB::sysDescr.0 = STRING: <removed>
              SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.134
              DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (37780972) 4 days, 8:56:49.72
              SNMPv2-MIB::sysContact.0 = STRING:
              SNMPv2-MIB::sysName.0 = STRING: <removed>
              SNMPv2-MIB::sysLocation.0 = STRING:
              SNMPv2-MIB::sysServices.0 = INTEGER: 4
              IF-MIB::ifNumber.0 = INTEGER: 58
              IF-MIB::ifIndex.3 = INTEGER: 3
              IF-MIB::ifIndex.4 = INTEGER: 4
              IF-MIB::ifIndex.6 = INTEGER: 6
              IF-MIB::ifIndex.7 = INTEGER: 7
              IF-MIB::ifIndex.8 = INTEGER: 8
              IF-MIB::ifIndex.9 = INTEGER: 9
              IF-MIB::ifIndex.10 = INTEGER: 10
              IF-MIB::ifIndex.11 = INTEGER: 11
              IF-MIB::ifIndex.12 = INTEGER: 12
              IF-MIB::ifIndex.15 = INTEGER: 15
              IF-MIB::ifIndex.16 = INTEGER: 16
              IF-MIB::ifIndex.21 = INTEGER: 21
              IF-MIB::ifIndex.22 = INTEGER: 22
              IF-MIB::ifIndex.251 = INTEGER: 251
              IF-MIB::ifIndex.501 = INTEGER: 501
              IF-MIB::ifIndex.502 = INTEGER: 502
              IF-MIB::ifIndex.503 = INTEGER: 503
              IF-MIB::ifIndex.504 = INTEGER: 504
              IF-MIB::ifIndex.506 = INTEGER: 506
              IF-MIB::ifIndex.507 = INTEGER: 507
              IF-MIB::ifIndex.508 = INTEGER: 508
              IF-MIB::ifIndex.509 = INTEGER: 509
              IF-MIB::ifIndex.510 = INTEGER: 510
              IF-MIB::ifIndex.511 = INTEGER: 511
              IF-MIB::ifIndex.512 = INTEGER: 512
              IF-MIB::ifIndex.515 = INTEGER: 515
              IF-MIB::ifIndex.516 = INTEGER: 516
              IF-MIB::ifIndex.517 = INTEGER: 517
              IF-MIB::ifIndex.518 = INTEGER: 518
              IF-MIB::ifIndex.519 = INTEGER: 519
              IF-MIB::ifIndex.520 = INTEGER: 520
              IF-MIB::ifIndex.521 = INTEGER: 521
              IF-MIB::ifIndex.522 = INTEGER: 522
              IF-MIB::ifIndex.524 = INTEGER: 524
              IF-MIB::ifIndex.525 = INTEGER: 525
              ^C

              Comment

              • LukeAB93UK
                Member
                Zabbix Certified Specialist
                • Jun 2023
                • 72

                #8
                i have made a discovery.

                I used SNMP walk on my Juniper Device and pulled the OID for the ADSL speed I am trying to monitor and Zabbix is still returning no such object at this OID

                ​​
                As you can see the OID I have been using is correct.
                Click image for larger version

Name:	image.png
Views:	7298
Size:	34.2 KB
ID:	465449
                I randomly grabbed anorther OID from a different value I came across when doing an SNMP walk.

                Comment

                • Hamardaban
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • May 2019
                  • 2713

                  #9
                  1) Please check
                  Originally posted by markosa View Post
                  Do you have some rules in Juniper so that community used isn't allowed to read those values?​
                  2) From www.juniper.net/documentation
                  What can I do if the MIB OID query is not responding?

                  There can be various reasons why the MIB OID query stops responding. One reason could be that the MIB itself is unresponsive. To verify that the MIB responds, use the show snmp mib walk | get MIB name | MIB OID command:
                  • If the MIB responds, the communication issue exists between the SNMP primary and SNMP agent. Possible reasons for this issue include network issues, an incorrect community configuration, an incorrect SNMP configuration, and so on.
                  • If the MIB does not respond, enable SNMP traceoptions to log PDUs and errors. All incoming and outgoing SNMP PDUs are logged. Check the traceoptions output to see if there are any errors.

                  If you continue to have problems with the MIB OID query, technical product support is available through the Juniper Networks Technical Assistance Center (JTAC).

                  Comment

                  • LukeAB93UK
                    Member
                    Zabbix Certified Specialist
                    • Jun 2023
                    • 72

                    #10
                    Hello,

                    So I have made some progress. I have got the proxy to pull the string.

                    Click image for larger version

Name:	image.png
Views:	7289
Size:	7.5 KB
ID:	465600

                    However even if I specify the ifIndex of the interface

                    Click image for larger version  Name:	image.png Views:	0 Size:	1.8 KB ID:	465598

                    or not

                    Click image for larger version  Name:	image.png Views:	0 Size:	1.7 KB ID:	465599

                    I am still getting "
                    • No Such Instance currently exists at this OID
                    ​I am legitimatey now at a total loss on how to get that string to dump that info into my Zabbix instance.​

                    Comment

                    • Hamardaban
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • May 2019
                      • 2713

                      #11
                      The difference is that snmpwalk runs down the tree from the specified OID, while zabbix "uses" snmpget which requests the specified value.

                      From proxy try "snmpget yours_creditans -Ona yours_IP 1.3.6.1.2.1.10.94.1.1.5.1.2.550.0" and if you get a value, use exactly this OID in zabbix.

                      Comment

                      • LukeAB93UK
                        Member
                        Zabbix Certified Specialist
                        • Jun 2023
                        • 72

                        #12
                        Originally posted by Hamardaban
                        The difference is that snmpwalk runs down the tree from the specified OID, while zabbix "uses" snmpget which requests the specified value.

                        From proxy try "snmpget yours_creditans -Ona yours_IP 1.3.6.1.2.1.10.94.1.1.5.1.2.550.0" and if you get a value, use exactly this OID in zabbix.
                        Hey there,

                        I ran that exactly from the proxy and I got this

                        snmpget <MyCommunityString> -Ona <MyIP> 1.3.6.1.2.1.10.94.1.1.5.1.2.550.0
                        snmpget: Invalid address (<MyCommunityString>) (Resource temporarily unavailable)

                        Comment

                        • LukeAB93UK
                          Member
                          Zabbix Certified Specialist
                          • Jun 2023
                          • 72

                          #13
                          I ran this command with -Ona I had to specify -v2c and -c

                          snmpget -v2c -c <MyCommunityString> -Ona <IP Address> 1.3.6.1.2.1.10.94.1.1.5.1.2.550.0
                          .1.3.6.1.2.1.10.94.1.1.5.1.2.550.0 = No Such Instance currently exists at this OID

                          Yet with an SNMP walk it shows the value

                          snmpwalk -v2c -c <MyCommunityString> <IP Address> .1.3.6.1.2.1.10.94.1.1.5.1.2
                          SNMPv2-SMI::transmission.94.1.1.5.1.2.550 = Gauge32: 8544000

                          Not sure if im doing or have done something wrong but I can pull the value 8544000 with walk but not with get.

                          Comment

                          • Hamardaban
                            Senior Member
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • May 2019
                            • 2713

                            #14
                            if you zabbix version gt 6.4 you can use new feature https://www.zabbix.com/documentation...snmp_oids_walk

                            Comment

                            • LukeAB93UK
                              Member
                              Zabbix Certified Specialist
                              • Jun 2023
                              • 72

                              #15
                              Originally posted by Hamardaban
                              if you zabbix version gt 6.4 you can use new feature https://www.zabbix.com/documentation...snmp_oids_walk
                              And doing this would allow me to "walk" and get the value instead of get correct?

                              Comment

                              Working...