Skip to content

Fix detection of HAProxy Enterprise#915

Closed
mayrstefan wants to merge 1 commit into
Checkmk:masterfrom
mayrstefan:fix-hapee
Closed

Fix detection of HAProxy Enterprise#915
mayrstefan wants to merge 1 commit into
Checkmk:masterfrom
mayrstefan:fix-hapee

Conversation

@mayrstefan
Copy link
Copy Markdown
Contributor

General information

With recent versions of HAProxy Enterprise (HAPEE) the socket is no more created in a hapee subdirectory. Also /var/run is often only a link to /run.

This change searches all currently known options and stops after the first socket found.

Bug reports

  • Agent OS: RHEL 9.7
  • HAProxy Fusion 2.0
  • HAProxy Enterprise 3.2
  • Detailed steps to reproduce the bug: Just run the agent - haproxy is not detected

Fusion 2.0 generates a default configuration for hapee-lb using

stats socket /var/run/hapee-lb.sock

With /var/run being just a link the file is created as /run/hapee-lb.sock

Proposed changes

  • What is the expected behavior? Checkmk should work with the default configuration HAProxy Enterprise uses
  • What is the observed behavior? HAPEE configuration needs to be modified to work with Checkmk
  • If it's not obvious from the above: In what way does your patch change the current behavior? Extend the search path and stop when socket is found to avoid duplicate section output

With recent versions of HAProxy Enterprise (HAPEE) the socket is no more
created in a hapee subdirectory. Also /var/run is often only a link to /run.

This change searches all currently known options and stops after the
first socket found.
@CheckmkCI CheckmkCI closed this in c49d8d0 May 20, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2026
CheckmkCI pushed a commit that referenced this pull request May 20, 2026
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
CheckmkCI pushed a commit that referenced this pull request May 20, 2026
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant