Module: check_mk
Branch: master
Commit: e2cbff59c2ad4e549f7be417f8d10d58cf360c11
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2cbff59c2ad4e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 12:18:06 2015 +0100
#1973 Added intelligent host and service type icons to default views
The default list views of hosts and services show a new column, the
type icon, by default now.
The rendered icon is some kind of intelligent icon. It tries to detect
which icon has to be shown for each host or service. This is done
automatically based on the available information, for example which
services are configured for a host or what is the name of a service.
The currently implemented auto detection is far from being complete.
It only contains some examples to show the new possibilites. This can
be extended using icon plugins. For details take a look at the default
<tt>plugins/icons/builtin.py</tt> code.
If you like to change / override the icon by hand, you can configure the
already existing rulesets "Icon image for hosts in status GUI" and
"Icon image for services in status GUI".
You can choose from the PNG icons available in <tt>htdocs/images/icons</tt>.
If you use OMD, the default files are located in <tt>share/check_mk/web/htdocs/images/icons</tt>.
You can place your own files in <tt>local/share/check_mk/web/htdocs/images/icons</tt>.
---
.werks/1973 | 28 +++++++++
ChangeLog | 1 +
web/htdocs/images/icons/checkmk.png | Bin 0 -> 2062 bytes
web/htdocs/images/icons/cisco.png | Bin 0 -> 1271 bytes
web/htdocs/images/icons/cpu.png | Bin 0 -> 4356 bytes
web/htdocs/images/icons/disk_io.png | Bin 0 -> 2721 bytes
web/htdocs/images/icons/filesystem.png | Bin 0 -> 2207 bytes
web/htdocs/images/icons/interface.png | Bin 0 -> 3830 bytes
web/htdocs/images/icons/linux.png | Bin 0 -> 2878 bytes
web/htdocs/images/icons/log.png | Bin 0 -> 4030 bytes
web/htdocs/images/icons/mail_queue.png | Bin 0 -> 4924 bytes
web/htdocs/images/icons/mount.png | Bin 0 -> 3637 bytes
web/htdocs/images/icons/temperature.png | Bin 0 -> 5061 bytes
web/htdocs/images/icons/time.png | Bin 0 -> 5063 bytes
web/htdocs/images/icons/uptime.png | Bin 0 -> 3592 bytes
web/htdocs/images/icons/windows.png | Bin 0 -> 812 bytes
web/htdocs/status.css | 4 ++
web/plugins/icons/builtin.py | 101 +++++++++++++++++++++++++------
web/plugins/views/builtin.py | 80 ++++++------------------
web/plugins/views/painters.py | 67 +++++++++++++++++---
20 files changed, 195 insertions(+), 86 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e2cbff59c2…
Module: check_mk
Branch: master
Commit: eae6987a47ee5ab3f732bbf5e891d15dd9b87687
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eae6987a47ee5a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 11:42:47 2015 +0100
Updated bug entries #0985
---
.bugs/985 | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/985 b/.bugs/985
index f302b8f..dc4e68d 100644
--- a/.bugs/985
+++ b/.bugs/985
@@ -1,9 +1,9 @@
Title: Reloading sidebar after config change erases Quicksearch
Component: multisite
-State: open
+Class: nastiness
+State: done
Date: 2013-10-15 01:34:28
Targetversion: 1.2.3i3
-Class: nastiness
If you active changes via WATO then the sidebar reloads.
That way Quicksearch is emptied. This is nasty.
@@ -15,3 +15,6 @@ That way Quicksearch is emptied. This is nasty.
Does the Quicksearch need to be reloaded at the first place?
It's now AJAX-enabled, isn't it?
+
+2015-02-02 11:42:44: changed state open -> done
+Fixed.
Module: check_mk
Branch: master
Commit: a653c23821a5117dfd99b90c5a851e25d86ee2ae
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a653c23821a511…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 11:41:50 2015 +0100
#1972 FIX Prevent erasing of quicksearch field when sidebar is reloaded (e.g. during activate changes)
When performing "activate changes" in WATO, the quicksearch field of the sidebar was cleared
during this process. This lead to user confusions when typing into the quicksearch field
while the activate changes process was completing.
---
.werks/1972 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/htmllib.py | 2 +-
web/htdocs/js/checkmk.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++
web/htdocs/js/wato.js | 6 ++----
5 files changed, 62 insertions(+), 5 deletions(-)
diff --git a/.werks/1972 b/.werks/1972
new file mode 100644
index 0000000..e59c19f
--- /dev/null
+++ b/.werks/1972
@@ -0,0 +1,12 @@
+Title: Prevent erasing of quicksearch field when sidebar is reloaded (e.g. during activate changes)
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1422873119
+
+When performing "activate changes" in WATO, the quicksearch field of the sidebar was cleared
+during this process. This lead to user confusions when typing into the quicksearch field
+while the activate changes process was completing.
diff --git a/ChangeLog b/ChangeLog
index c81e3ae..7f022f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -163,6 +163,7 @@
* 1876 FIX: User sorting of views can now be disabled again
* 1884 FIX: Fixed exception in virtual host tree snapin
* 1885 FIX: Fixed filtering by software versions in software package search
+ * 1972 FIX: Prevent erasing of quicksearch field when sidebar is reloaded (e.g. during activate changes)...
WATO:
* 1760 Added search form to manual checks page
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 88e91a9..5748609 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1123,7 +1123,7 @@ class html:
def reload_sidebar(self):
if not self.has_var("_ajaxid"):
- self.javascript("if(parent && parent.frames[0]) parent.frames[0].location.reload();");
+ self.javascript("reload_sidebar()")
def set_ignore_transids(self):
self.ignore_transids = True
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 5c7a2d1..6df55e0 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -2347,3 +2347,49 @@ function add_to_visual(visual_type, visual_name)
if (response)
window.location.href = response;
}
+
+var g_sidebar_reload_timer = null;
+
+function reload_sidebar()
+{
+ if (parent && parent.frames[0]) {
+ // reload sidebar, but preserve eventual quicksearch field value and focus
+ var val = '';
+ var focused = false;
+ var field = parent.frames[0].document.getElementById('mk_side_search_field');
+ if (field) {
+ val = field.value;
+ focused = parent.frames[0].document.activeElement == field;
+ }
+
+ parent.frames[0].document.reloading = 1;
+ parent.frames[0].document.location.reload();
+
+ if (field) {
+ g_sidebar_reload_timer = setInterval(function (value, has_focus) {
+ return function() {
+ if (!parent.frames[0].document.reloading
+ && parent.frames[0].document.readyState === 'complete') {
+ var field = parent.frames[0].document.getElementById('mk_side_search_field');
+ if (field) {
+ field.value = value;
+ if (has_focus) {
+ field.focus();
+
+ // Move caret to end
+ if (field.setSelectionRange !== undefined)
+ field.setSelectionRange(value.length, value.length);
+ }
+ field = null;
+ }
+
+ clearInterval(g_sidebar_reload_timer);
+ g_sidebar_reload_timer = null;
+ }
+ };
+ }(val, focused), 50);
+
+ field = null;
+ }
+ }
+}
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index 6580387..31e002c 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -615,10 +615,8 @@ function wato_replication_result(siteid, code) {
function wato_replication_finish() {
// check if we have a sidebar-main frame setup
if (this.parent && parent && parent.frames[1] == this)
- parent.frames[0].location.reload(); // reload sidebar
+ reload_sidebar();
- // always reload main
- // this.location.reload();
var oDiv = document.getElementById("act_changes_button");
oDiv.style.display = "none";
oDiv = null
@@ -702,7 +700,7 @@ function wato_profile_replication_result(siteid, code) {
function wato_profile_replication_finish() {
// check if we have a sidebar-main frame setup
if (this.parent && parent && parent.frames[1] == this)
- parent.frames[0].location.reload(); // reload sidebar
+ reload_sidebar();
}
// ----------------------------------------------------------------------------
Module: check_mk
Branch: master
Commit: aae7d9d6bce9d230c74b6f35021b6c1fe9403fd2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aae7d9d6bce9d2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 2 10:44:47 2015 +0100
oracle_undostat: Fixed syntax error in check man page
---
checkman/oracle_undostat | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/checkman/oracle_undostat b/checkman/oracle_undostat
index ae61f38..41b5a5f 100644
--- a/checkman/oracle_undostat
+++ b/checkman/oracle_undostat
@@ -41,6 +41,11 @@ perfdata:
This is the value for the levels parameter. Fourth the maximum time
for a running query. Last the non space error count.
+examples:
+ checkgroup_parameters['oracle_undostat'] = [
+ ( {'nospaceerrcnt_state': 1}, [], ALL_HOSTS, ALL_SERVICES ),
+ ]
+
[parameters]
parameters (dict):
@@ -55,8 +60,4 @@ inventory:
One separate check for each database found running will
be created.
-checkgroup_parameters['oracle_undostat'] = [
- ( {'nospaceerrcnt_state': 1}, [], ALL_HOSTS, ALL_SERVICES ),
-]
-