Module: check_mk
Branch: master
Commit: b1d0e19f2254828edf552d4d498436b53b96d3f6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1d0e19f225482…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 31 10:24:43 2014 +0100
#1165 FIX Fixed exception in service discovery of logwatch event console forwarding checks
When a service "logwatch.ec" (event console forwarding) is found via service discovery
and the check parameters are displayed in the table, an exception occured, because
WATO could not interpret the inventorized parameters correctly.
---
.werks/1165 | 12 ++++++++++++
ChangeLog | 3 +++
web/plugins/wato/check_parameters.py | 9 ++++++++-
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/.werks/1165 b/.werks/1165
new file mode 100644
index 0000000..554d905
--- /dev/null
+++ b/.werks/1165
@@ -0,0 +1,12 @@
+Title: Fixed exception in service discovery of logwatch event console forwarding checks
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1414747390
+
+When a service "logwatch.ec" (event console forwarding) is found via service discovery
+and the check parameters are displayed in the table, an exception occured, because
+WATO could not interpret the inventorized parameters correctly.
diff --git a/ChangeLog b/ChangeLog
index 1fdff2d..f1766d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Multisite:
* 1164 FIX: Fixed links from servicegroup overviews to single servicegroups
+ WATO:
+ * 1165 FIX: Fixed exception in service discovery of logwatch event console forwarding checks...
+
1.2.5i6:
Core & Setup:
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index ca500a1..381b24e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -5913,8 +5913,15 @@ register_check_parameters(subgroup_applications,
"Reinventorize this check in order to make it OK again."),
)
),
+ ('expected_logfiles',
+ ListOfStrings(
+ title = _("List of expected logfiles"),
+ help = _("When the monitoring of forwarded logfiles is enabled, the check verifies that "
+ "all of the logfiles listed here are reported by the monitored system."),
+ )
+ ),
],
- optional_keys = ['restrict_logfiles'],
+ optional_keys = ['restrict_logfiles', 'expected_logfiles'],
),
],
default_value = '',