Question

SNMP Trap configuration (Advanced matching rules)

  • 29 March 2023
  • 1 reply
  • 138 views

Badge +1

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


1 reply

Userlevel 1
Badge +11

Salut, j’ai un problème similaire

Je cherche a faire matcher le niveau de sévérité sur la mib DeepSerucity, le niveau de criticité est sur l’argument $3.

Voici le liste des évènements: System events | Deep Security (trendmicro.com)

Voici ce que j’ai essayé mais sans succès:

 

Reply