Solved

Event handler BAM

  • 11 March 2022
  • 4 replies
  • 176 views

Badge +9

Hi The watch centreon,

Have you ever managed to use event handler with BAM? It works for services and hosts, but when I activate it on a BAM with a command I created, I can't find the central

We use Centreon 21.04

See the detail below

icon

Best answer by Francis DOUNGA 29 March 2022, 18:50

View original

4 replies

Userlevel 6
Badge +19

Hello Francis, 


I think some parts of your message are missing because there’s nothing after ‘below’. 

 

I’ll try on my side but I only have 21.10. A fellow has tested and seems to work: 

 

[1647359978] [1496] SERVICE ALERT: fake;Ping;CRITICAL;HARD;1;CRITICAL - 10.0.0.1: rta nan, lost 100%[1647359979] [1496] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;_Module_BAM_1;ba_1;1647359978[1647359983] [1496] SERVICE ALERT: _Module_BAM_1;ba_1;CRITICAL;HARD;1;BA: Test - current_level = 100%[1647359983] [1496] SERVICE EVENT HANDLER: _Module_BAM_1;ba_1;CRITICAL;HARD;1;test

 

Could you share additionnal logs and configuration ?

 

Badge +9

Hello,

 

I created a command called Auto-BAM. I added this command in event handler command of BAM. Then I try to reload the central, which does not work (see below)
Userlevel 6
Badge +19

Hello Francis, 


Do you see anything when running these commands on your central server: 

 

grep -i handler /etc/centreon-engine/centreon-bam-*

 

grep ‘EVENT HANDLER’ /var/log/centreon-engine/centengine.log

Badge +9

Hello,

 

The problem is resolved. I used the check command rathan than used misc command for BAM

Reply