Skip to content

Fix detection of HAProxy Enterprise#915

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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant