Module: check_mk
Branch: master
Commit: 1cac61380a0fee895fc456b77dd9f2cf06109490
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1cac61380a0feeā¦
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Nov 7 14:28:50 2016 +0100
3989 Logwatch patterns: now able to change state of context lines
You can now reclassify the state of context lines to a different state.
For example to IGNORE, which prevents that the line is forwarded to the event console.
---
.werks/3989 | 10 ++++++++++
ChangeLog | 3 ++-
web/plugins/wato/check_parameters.py | 14 ++++++++++++++
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/.werks/3989 b/.werks/3989
new file mode 100644
index 0000000..3e0ab78
--- /dev/null
+++ b/.werks/3989
@@ -0,0 +1,10 @@
+Title: Logwatch patterns: now able to change state of context lines
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478525175
+Class: feature
+
+You can now reclassify the state of context lines to a different state.
+For example to IGNORE, which prevents that the line is forwarded to the event console.
diff --git a/ChangeLog b/ChangeLog
index c6d8f9c..230e838 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,7 +19,8 @@
* 3949 ucd_cpu_load: Genugate devices are now displaying CPU load...
* 3950 openbsd_sensors: Genugate devices are now handling hardware sensors...
* 3749 storcli_pdisks, storcli_vdrives: New checks to monitor RAID status via StorCLI
utility
- * 3988 Windows agent: no global option disabled_sections...
+ * 3988 Windows agent: new global option disabled_sections...
+ * 3989 Logwatch patterns: now able to change state of context lines...
* 3894 FIX: mkeventd_status: Fixed bug in case Event Console is not running
* 3907 FIX: oracle_tablespaces: simplyfied free space calculation depending on
version...
* 3819 FIX: windows agent: fixed 2 bugs related to mrpe...
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 268e445..19dcd2f 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1367,6 +1367,7 @@ register_rule(group + '/' + subgroup_applications,
('W', _('WARNING')),
('O', _('OK')),
('I', _('IGNORE')),
+ ('.', _('Context Info')),
],
default_value = "C",
)),
@@ -1377,6 +1378,7 @@ register_rule(group + '/' + subgroup_applications,
('W', _('WARNING')),
('O', _('OK')),
('I', _('IGNORE')),
+ ('.', _('Context Info')),
],
default_value = "W",
)),
@@ -1387,9 +1389,21 @@ register_rule(group + '/' + subgroup_applications,
('W', _('WARNING')),
('O', _('OK')),
('I', _('IGNORE')),
+ ('.', _('Context Info')),
],
default_value = "O",
)),
+ ("._to", DropdownChoice(
+ title = _("Change Context Info to"),
+ choices = [
+ ('C', _('CRITICAL')),
+ ('W', _('WARNING')),
+ ('O', _('OK')),
+ ('I', _('IGNORE')),
+ ('.', _('Context Info')),
+ ],
+ default_value = ".",
+ )),
],
optional_keys = False
),