Skip to main content
Question

Event Handler script doesn't start

  • Jan 9, 2023 9:51 AM UTC
  • 4 replies
  • 218 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
  • Jan 10, 2023 9:15 AM UTC

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 **
  • Jan 12, 2023 7:55 AM UTC

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 **
  • Jan 12, 2023 9:43 AM UTC

 doesn’t work :)


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Jan 16, 2023 12:58 PM UTC

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