Skip to main content
Question

Event Handler script doesn't start

  • January 9, 2023
  • 4 replies
  • 185 views

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

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • January 10, 2023

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

 


Forum|alt.badge.img+2
  • Author
  • Steward *
  • January 12, 2023

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

Maybe this is the problem ?


Forum|alt.badge.img+2
  • Author
  • Steward *
  • January 12, 2023

 doesn’t work :)


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • January 16, 2023

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