Skip to content

Commit d856c92

Browse files
Fix detection of HAProxy Enterprise
With recent versions of HAProxy Enterprise (HAPEE) the socket is no more created in a hapee subdirectory. Change-Id: I6bc645aeb3255ba7a92155065ad6a477dcb843b2 Jira: SUP-29063 Co-authored-by: Solomon Jacobs <solomon.jacobs@checkmk.com> Closes: #915
1 parent f1a028d commit d856c92

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.werks/19706.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[//]: # (werk v3)
2+
# haproxy: Support for new socket path
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-05-19T09:16:56.680212+00:00
7+
version | 2.5.0p4
8+
class | fix
9+
edition | community
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
Recent versions of HAProxy Enterprise moved the stats socket from a versioned subdirectory (`/var/run/hapee-<version>/hapee-lb.sock`) to directly under `/var/run/hapee-lb.sock`, which the agent failed to detect.
15+
This Werk adds the new path to the agent's socket search list.

agents/check_mk_agent.linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ section_proxmox() {
14551455

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

0 commit comments

Comments
 (0)