Ad Widget

Collapse

Cisco down ports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m_arab
    Junior Member
    • May 2018
    • 4

    #1

    Cisco down ports

    Hi
    I need an item that contains number of down ports in a Cisco 2960 switch.
    Is there any idea?
    thanks a lot
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    Write a script and count in an SNMP walk, and use as an external check.

    Don't forget there's two downs, admin and current link state; you might not want all combinations counted the same.

    If it's a specific 2960 with a specific number of ports you could do a calculated item by hard coding each port's status (from other items that polled them), but that's very dependent on number of ports, maybe even types depending on whether the index is contiguous across them (it often is not, though on the 2960 maybe).

    Comment

    • m_arab
      Junior Member
      • May 2018
      • 4

      #3
      Thank you a lot for your reply
      I used your idea but in a different way
      1- I add an entry in userparameter.conf file as follow
      UserParameter=cisco.switch.down_admin_ports[*],snmpwalk -v 2c -c **** $1 IF-MIB::ifAdminStatus | grep -c 'down'
      2-create a zabbix agent based item using key like cisco.switch.down_admin_ports[198.1.1.1] ( with my device ip)
      Now it is working and I used this Item in my grafana dashboard very simple

      Comment

      • jasbinschek
        Junior Member
        • Dec 2017
        • 19

        #4
        can't you create a LLD using SNMP?

        Comment

        • m_arab
          Junior Member
          • May 2018
          • 4

          #5
          To be honest, I am a beginner in Zabbix and it is hard for me to create an LLD.
          But if there is a good document about how to do it, I will do it
          Thaks

          Comment

          Working...