Module: check_mk
Branch: master
Commit: 58765ac19db1d5f6d90bfe186d51b0749da29802
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58765ac19db1d5…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Apr 1 13:37:00 2019 +0200
7358 FIX sap_hana_license: Fixed WARNING state of expiration date for unlimited licenses
Change-Id: I5dd9e44829b819002b7ae815cad34670f9e11864
---
.werks/7358 | 10 ++++++++++
checks/sap_hana_license | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/7358 b/.werks/7358
new file mode 100644
index 0000000..2907e6f
--- /dev/null
+++ b/.werks/7358
@@ -0,0 +1,10 @@
+Title: sap_hana_license: Fixed WARNING state of expiration date for unlimited licenses
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1554118519
+Class: fix
+
+
diff --git a/checks/sap_hana_license b/checks/sap_hana_license
index 90abfe7..3aca5f1 100644
--- a/checks/sap_hana_license
+++ b/checks/sap_hana_license
@@ -100,7 +100,7 @@ def check_sap_hana_license(item, params, parsed):
yield 1, 'not %s' % valid.value
expiration_date = data["expiration_date"]
- if expiration_date == "?":
+ if expiration_date != "?":
yield 1, 'Expiration date: %s' % expiration_date