Skip to main content

Hello,

I configured traps on my Centreon server to receive alarms from an Avaya PBX (IP Office R11.1).

The constructor Avaya use base OID for multiple traps, for example all alarms related to licensing issue are defined on this OID:

.1.3.6.1.4.1.6889.2.2.1.2.0.46 = when the alarm is active
.1.3.6.1.4.1.6889.2.2.1.2.0.47 = when the alarm is cleared

And the constructor use specific codes to identify which type of license is identified for the trap:

 

 

I used iReasoning MIB browser to receive traps from the PBX, here is the result for all licensing traps (with same OID) :

 

Question: How can I do to be able to create all my licensing services to monitor ?

Because right now, I cannot create two services with the same OID:

 

Thank you for help

Regards

 

 

Hi !

You did not create services, but trap rules.

You have to create a passive service, then you can link multiple trap in “Relations” tab.

you can have more information here : https://docs.centreon.com/docs/monitoring/passive-monitoring/monitoring-with-snmp-traps/


Hi kduret !

 

Thank you for your reply :)

Oh yes, I created the services. My problem is that I can create only one service because the OID is unique for all alarms regarding licenses:

- license  type A

- License type B

- License type N...

-etc

And like I mentionned on the top of my question, the constructor Avaya send “event codes” on the OID to determinate which type of license alarm is concerned (please see Excel file screenshot).

 

Here is the service that I created for a license type “IP Endpoint”

 

 

The TRAP is received correctly for this license alarm

 

 

Here also, the TRAP is received when I simulate a connection lost with licensing server

 

But the problem is here, when I try to create a second service for another type of licenses, error message “The same OID element exists”

 

 

I hope that I described clearly my problem.

 

Thank you.

 

Regards


Hi again

 

My bad, I did not understand well the issue

You can add some advanced matching rules to manage multiple cases for a unique OID :

 

You have the list of available macros here : https://docs.centreon.com/docs/monitoring/passive-monitoring/create-snmp-traps-definitions/#variables

 

Hope it solves your problem


Okay, sorry I’m not familiar with arguments, here is an example for two TRAPS sent by the PBX for 2 different licenses type:

 

  1. License Power User
  2. License IP Endpoint

 

The constructor differenciate the alarm trap with codes:

 

Event Code : “32 / Integer” to indicate that is a license group of alarms

Event sub-code: in this example we have the same code 32 because both alarms are licensing alrams.

And we have event sub-code “17 OctetString” for License Power user and event sub-code “18 / OctetString” for license  IP Endpoint

 

 

How to use that on Centreon ? an idea ? :)

 

Regards


I think that Advanced matching rules is used to output un argument from the trap for a unique service. In my case I need to use the same trap with advanced matching rules like that’s :

  • Advanced matching rule 1: send result to service 1
  • Advanced matching rule 2: send result to service 2
  • etc…

I’m not sure if that is possible.


Hi !

 

This configuration works for me :) 

 

the same trap is linked to services passive1 and passive2

status of service passive1 is updated only if the output is crit1 or ok1

status of service passive2 is updated only if the output is crit2 or ok2

 

I’ve done my test with following commands :

snmptrap -v 2c -c public localhost '' 1.3.6.1.4.1.9.9.43.2.0.2.1.1.1 s s "ok1"

snmptrap -v 2c -c public localhost '' 1.3.6.1.4.1.9.9.43.2.0.2.1.1.1 s s "ok2"

snmptrap -v 2c -c public localhost '' 1.3.6.1.4.1.9.9.43.2.0.2.1.1.1 s s "crit1"

snmptrap -v 2c -c public localhost '' 1.3.6.1.4.1.9.9.43.2.0.2.1.1.1 s s "crit2"

 


That’s worked !! :)

 

Thank you very much.

 

I share the config, maybe it will be useful for other VoIP users with Avaya IP office.

 

Step 1) Create 2 traps definitions, one for active alarms, and one for cleard alarms:

 

 

The output message will be the argument number 7 ($7)

 

You can use iReasonning MIB Browser to see the order of argument, you need to configure trap receiver on MIB Brower and configure the IP address of your PC on the IP office trap events config, that allow IP office to send traps to the MIB Browser.

 

PS: refer to the Excel file joined to the AdminCD IPO MIB files to see the description of alarms.

 

  1. create passive check services for needed alarms:

link the service to the traps:

 

 

Regenerate trap config and reload !

 

 

 


Reply