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 :
Okay, sorry I’m not familiar with arguments, here is an example for two TRAPS sent by the PBX for 2 different licenses type:
License Power User
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.