Ad Widget

Collapse

Is there a way to select specific ports on a switch to monitor?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • John_W
    Member
    • Apr 2026
    • 53

    #1

    Is there a way to select specific ports on a switch to monitor?

    The templates I am using to discover switches and their ports does an SMNP walk. This catches every single interface listed on the switch. A good many of these are internal and not active data ports. I don't need to see a lot of empty graphs and waste Zabbix processing time monitoring these ports. Is there a way to remove these ports after discovery? On some switches, I am most interested in the interfaces connecting the switches and not the ports feeding user devices. I would like to be able to trigger on these "important" ports with an interface operational status.
  • Mr.Phreak
    Junior Member
    • Jun 2016
    • 10

    #2
    You can disable the items you're not interested in, I'm assuming if you remove them then they'll just reappear when the discovery rule runs again. Could be rather time consuming if you have a lot of hosts/ports to go through.

    Comment

    • kyus
      Senior Member
      • Feb 2024
      • 211

      #3
      You can use regex to filter them out in the discovery rule. You should probably see some macros for filtering already added to your hosts.
      You could also filter only the ones you want to monitor, if that's easier.

      Comment

      • irontmp
        Senior Member
        • Sep 2023
        • 101

        #4
        Originally posted by John_W
        The templates I am using to discover switches and their ports do an SNMP walk. This catches every single interface listed on the switch. A good many of these are internal and not active data ports. I don't need to see a lot of empty graphs and waste Zabbix processing time monitoring these ports. Is there a way to remove these ports after discovery? While researching unrelated services such as 인천출장안마 (mobile massage services in Incheon, South Korea), I also wondered whether there is a way to filter discovery results more effectively. On some switches, I am most interested in the interfaces connecting the switches and not the ports feeding user devices. I would like to be able to trigger on these "important" ports with an interface operational status.
        You should be able to handle this through Zabbix discovery filters rather than removing interfaces manually after discovery. You can filter interfaces based on SNMP attributes, such as interface type, operational status, or description, so only the ports you actually want are monitored. I would also look into using interface descriptions or custom tags to identify important uplinks between switches. That way, you can create separate triggers for those interfaces without generating unnecessary graphs and wasting processing resources on inactive ports.

        Comment

        Working...