Hello,
I want to configure traps on my Centreon server to receive alarms from a router, and now I am trying to find the best configuration to do it, for that I want to know if it’s possible to add a variable (macro) to an advanced matching rule, I tried to add $1 and $p1 but it didnt work it’s print the variable but not it’s content. (see image below)
my idea is rather than adding a matching rule for every possible interface, I want to do it with one rule for similar interface names for example for GigabitEthernet0/1 and GigabitEthernet0/2 I want to add one matching rule like “GigabitEthernet0/$1” and the macro $1 here contain the interface index (1 or 2)..
is there a way to print a variable in the matching rule ?
Thank you for help
Regards