Ad Widget

Collapse

Missing port on host switch.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bpurdy
    Junior Member
    • Oct 2024
    • 6

    #1

    Missing port on host switch.

    We have a recent setup of Zabbix. One of the host devices is a stack switch with over 400 ports. While looking for specific ports to graph, I noticed that at least one of the switch ports is missing. This switch was added manually and not through discovery. Also looking at the latest data page from the device, the port is missing from there also. I don't want to just delete the host switch and re-add it in hopes of finding this lost port because of all the graphing I did. Does anyone know of a way to find a missing switch port on a host device? aka can you manually add a port such as Gi1/0/13 to a host that is already been added?
  • troffasky
    Senior Member
    • Jul 2008
    • 567

    #2
    They're just items. You should be able to work out the correct name/OID for the missing item.
    Unfortunately I don't know of any way to troubleshoot the LLD filtering process.

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1782

      #3
      Usually the switch template discovers (using LLD) the available interfaces. The LLD run happens maybe hourly. Sometimes the template has LLD filters configured so that some interfaces are ignored based on specific macro-configurable conditions.

      What's your template, and what is the Zabbix version?

      Markku

      Comment

      • bpurdy
        Junior Member
        • Oct 2024
        • 6

        #4
        The template I am using is just the default "Network Generic Device by SNMP" and the version is 7.2. Also for that template, I only am using 1 macro for the snmp community. I did try Sean Bradley's snmpwalk2zabbix but it kept timing out as I have a switch 6X48 in a stack, plus port channels. I did add an item with the correct OID for the port bit sent and received and now I can see the port in Latest data. But there is no data coming in. For the other ports on the same switch there are 11 items vs. the 2 I manually added. You think if I manually add all 11 items that the other working ports have the port would populate in the widget? Or is the widget messed up and I will have to re-add it with the correct OID? If I have to do the later and delete the host and readd it, will all my dashboard work still work after I readd it? or will I have to recreate the dashboards? Thanks

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1782

          #5
          Thanks for the information. I looked at the template at https://git.zabbix.com/projects/ZBX/...Frelease%2F7.2 and there really are some filters that skip some of the interfaces, see from about line 290 forward (the default values for the macros are shown beginning at about line 743).

          By default the LLD rule skips all interfaces that are in "shutdown" (admin shut).

          Does that match your observation?

          Markku

          Comment

          • bpurdy
            Junior Member
            • Oct 2024
            • 6

            #6
            Thanks for the information and I can see the filters and macros at the lines you mentioned. Unfortunately the port that I am trying to add to the widget is an active ISP port. So I should be able to see data on that port. I can see the port listed in "Latest data", but when I look at the graph there is no data. I think the main problem now is just getting that particular port back into the widget itself. I'm wondering if I add the remaining OID's that the other good ports have, will that add the bad port back to the widget?

            Comment

            • Markku
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Sep 2018
              • 1782

              #7
              So you are saying:
              - the LLD rule does not find the interface (even if the interface is up and you haven't set macros to affect the default filtering)
              - if you add the items manually for the interface (using whatever OIDs you somehow figured that should be correct), they don't collect data.

              Sounds like a device problem to me.

              Maybe run snmpwalk commands manually (see the LLD rule for the OIDs to scan) and try to figure out what is going wrong.

              Markku

              Comment

              • bpurdy
                Junior Member
                • Oct 2024
                • 6

                #8
                Yes to the above of LLD rule doesn't find the interface. I only added 2 of the 11 OID's that the good other interfaces are using. I guess right now I'm going tinker with it and add the other missing OID's and see if that helps add the interface to the widget. If that doesn't help I figure I will have to re-add that host switch. I just was afraid to do that with all the graphing I did. Didn't really want to delete the switch and have the same thing happen either. Thanks for the help!

                Comment

                • kyus
                  Senior Member
                  • Feb 2024
                  • 172

                  #9
                  Try to get data from this interface through snmpget or snmpwalk to see if you face any errors. You can also click on your item and click on "Test" -> "Get value and test".

                  This template doesn't have any dependent items, so the fact that you only created 2 items for this interface won't be a problem. They should still bring you some data.

                  Comment

                  • bpurdy
                    Junior Member
                    • Oct 2024
                    • 6

                    #10
                    Thanks for all the comments and suggestions guys. I'm going do a little experimenting with and extra switch stack, and play with the discovery, LLD and filtering a little more. This way I can experiment more and I don't ruin what I built so far. I'll let you know if I was able to add that switch port back to the widget. Though I have a feeling I'll be re-adding that host and just cleaning up the mess.

                    Comment

                    Working...