centreon / centreon-open-tickets

Module dedicated to open case on various Ticket systems from Centreon UI
Apache License 2.0
10 stars 25 forks source link

enh(webservices): create a ticket for host or service #222

Closed garnier-quentin closed 2 years ago

garnier-quentin commented 2 years ago

Description

Add webservices to open ticket for a host or a service.

Type of change

Target serie

How this pull request can be tested ?

For a service:

$ perl centreon_plugins.pl --plugin=notification::centreon::opentickets::api::plugin --mode=open-service --api-hostname=10.25.5.178 --api-username=admin --api-password=centreon --rule-name=mail --host-id=11 --service-id=50 --service-state=CRITICAL --service-output=plop --extra-property='custom_message=plop' --select='test2=plop 2'

For a host:

$ perl centreon_plugins.pl --plugin=notification::centreon::opentickets::api::plugin --mode=open-host --api-hostname=10.25.5.178 --api-username=admin --api-password=centreon --rule-name=mail --host-id=11 --host-state=DOWN --host-output=plop2 --extra-property='custom_message=plop' --select='test2=plop 2'

Checklist

sonarqube-decoration[bot] commented 2 years ago

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 60 Code Smells

0.0% 0.0% Coverage
10.0% 10.0% Duplication