20 Oct 2020 06:14 PM - last edited on 16 Mar 2023 03:12 PM by Ana_Kuzmenchuk
Hi, I have dynatrace set up as managed DT and now I am trying to integrate with various services like Netcool, Slack etc by setting up the webhooks.
Recently when I was trying to hook it up with Netcool, I was getting custom integration failed but then i raised a support ticket and they asked me to do these settings which I did and it then worked. Netcool service integrated successfully.
<server/conf/config.properties>
[http.client.external]
proxy-off = true
BUT then my other integrations with Slack started failing. Is there a way to get around this?
Slack webhook looks like this - https://hooks.slack.com/services*
Netcool webhook looks like this - https://myntlserver.com/probe/dynatraces
Solved! Go to Solution.
20 Oct 2020 07:10 PM
The [http.client.external] is, AFAIK, the settings for HTTP communication targeted outside the cluster - so this applies for mission control, and integrations (Slack, Webhook, .. ).
If you require some of those targets to go via proxy and for some not, you have basically two options now:
Hope this helps.
20 Oct 2020 10:59 PM
You can achieve that by adding to the configuration you mentioned another property called "proxy-non-proxy-hosts".
In you example:
<server/conf/config.properties>
[http.client.external]
proxy-off = true
proxy-non-proxy-hosts = hooks.slack.com/services*
That configuration should make that calls executed to the specified domain don't go over the proxy. Make sure this is applied to all nodes and is followed by server restart.
The extended configuration of proxy in Cluster Management Console, allowing to specify that should be available early Q1 next year.
21 Oct 2020 07:09 AM
This unfortunately never worked for me last time I've tried - a few months ago. I should give it another try.
21 Oct 2020 07:14 AM
should work since 1.198. Let me know if it's not.
21 Oct 2020 09:49 AM
@Radoslaw S.
What does this setting means?
proxy-non-proxy-hosts = hooks.slack.com/services*
Basically my Dynatrace is inside corporate network and the targets Netcool are internal and Slack is external.
How do i configure so that Netcool doesn't use Proxy but Slack uses proxy?
21 Oct 2020 09:55 AM
Ah... so I understood that opposite. As I wrote - the property defines which hostnames should be ignored by the proxy. In that case you should put Netcool's hostname instead as it's internal and shouldn't use the proxy:
<server/conf/config.properties>
[http.client.external]
proxy-off = true
proxy-non-proxy-hosts = myntlserver.com/probe/dynatraces
21 Oct 2020 10:40 AM
@Radoslaw S. Thank you. But proxy-off = true means proxy is switched off right. How will these configuration will make sure the proxy is applying to Slack but NOT for Netcool
<server/conf/config.properties>
[http.client.external]
proxy-off = true
proxy-non-proxy-hosts = myntlserver.com/probe/dynatraces
21 Oct 2020 11:43 AM
True! My bad! You should get rid of prox-off line and define proxy parameters instead.
21 Oct 2020 12:06 PM
@Radoslaw S.
So yes I tried to configure that earlier but it didn't work and then DT support said to use proxy-off. It worked but then failed for other targets.
Is that the below setting works only with certain version of Dynatrace?
<server/conf/config.properties>
[http.client.external]
proxy-non-proxy-hosts = myntlserver.com/probe/dynatracest
21 Oct 2020 12:59 PM
Since 1.198 .. what's the version you have?
21 Oct 2020 03:08 PM
We are using this - Version 1.200.103.20200903-152540.
So it won't work? Is there any other way?
21 Oct 2020 03:34 PM
Did you restart the Dynatrace Cluster node after adding the proxy-non-proxy-hosts?
22 Oct 2020 09:45 AM
@Julius L. @Radoslaw S. Yes we started all 3 nodes of our dynatrace cluster but it didn't work. So as soon as we switch to the below setting, Slack integration works but Netcool integration fails.
Also How do i check if my Dynatrace cluster is using which proxy server for the outbound communication? I don't remember defining it anywhere.
Is there a place I can check?
22 Oct 2020 10:03 AM
All outgoing requests will go over the proxy defined in CMC -> Settings -> Internet connection. Do you have a proxy there?
22 Oct 2020 11:12 AM
ah yes. I got it. There is a proxy server configured which means every external communication like (Slack) is going via proxy. And if we switch it off in settings with proxy-off = true then it stops working but at the same the Netcool integration works because that doesn't need proxy as it's hosted internally. I already tried the below settings, configured them all 3 nodes and restarted the cluster but it didn't work. Any ideas?
As i mentioned my DT version is Version 1.200.103.20200903-152540. Are you sure that it won't work with this version?
<server/conf/config.properties>
[http.client.external]
proxy-non-proxy-hosts = myntlserver.com/probe/dynatraces
22 Oct 2020 11:51 AM
But you have to define additionally:
<server/conf/config.properties>
proxy-server=<proxy-server>
proxy-port=<port>
# http or https
proxy-scheme=<protocol>
# basic authentication credentials (optionally)
#proxy-user=username
#proxy-password=password
And also - do you use a proxy to Mission Control? I'm afraid that may overwrite what is configured in the config file.
22 Oct 2020 03:02 PM
@Radoslaw S. Where to define these? So I checked on Dynatrace settings -> Internet connection as you suggested and I see there is a proxy server configured already.
Initially we integrated with Slack which is external (outside my corp network) so it worked perfectly fine. Then we targeted to integrate with Netcool which is internal (inside my corp network and doesn't require proxy) and it didn't work.
We raised a support ticket to DT and they asked us to change these settings. We did that, restarted but it didn't work.
What else do i need to define here? If you could guide me it would be very helpful.
<server/conf/config.properties>
[http.client.external]
proxy-non-proxy-hosts = myntlserver.com/probe/dynatraces
27 Oct 2020 10:30 AM
Shashank, can you please open a support case? We'll take a closer look at you configuration. Also I can confirm you will be able to configure that in UI in version 1.206.
30 Oct 2020 10:15 AM
@Radoslaw S. I have got it working. I have followed what you have said and it starts working now. I can now connect to both Netcool and Slack.
Thanks again for your help and support.
30 Oct 2020 10:34 AM
I'm very glad to hear that!
21 Oct 2020 03:15 PM
@Julius L. Hello, I am not able to find your answer you posted earlier. Could you please post that again. I think that had some useful information about using local proxy server.
21 Oct 2020 03:35 PM
I undeleted it right now. @Radoslaw S.'s answer is better. I had to deal with the situation when the proxy option mentioned was not in the product yet.
21 Oct 2020 06:26 PM
Julius, I like you reply as well. Whereas it's harder to implement, it provides more power and is a valid solution.