If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
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).
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