Skip to content

Blog

Zabbix: Marking switch ports as “not important” in bulk

When monitoring network switches that have end-user-facing ports, such as desk ports, it is excessively noisy to monitor these for conditions like “this port has gone down!”. There are a few approaches one can take to addressing this issue, one of which is to set macros on the host which mark each port as “not important”: {$IFCONTROL:”portname”} set to 0. However, adding this macro in bulk in the interface is not fun!

So, I’ve written a script that will set these “not important” macros against a number of hosts and interfaces provided in a CSV file.

You can find the script here.