“This image shows that when I remove cable interface it is showing down alert color is red until I manually edit it critical While insert cable to switch it shows up automatically, I want the automatically process for switches when ports are down and showing red color and just tell me commands”
Can some help me regarding commands of automatically process set interface down and up while for down its shows red color and while up its show green color
I would try monitoring-plugins/check-plugins/snmp at main · Linuxfabrik/monitoring-plugins · GitHub as it allows python code in the warn and crit field of the csv file.
Given that your switch can send SNMP traps for port status changes, I’d use GitHub - patrickpr/trapdirector: Icingaweb2 module for receiving and handling snmp traps for this.
Similar can be achieved with the Elastic Stack (way more overhead).
In case of trapdirector you would want to check the latest PR for it. There I fixed the API usage for IcingaDB and some PHP8.2 code.
Never set it up but GitHub - WuerthPhoenix/tornado: Tornado could also be an interesting solution to get SNMP traps into Icinga2.