06 Mar 2019 05:02 PM - last edited on 18 May 2023 04:45 PM by Michal_Gebacki
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
Solved! Go to Solution.
07 Mar 2019 07:22 AM
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:
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
07 Mar 2019 04:48 PM
@Maciej G.Good to know. Thanks!