Skip to content

Commit 4661ebf

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 9e71761 commit 4661ebf

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 v2)
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.4.0p30
8+
class | fix
9+
edition | cre
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
@@ -1392,7 +1392,7 @@ section_proxmox() {
13921392

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

0 commit comments

Comments
 (0)