# HA Proxy Plugin configuration when additional sockets are defined

**URL:** <https://community.dynatrace.com/t/ha-proxy-plugin-configuration-when-additional-sockets-are-defined/19894>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [March 6, 2019, 5:02pm UTC](https://community.dynatrace.com/t/ha-proxy-plugin-configuration-when-additional-sockets-are-defined/19894 "2019-03-06T17:02:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam\_cline](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@adam\_cline](https://community.dynatrace.com/u/adam_cline)\
**Post date:** [March 6, 2019, 5:02pm UTC](https://community.dynatrace.com/t/ha-proxy-plugin-configuration-when-additional-sockets-are-defined/19894/1 "2019-03-06T17:02:39Z")

</div>

I followed the instructions here to configure HA Proxy for socket mode monitoring by Dynatrace.

I already had HA Proxy configured with a socket for administration (stats socket /var/run/haproxy/haproxy.sock mode 600 level admin). For security reasons, I don’t want the Dynatrace plugin to access the admin socket.

Unfortunately, Dynatrace couldn’t connect when my admin socket line was in the config file, the error was “Cannot connect to the stats socket. Please check file permissions.”

Once I removed my admin socket, the plugin worked fine.

Does anyone know a way to have both and administration socket, and monitoring sockets available?

Cheers,

Adam

---

<div class="post-metadata">

**Author:** ![maciej\_grynda](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maciej_grynda/32/38855_2.png) [@maciej\_grynda](https://community.dynatrace.com/u/maciej_grynda)\
**Post date:** [March 7, 2019, 7:22am UTC](https://community.dynatrace.com/t/ha-proxy-plugin-configuration-when-additional-sockets-are-defined/19894/2 "2019-03-07T07:22:45Z")

</div>

Hi Adam!

Currently there is none way of doing this. However this feature will be released with OneAgent 165, HA Proxy insights plugin version 2.0.12

It will be added to documentation, but you will have to add #DYNATRACE.SKIP before socket you dont want to use, for example:

```auto
global
stats socket /var/run/process1.sock mode 600 level operator process 1 user dtuser
stats socket /var/run/process2.sock mode 600 level operator process 2 user dtuser
#DYNATRACE.SKIP
stats socket /var/run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
nbproc 2

```

Maciek

---

<div class="post-metadata">

**Author:** ![adam\_cline](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@adam\_cline](https://community.dynatrace.com/u/adam_cline)\
**Post date:** [March 7, 2019, 4:48pm UTC](https://community.dynatrace.com/t/ha-proxy-plugin-configuration-when-additional-sockets-are-defined/19894/3 "2019-03-07T16:48:16Z")

</div>

[@Maciej G.](https://answers.dynatrace.com/users/25166/view.html)Good to know. Thanks!
