Skip to main content
Answer

Dynatrace plugin usage

  • August 31, 2023
  • 4 replies
  • 113 views

pierre1
Forum|alt.badge.img+9

Hello,
I'd like to execute, with Dynatrace API v2, a GET request (synthetic - HTTP monitor execution).
- Is it possible to perform this with the Dynatrace Centreon plugin ?
- If not, is there an other way to proceed ?

Thanks,

Best answer by pierre1

Finally the issue is fixed. The solution to add the Token is provided by the option --header.

 

--header=’Authorization: Api-Token ValueOfTheToken’

Hoping it can help !

4 replies

fmattes
Centreonian
Forum|alt.badge.img+10
  • Centreonian
  • September 1, 2023

Hi !

Thanks for your interest in Centreon.

Could you precise what kind of information you need to GET using Dynatrace API ?

 

Dynatrace Centreon plugin may help you to get some interesting metrics about problems, events, performance index or monitors availability : https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-monitoring-dynatrace-restapi/

 

If necessary, you can also query REST API using generic HTTP connector :https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-protocol-http/ 

 

Let me know is this can help you or if you need more informations.

 

Best regards

-

Florian


pierre1
Forum|alt.badge.img+9
  • Author
  • September 1, 2023

Thanks Florian,

The Dynatrace Centreon plugin doesn’t give sufficient detailed informations, that’s the reason why I’m trying to build GET requests.

I’m going to test HTTP connector, to see if it seems relevant for my needs.


pierre1
Forum|alt.badge.img+9
  • Author
  • September 4, 2023

Hello,

I’ve tried the HTTP connector, it seems to be the adequate solution, but my new issue is how to configure the token requested to access to the URL I’m interested in.

I’ve checked with the help (/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=expected-content --help), but I didn’t find many explanations.

Does someone tried this kind of request before, with a token ?


pierre1
Forum|alt.badge.img+9
  • Author
  • Answer
  • September 14, 2023

Finally the issue is fixed. The solution to add the Token is provided by the option --header.

 

--header=’Authorization: Api-Token ValueOfTheToken’

Hoping it can help !