HI
I have a simple but strange problem.
On my Linux Zabbix agent2 i have this output from zabbix_agent2 -p
My plan is to exclude all interfaces starting with "fw"
I have done these things
1. Adding ^fw.* - "Result is false" to global Regular expressions, under "Network interfaces for discovery" - don't work, interfaces is still getting discovered and created on host.
2. Adding ^fw.* to {$NET.IF.IFNAME.NOT_MATCHES} macro on template - don't work, interfaces is still getting discovered and created on host.
3. Set ^fw.* To filters under the Network interface discovery rule - don't work, interfaces is still getting discovered and created on host.
Every time i removed the templates from the host and run zabbix_server -R config_cache_reload, then reapplied the templates.
Network discovery is set to 5m for testing.
Running Zabbix server 5 and Agent is Linux Agent2
On https://regexr.com/
^fw.* matches all interfaces starting with fw
I have the same problem with Interface named tap
I have a simple but strange problem.
On my Linux Zabbix agent2 i have this output from zabbix_agent2 -p
Code:
net.if.discovery [s|[{"{#IFNAME}":"lo"},{"{#IFNAME}":"veth104i0"},{"{#IFNAME}":"fwpr112p0"},{"{#IFNAME}":"fwpr113p0"},{"{#IFNAME}":"fwbr103i0"},{"{#IFNAME}":"fwln102i0"},{"{#IFNAME}":"fwln113i0"},{"{#IFNAME}":"vmbr0"}
I have done these things
1. Adding ^fw.* - "Result is false" to global Regular expressions, under "Network interfaces for discovery" - don't work, interfaces is still getting discovered and created on host.
2. Adding ^fw.* to {$NET.IF.IFNAME.NOT_MATCHES} macro on template - don't work, interfaces is still getting discovered and created on host.
3. Set ^fw.* To filters under the Network interface discovery rule - don't work, interfaces is still getting discovered and created on host.
Every time i removed the templates from the host and run zabbix_server -R config_cache_reload, then reapplied the templates.
Network discovery is set to 5m for testing.
Running Zabbix server 5 and Agent is Linux Agent2
On https://regexr.com/
^fw.* matches all interfaces starting with fw
I have the same problem with Interface named tap
Comment