I'm trying to create a network discovery rule, but filter out the interfaces whose names do match the following regex:
^(em\d|eth\d)$
I've created the custom regex and named it for instance "custom regex"
Then I've created a discovery rule and under the Filter tab I've populated it like so:
Macro = {#IFNAME}
Regular Expression = @custom regex
Then I've populated the following item prototypes:
net.if.in[{#IFNAME}]
net.if.out[{#IFNAME}]
I know for a fact the host I'm testing this on has SEVERAL em[1-4] interfaces, as well as a few others.
What I'm looking for is a discovery rule that will work in a template and only detect the interface whose names MATCH the regex/filter.
Nothing seems to be working. Any help would be much appreciated! Thanks
^(em\d|eth\d)$
I've created the custom regex and named it for instance "custom regex"
Then I've created a discovery rule and under the Filter tab I've populated it like so:
Macro = {#IFNAME}
Regular Expression = @custom regex
Then I've populated the following item prototypes:
net.if.in[{#IFNAME}]
net.if.out[{#IFNAME}]
I know for a fact the host I'm testing this on has SEVERAL em[1-4] interfaces, as well as a few others.
What I'm looking for is a discovery rule that will work in a template and only detect the interface whose names MATCH the regex/filter.
Nothing seems to be working. Any help would be much appreciated! Thanks

Comment