Hello, how can I use global regular expressions in the template trigger?
I have the template for Mikrotik switch and need to ignore triggers for some switch ports. I cannot ignore it in the template discovery filter, because I need to collect data, but I do not want any triggers for these ports.
I have global regex "PORTS" with the list of network interface names "Any character string included" (port1,pc2,test). Now I need to modify the trigger in the template to ignore if the value of template discovery macro "{#IFNAME}" is found in the global regex. Something like "{#IFNAME}.regex(@PORTS) and ...".
It is possible?
Thanks,
Martin​
I have the template for Mikrotik switch and need to ignore triggers for some switch ports. I cannot ignore it in the template discovery filter, because I need to collect data, but I do not want any triggers for these ports.
I have global regex "PORTS" with the list of network interface names "Any character string included" (port1,pc2,test). Now I need to modify the trigger in the template to ignore if the value of template discovery macro "{#IFNAME}" is found in the global regex. Something like "{#IFNAME}.regex(@PORTS) and ...".
It is possible?
Thanks,
Martin​
Comment