Skip to main content

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 ?

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

 


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

Maybe this is the problem ?


 doesn’t work :)


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


Reply