Skip to main content

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

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: 

 

p1647359978] [1496] SERVICE ALERT: fake;Ping;CRITICAL;HARD;1;CRITICAL - 10.0.0.1: rta nan, lost 100%a1647359979] [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 ?

 


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)

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


Hello,

 

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


Reply