Question

Event-handler error : Command not allowed

  • 5 April 2023
  • 1 reply
  • 118 views

Badge +1

Hello !

I’m trying to configure Event Handler on Disk Services on my CENTREON. To do this, I :

  • Created a bash script, placed in /var/spool/centreon/(test4.sh)
  • chmod’ed the script to 777 (so it have all the permissions to be sure that it’s not a permission problems)
  • Created in “Configuration > Notification > Commands”  my command :
    •  

  • Added this command to services and services-group by :
    • Going into the service conf page
    • Going to the “Data processing” TAB
    • Putting “Event Handler Enabled” to “Yes” and adding the command into the “Event Handler” section
    • e
  • Exported the configuration on the poller
  • Note : I’ve also tried simple commands such as “whoami” or “printf” but I still got the same error. I’ve also tried mooving the script to /var/lib/centreon-engine/, but again I get the same error...
  • However, when I click on the “i” next to my event handler, I have the following error :

 

Command Line /var/spool/centreon/test4.sh
Output Command not allowed

1 reply

Badge +1

UP / I still have the same problem and can’t find the soluce

Reply