Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion agents/check_mk_agent.linux
Original file line number Diff line number Diff line change
Expand Up @@ -1455,10 +1455,11 @@ section_proxmox() {

section_haproxy() {
# Consider sockets for community v2.x and v3.x AND enterprise edition
for HAPROXY_SOCK in /run/haproxy/admin.sock /var/lib/haproxy/stats /var/run/haproxy.sock /var/run/hapee-*/hapee-lb.sock; do
for HAPROXY_SOCK in /run/haproxy/admin.sock /var/lib/haproxy/stats /var/run/haproxy.sock {,/var}/run{,/hapee-*}/hapee-lb.sock; do
if [ -r "${HAPROXY_SOCK}" ] && inpath socat; then
echo "<<<haproxy:sep(44)>>>"
echo "show stat" | socat - "UNIX-CONNECT:${HAPROXY_SOCK}"
break
fi
done
}
Expand Down
Loading