Skip to main content
Answer

Open ticket API command line

  • July 22, 2025
  • 2 replies
  • 61 views

Forum|alt.badge.img+5

Hello everyone,

I ask for your help...

I've configured notifications to automatically open tickets (via open-ticket).

To test, I set up a notification with the following command:

And I also enabled the email delivery option.

In the logs, I can see both notifications going through, but I only see the email command being executed.

My open ticket command isn't being executed. Does anyone have any ideas?

Thank you very much for your help.

Best answer by rpj

To provide feedback, we found that the variables were incorrect:

Here's the working command:

$CENTREONPLUGINS$/centreon_notification_centreon_opentickets_api.pl --mode=open-service --api-hostname=****** --api-username=****** --api-password='******' --rule-name=***** --host-id=$HOSTID$ --service-id=$SERVICEID$ --service-state=$SERVICESTATE$ --service-output="$SERVICEOUTPUT$"

2 replies

Forum|alt.badge.img+17

have you tried running that command manually from the ssh shell, “su - centreon-engine” and filling in the value manually with --debug, to see if it works “as is” (just use random value for IDs, state and output)

 

I don’t want so say anything wrong but “open ticket” needs a configuration for whatever “ticketting software” you use, and you must define a rule for using the api of the ticketting software (otrs, service now, other?)


Forum|alt.badge.img+5
  • Author
  • Steward **
  • Answer
  • July 30, 2025

To provide feedback, we found that the variables were incorrect:

Here's the working command:

$CENTREONPLUGINS$/centreon_notification_centreon_opentickets_api.pl --mode=open-service --api-hostname=****** --api-username=****** --api-password='******' --rule-name=***** --host-id=$HOSTID$ --service-id=$SERVICEID$ --service-state=$SERVICESTATE$ --service-output="$SERVICEOUTPUT$"