Module: check_mk
Branch: master
Commit: db8fd37b68d347ddcd83537901bee30987cdb6eb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=db8fd37b68d347…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Aug 2 14:57:02 2017 +0200
5078 FIX lnx_distro: Detects version and name of Check_MK Appliance correctly
Change-Id: Ia11f64c10b40673e545dc6ab5fa6ae3d2222a54f
---
.werks/5078 | 11 +++++++++++
inventory/lnx_distro | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/5078 b/.werks/5078
new file mode 100644
index 0000000..7ce0faf
--- /dev/null
+++ b/.werks/5078
@@ -0,0 +1,11 @@
+Title: lnx_distro: Detects version and name of Check_MK Appliance correctly
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1501678510
+
+
diff --git a/inventory/lnx_distro b/inventory/lnx_distro
index 7aa3641..1ab82a2 100644
--- a/inventory/lnx_distro
+++ b/inventory/lnx_distro
@@ -157,9 +157,9 @@ def inv_lnx_parse_debian(node, line):
def inv_lnx_parse_cma(node, line):
- node["name"] = "Check_MK Appliance " + line[1]
+ node["name"] = "Check_MK Appliance " + line[0]
node["vendor"] = "Mathias Kettner GmbH"
- node["version"] = line[1]
+ node["version"] = line[0]
if "code_name" in node:
del node["code_name"]