From 7a459b3d222adf0a671ae53cadafa8663987b770 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Thu, 21 Jan 2021 10:11:02 +0100
Subject: [PATCH] Enhance and document mk_haproxy

---
 README.md                     | 5 +++++
 checkmk/debian/mk_haproxy.sls | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/README.md b/README.md
index b9188d7..ef4cc94 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,11 @@ Official checkmk plugin. Not really working right now.
 
 Installs the [mk_apt](https://checkmk.com/cms_check_apt.html) agent plugin
 
+### `checkmk.debian.mk_haproxy`
+
+Installs the haproxy agent plugin.
+You're haproxy instance needs to open a stats socket at level operator located at `/var/run/haproxy.sock` for this to work.
+
 ### `checkmk.debian.mk_logins`
 
 Installs the [mk_logins](https://checkmk.com/cms_check_logins.html) agent plugin
diff --git a/checkmk/debian/mk_haproxy.sls b/checkmk/debian/mk_haproxy.sls
index 8dee74b..7627b1a 100644
--- a/checkmk/debian/mk_haproxy.sls
+++ b/checkmk/debian/mk_haproxy.sls
@@ -1,3 +1,7 @@
+hsh_checkmk_install_haproxy_deps:
+  pkg.installed:
+    - name: socat
+
 hsh_checkmk_install_haproxy_plugin:
   file.managed:
     - name: /usr/lib/check_mk_agent/plugins/mk_haproxy
-- 
GitLab