Module: check_mk
Branch: master
Commit: 1ac72a3e2cf972ddb430caf66d622003decb7832
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ac72a3e2cf972…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jun 30 17:11:56 2016 +0200
3551 FIX Now able to open BI aggregations containing a few hundred hosts
A BI in the GUI could not get unfolded correctly if it had too much hosts.
This has been fixed.
---
.werks/3551 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 24 ++++++++++++++++++------
3 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/.werks/3551 b/.werks/3551
new file mode 100644
index 0000000..d47518f
--- /dev/null
+++ b/.werks/3551
@@ -0,0 +1,10 @@
+Title: Now able to open BI aggregations containing a few hundred hosts
+Level: 1
+Component: bi
+Compatible: compat
+Version: 1.4.0i1
+Date: 1467299366
+Class: fix
+
+A BI in the GUI could not get unfolded correctly if it had too much hosts.
+This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index f4f4edf..7f59a79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -493,6 +493,7 @@
* 3439 FIX: Fixed processing of BI aggregations containing umlauts
* 3440 FIX: Fixed possible BI exception "Unknown BI aggregation group ..."...
* 3574 FIX: Fixed broken aggregations snapin when using aggregations based on hard states...
+ * 3551 FIX: Now able to open BI aggregations containing a few hundred hosts...
Reporting & Availability:
* 3267 New availability option for reclassifying host state "unreachable"...
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index c967dd8..55036ba 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -524,12 +524,24 @@ function get_url_sync(url)
return AJAX.responseText;
}
-function post_url(url, params)
+function post_url(url, post_params, responseHandler, handler_data, errorHandler)
{
- call_ajax(url, {
+ var args = {
method: "POST",
- post_data: params
- });
+ post_data: post_params
+ }
+
+ if (typeof responseHandler !== 'undefined') {
+ args.response_handler = responseHandler;
+ }
+
+ if (typeof handler_data !== 'undefined')
+ args.handler_data = handler_data;
+
+ if (typeof errorHandler !== 'undefined')
+ args.error_handler = errorHandler;
+
+ call_ajax(url, args);
}
function bulkUpdateContents(ids, codes)
@@ -2958,8 +2970,8 @@ function bi_update_tree(oImg, code)
while (oDiv.className != "bi_tree_container") {
oDiv = oDiv.parentNode;
}
- var url = "bi_render_tree.py?" + oDiv.id;
- get_url(url, bi_update_tree_response, oDiv);
+
+ post_url("bi_render_tree.py", oDiv.id, bi_update_tree_response, oDiv);
}
function bi_update_tree_response(oDiv, code) {
Module: check_mk
Branch: master
Commit: 651fa0653dfc526352a33ca3df17a5b592d53875
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=651fa0653dfc52…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Jul 1 15:26:09 2016 +0200
3691 oracle_jobs: status of missing jobs is now configurable
---
.werks/3691 | 9 +++++++
ChangeLog | 1 +
checks/oracle_jobs | 8 ++++--
web/plugins/wato/check_parameters.py | 48 +++++++++++++++++++++-------------
4 files changed, 46 insertions(+), 20 deletions(-)
diff --git a/.werks/3691 b/.werks/3691
new file mode 100644
index 0000000..4a638b3
--- /dev/null
+++ b/.werks/3691
@@ -0,0 +1,9 @@
+Title: oracle_jobs: status of missing jobs is now configurable
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1467379514
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index a067ed6..f4f4edf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -109,6 +109,7 @@
* 3688 perle_chassis, perle_chassis.temp, perle_chassis_slots, perle_modules_cm1000, perle_modules_cm1110, perle_modules_mgt, perle_psmu, perle_psmu.fan: new checks for Perle Mediaconverter devices which support the PERLE-MCR-MGT MIB
* 3689 brocade_fcport: now monitors BBcredit zero stats and the number of encoding error or disparity error inside frames received
* 3690 apache_status: upper levels for busy workers are now configurable
+ * 3691 oracle_jobs: status of missing jobs is now configurable
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/checks/oracle_jobs b/checks/oracle_jobs
index 7cc39bd..f3d44f3 100644
--- a/checks/oracle_jobs
+++ b/checks/oracle_jobs
@@ -107,13 +107,17 @@ def check_oracle_jobs(item, params, info):
raise MKCounterWrapped("Login not possible for check %s" % item)
if not service_found:
- return (2, 'Job is missing')
+ state = 2
+ infotext = "Job is missing"
+ if "status_missing_jobs" in params:
+ state = params["status_missing_jobs"]
+ infotext += " (configured through WATO)"
+ return state, infotext
state = 0
output = []
perfdata = []
-
txt = "Job-State: %s" % job_state
if job_state == "BROKEN":
txt += "(!!)"
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index ccd62d2..aeb584f 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6757,31 +6757,42 @@ register_check_parameters(
register_check_parameters(
subgroup_applications,
"oracle_jobs",
- _("ORACLE Scheduler Job"),
+ _("Oracle Scheduler Job"),
Dictionary(
help = _("A scheduler job is an object in an ORACLE database which could be "
"compared to a cron job on Unix. "),
elements = [
( "run_duration",
- Tuple(
- title = _("Maximum run duration for last execution"),
- help = _("Here you can define an upper limit for the run duration of "
- "last execution of the job."),
- elements = [
- Age(title = _("warning at")),
- Age(title = _("critical at")),
- ])),
- ( "disabled", DropdownChoice(
- title = _("Job State"),
- totext = "",
- choices = [
- ( True, _("Ignore the state of the Job")),
- ( False, _("Consider the state of the job")),],
- help = _("The state of the job is ignored per default.")
+ Tuple(
+ title = _("Maximum run duration for last execution"),
+ help = _("Here you can define an upper limit for the run duration of "
+ "last execution of the job."),
+ elements = [
+ Age(title = _("warning at")),
+ Age(title = _("critical at")),
+ ]
)),
- ( "status_disabled_jobs", MonitoringState(
- title = "Status of service in case of disabled job", default_value = 0
+ ( "disabled",
+ DropdownChoice(
+ title = _("Job State"),
+ help = _("The state of the job is ignored per default."),
+ totext = "",
+ choices = [
+ ( True, _("Ignore the state of the Job")),
+ ( False, _("Consider the state of the job")),
+ ],
+ )),
+ ( "status_disabled_jobs",
+ MonitoringState(
+ title = "Status of service in case of disabled job",
+ default_value = 0
+ )),
+ ( "status_missing_jobs",
+ MonitoringState(
+ title = _("Status of service in case of missing job."),
+ default_value = 2,
)),
+
]
),
TextAscii(
@@ -12079,3 +12090,4 @@ register_check_parameters(
TextAscii( title = _("Node ID")),
"first"
)
+
Module: check_mk
Branch: master
Commit: a962b14c265d5e236958a2634619c6f154637a79
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a962b14c265d5e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 1 11:54:53 2016 +0200
3661 FIX Service discovery is now possible with only "modify services" permission
Users which are permitted on a host, are not permitted to modify existing hosts
but have the permission "modify services" are now able to perform service discoveries
again using WATO.
---
.werks/3661 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 1 -
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/3661 b/.werks/3661
new file mode 100644
index 0000000..e7be038
--- /dev/null
+++ b/.werks/3661
@@ -0,0 +1,12 @@
+Title: Service discovery is now possible with only "modify services" permission
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i1
+Date: 1467366512
+
+Users which are permitted on a host, are not permitted to modify existing hosts
+but have the permission "modify services" are now able to perform service discoveries
+again using WATO.
diff --git a/ChangeLog b/ChangeLog
index b012bc4..a067ed6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -465,6 +465,7 @@
* 3588 FIX: BI aggregation: Fixed folding of tag groups in aggregation rules using host/service searches
* 3620 FIX: Do not longer put SNMP MIB files into WATO snapshots...
* 3547 FIX: Deleting a subfolder now generates a correct audit message...
+ * 3661 FIX: Service discovery is now possible with only "modify services" permission...
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 031ed5c..742eb61 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2686,7 +2686,6 @@ def mode_inventory(phase, firsttime):
html.context_button(_("Full Scan"), html.makeuri([("_scan", "yes")]))
elif phase == "action":
- host.need_permission("write")
if html.check_transaction():
# Settings for showing parameters
if html.var("_show_parameters"):