I'm trying to figure out a good way to use custom filters along with discovery rules in a template. I have templates setup to discover network interfaces that have filters in the discovery rule (no internal interfaces, no loopbacks, oper status up, etc.)
Now to filter on specific interfaces since Zabbix doesn't have nay "pick lists" to let you choose which interfaces you want (again have to get very granular with your discovery rules), once the host is added I"m adding to the discovery rule on that host, a custom filter to list specific interfaces
example {#IFNAME} = (ge-1/0/1\b|ge-1/0/2\b|xe-10/1/49\b|xe10/1/50\b).
This works great, however.....If i make any changes to the Template discovery rule filter, Zabbix wipes out any customer filter I added to any hosts this was done on, which suddenly becomes problematic.
Is there a different way to do this and not have this happen?
Now to filter on specific interfaces since Zabbix doesn't have nay "pick lists" to let you choose which interfaces you want (again have to get very granular with your discovery rules), once the host is added I"m adding to the discovery rule on that host, a custom filter to list specific interfaces
example {#IFNAME} = (ge-1/0/1\b|ge-1/0/2\b|xe-10/1/49\b|xe10/1/50\b).
This works great, however.....If i make any changes to the Template discovery rule filter, Zabbix wipes out any customer filter I added to any hosts this was done on, which suddenly becomes problematic.
Is there a different way to do this and not have this happen?
Comment