Module: check_mk
Branch: master
Commit: d489186dd28e4474eab66aecb57acb07f8f01fbd
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d489186dd28e44…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 25 14:45:19 2016 +0200
updated werk
---
.werks/3970 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.werks/3970 b/.werks/3970
index 65dc504..ba6b537 100644
--- a/.werks/3970
+++ b/.werks/3970
@@ -14,3 +14,5 @@ An attacker could use this to make an authenticated GUI user open a page of his
choice when the user clicks on a prepared link.
One example URL which could be used: "index.py?start_url=//heise.de".
+
+Thanks to Marcel Bilal for reporting the issue!
Module: check_mk
Branch: master
Commit: da4caf49ba89e1b7fd4ea005d718506038efcc62
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da4caf49ba89e1…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Oct 25 14:26:58 2016 +0200
changed misleading description for bugfix
---
.werks/3951 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.werks/3951 b/.werks/3951
index f971508..ceee266 100644
--- a/.werks/3951
+++ b/.werks/3951
@@ -6,5 +6,4 @@ Version: 1.4.0i2
Date: 1477397596
Class: fix
-When relative levels are given in a rule but no absolute levels, the default levels from the checkplugin are still used.
-This change is compatible and will ignore absolute levels in a given rule, if not explicitly set. Defaults for absolute levels are still used if no rule is given.
+When relative levels were given in a rule but no absolute levels, the default levels from the checkplugin still have been used. Now absolute levels are ignored by default if setting up a rule. This allows to set up a rule for only relative levels. This change is compatible to existing rules! Additionally defaults for absolute levels are still used if no rule is given.
Module: check_mk
Branch: master
Commit: fea2f26165365954d1686a2a27201f2645503114
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fea2f261653659…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Oct 25 14:21:54 2016 +0200
3951 FIX oracle_sessions: fixed bug with default absolute levels
When relative levels are given in a rule but no absolute levels, the default levels from the checkplugin are still used.
This change is compatible and will ignore absolute levels in a given rule, if not explicitly set. Defaults for absolute levels are still used if no rule is given.
---
.werks/3951 | 10 ++++++++++
ChangeLog | 1 +
checks/oracle_sessions | 3 ++-
web/plugins/wato/check_parameters.py | 38 ++++++++++++++++++++++++------------
4 files changed, 39 insertions(+), 13 deletions(-)
diff --git a/.werks/3951 b/.werks/3951
new file mode 100644
index 0000000..f971508
--- /dev/null
+++ b/.werks/3951
@@ -0,0 +1,10 @@
+Title: oracle_sessions: fixed bug with default absolute levels
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.4.0i2
+Date: 1477397596
+Class: fix
+
+When relative levels are given in a rule but no absolute levels, the default levels from the checkplugin are still used.
+This change is compatible and will ignore absolute levels in a given rule, if not explicitly set. Defaults for absolute levels are still used if no rule is given.
diff --git a/ChangeLog b/ChangeLog
index fd15f54..79ab9bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,7 @@
* 3914 FIX: Roles: Aliases are now unique during cloning
* 3820 FIX: Network scan: no longer fails completely if hostname already exists in configuration...
* 3821 FIX: WATO Network Scan: Fixed risk of loosing site tags when performing a network scan...
+ * 3951 FIX: oracle_sessions: fixed bug with default absolute levels...
Notifications:
* 3957 mail: now allows extra HTML section between body and table
diff --git a/checks/oracle_sessions b/checks/oracle_sessions
index 048ab12..dfb4ebb 100644
--- a/checks/oracle_sessions
+++ b/checks/oracle_sessions
@@ -115,7 +115,7 @@ def check_oracle_sessions(item, params, parsed):
state = 0
warn, crit = None, None
- if "sessions_abs" in params:
+ if "sessions_abs" in params and not params["sessions_abs"] == None:
warn, crit = params["sessions_abs"]
if sessions >= crit:
state = 2
@@ -124,6 +124,7 @@ def check_oracle_sessions(item, params, parsed):
if state:
infotext += " (warn/crit at %d/%d)" % (warn, crit)
yield state, infotext, [ ("sessions", sessions, warn, crit, 0, sessions_max) ]
+
return
# In case of missing information we assume that the login into
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index ca7c462..929d1ac 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -8720,6 +8720,13 @@ register_check_parameters(
match_type = "first",
)
+def convert_oracle_sessions(value):
+ if isinstance(value, tuple):
+ return {'sessions_abs' : value }
+ if 'sessions_abs' not in value:
+ value['sessions_abs'] = (100, 200)
+ return value
+
register_check_parameters(
subgroup_applications,
"oracle_sessions",
@@ -8728,28 +8735,35 @@ register_check_parameters(
Dictionary(
elements = [
("sessions_abs",
- Tuple(
- title = _("Number of active sessions"),
- help = _("This check monitors the current number of active sessions on Oracle"),
- elements = [
- Integer(title = _("Warning at"), unit = _("sessions"), default_value = 100),
- Integer(title = _("Critical at"), unit = _("sessions"), default_value = 200),
- ],
- ),
- ),
+ Alternative(
+ title = _("Absolute levels of active sessions"),
+ style = "dropdown",
+ help = _("This check monitors the current number of active sessions on Oracle"),
+ elements = [
+ FixedValue(None, title = _("Do not use absolute levels"), totext = ""),
+ Tuple(
+ title = _("Number of active sessions"),
+ elements = [
+ Integer(title = _("Warning at"), unit = _("sessions"), default_value = 100),
+ Integer(title = _("Critical at"), unit = _("sessions"), default_value = 200),
+ ],
+ ),
+ ],
+ )),
("sessions_perc",
Tuple(
title = _("Relative levels of active sessions."),
- help = _("Set upper levels of active sessions relative to max. number of sessions."),
+ help = _("Set upper levels of active sessions relative to max. number of sessions. This is optional."),
elements = [
Percentage(title = _("Warning at")),
Percentage(title = _("Critical at")),
],
),
),
- ]
+ ],
+ optional_keys = ["sessions_perc"],
),
- forth = lambda p: type(p) == tuple and { "sessions_abs" : p } or p,
+ forth = convert_oracle_sessions
),
TextAscii(
title = _("Database name"),
Module: check_mk
Branch: master
Commit: 7c06a5eec2bb00097c591cf8ef1e19841f880255
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c06a5eec2bb00…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 25 12:22:27 2016 +0200
fixed pylint issue
---
modules/check_mk.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 2e5bcd2..12e037d 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -756,6 +756,10 @@ def convert_host_ruleset(ruleset, with_foreign_hosts):
return new_rules
+# TODO: Remove this when checks have been moved to cmk_base.checks
+hosttags_match_taglist = rulesets.hosttags_match_taglist
+
+
def host_extra_conf(hostname, ruleset):
# When the requested host is part of the local sites configuration,
# then use only the sites hosts for processing the rules
Module: check_mk
Branch: master
Commit: f7b4ff2caa367850e2343be55a56b41de54a7f3b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f7b4ff2caa3678…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Tue Oct 25 12:50:30 2016 +0200
ToDo Reporting: Add of manual page break
---
.bugs/2525 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.bugs/2525 b/.bugs/2525
new file mode 100644
index 0000000..b392c00
--- /dev/null
+++ b/.bugs/2525
@@ -0,0 +1,10 @@
+Title: Reports should have manual page break option
+Component: multisite
+State: open
+Date: 2016-10-25 12:47:46
+Targetversion: 1.2.8
+Class: todo
+
+The reports include the content and will make a automatically page break, if needed.
+It is a good option, that the user can define a static page break after one element.
+We should a an option for manual page breaks.
Module: check_mk
Branch: master
Commit: 5ffcad582dfa8b65c898bee062b35e11f6e3d6ee
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5ffcad582dfa8b…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Tue Oct 25 12:35:34 2016 +0200
Bug related to Micro Core and distributed monitoring
---
.bugs/2524 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/.bugs/2524 b/.bugs/2524
new file mode 100644
index 0000000..7332c5c
--- /dev/null
+++ b/.bugs/2524
@@ -0,0 +1,19 @@
+Title: Distributed Monitoring: Micro Core does need a restart instead of reload to activate the changes
+Component: core
+State: open
+Date: 2016-10-25 12:29:16
+Targetversion: 1.2.8
+Class: bug
+
+The user is using a distributed monitoring setup with central WATO configuration.
+The slave sites are only monitoring a part of the hosts configured on the master and
+the site ID is inherited by the folder properties.
+
+If the user want to fix his broken configuration, because there were changes made on slave sites, the correct
+configuration is only used, if the Micro Core is restartet completly. The normal reload does not work.
+
+Testscenario:
+Master and two slave sites. Add some hosts on the Mater site and put add those hosts the the slave sites.
+Make some changes on the slave site. Those hosts will be duplicated in the global monitoring. If you
+edit the global site settings and make the activation, the hosts does not disappear. Only a cmk -R on the
+slave site will fix it. The correct configuration is applied, but will not be actived for monitoring.