Hi,
We are using Centreon Open Tickets (Version centreon-open-tickets-21.10.1-1).
It has been configured with rules to create ticket on our Jira infra.
Afiter follwowing this documentation :
Integration Open-Tickets - Accueil DIS - Centreon - Wiki (vaudoise.ch)
… we can now open a ticket manually from the’Custom View’ page… this iw working Well.
But now we would like that tickets are created automatically when a Centreon Services reaches it critical hard State.
To do this, I need to configure a Notification Command : but its means that we must to know the syntax on how to create a ticket in command line.
On our poller we installed this package:
centreon-plugin-Notification-Centreon-Opentickets-Api-20221017-094659.el7.centos.noarch
It provides this plugin : ‘/usr/lib/centreon/plugins/centreon_notification_centreon_opentickets_api.pl’
The modes availables are .
close-host
close-service
open-host
open-service
… So we should be able to create a ticket in command line with this plugin, but I cannot find the correct Syntax :
Currently I tried :
/usr/lib/centreon/plugins/centreon_notification_centreon_opentickets_api.pl --plugin notification::centreon::opentickets::api::plugin --mode open-service --rule-name '$MY_RULENAME' --host-id $MYHOST_ID--service-id $MYSERVICE_ID--service-state WARNING --service-output TEST --api-hostname $MY_CENTREON_ALIASh --api-proto https --api-port 443 --api-username apirest_user --api-password "XXXX"
NOTE: The arguments beginning by $ are some variables on my side : Centreon server, Service ID … etc.
… But I get thi error “UNKNOWN: Authentication error [code: '404'] [message: 'Object not found']””
Did domeone tried to open Jira Tickets automatically (Or in command line) ?
Thanks