Question

Event Handler script doesn't start

  • 9 January 2023
  • 4 replies
  • 129 views

Badge +2

Hello,
I want the envent handler to run a script when a service is in critical/unknown state. 
I have my script that works correctly when I launch it manually (the centreon account can launch the script). 
In the poller's logs, the services that are in "critical" state will try to execute the centreon command that launches the script. However nothing happens when the Event Handler launches the command.

Any ideas ?

 

The command : 

/usr/lib/centreon/plugins/eventhandler/open-jira-service-inc $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$

 

There is a log file to see the event handler execute the command ?


4 replies

Userlevel 6
Badge +18

Hi @xinerys check that ‘centreon-engine’ user have rights to execute your event handler.

chown centreon-engine:centreon-engine /usr/lib/centreon/plugins/eventhandler/open-jira-service-inc
chmod u+x /usr/lib/centreon/plugins/eventhandler/open-jira-service-inc

 

Badge +2

I do the same thing with the account “centreon” but not “centreon-engine”.

Maybe this is the problem ?

Badge +2

 doesn’t work :)

Userlevel 6
Badge +18

did you try to execute your event handler script using ‘centreon-engine’ accoun ?

Reply