Skip to main content
Solved

Event handler BAM

  • March 11, 2022
  • 4 replies
  • 196 views

Forum|alt.badge.img+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

Best answer by Francis DOUNGA

Hello,

 

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

4 replies

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • March 17, 2022

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 ?

 


Forum|alt.badge.img+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)

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • March 18, 2022

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


Forum|alt.badge.img+9
  • Author
  • Steward **
  • Answer
  • March 29, 2022

Hello,

 

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