Module: check_mk
Branch: master
Commit: 27017650e879d82b9607c958e29a3533e5317efa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=27017650e879d8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 10 14:58:18 2017 +0200
4955 Virtual host trees: The whole WATO folder structure can now be added
Instead of configuring a fixed number of folders to the virtual host tree
configuration it is now possible to add the "WATO folder tree" to the
definition which makes the virtual host tree dynamically render all folders
that have hosts that are part of the virtual host tree definition
Change-Id: I7bd77fd68ee8d73e7a5141f51328e4e23df69cbe
---
.werks/4955 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.werks/4955 b/.werks/4955
new file mode 100644
index 0000000..8d92917
--- /dev/null
+++ b/.werks/4955
@@ -0,0 +1,13 @@
+Title: Virtual host trees: The whole WATO folder structure can now be added
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1499691375
+Class: feature
+
+Instead of configuring a fixed number of folders to the virtual host tree
+configuration it is now possible to add the "WATO folder tree" to the
+definition which makes the virtual host tree dynamically render all folders
+that have hosts that are part of the virtual host tree definition
Module: check_mk
Branch: master
Commit: bd651b76cfe2a0e1a5fca0b209a2c68d99e637c4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bd651b76cfe2a0…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jul 6 16:30:02 2017 +0200
4914 FIX statgrab_mem: Plugin is now prioritized over solaris_mem if both is available
Until now the solaris_mem has been prioritized over statgrab_mem if both are available and deliver the same information. This has been changed by this werk. Since the memory info from top is under suspicion to be buggy we do prefer the mem information from statgrab from now on. The information from top will be a fallback only if statgrab is not available.
Change-Id: I120673e1c376e22ec8e90d75580a32e6a207d94d
---
.werks/4914 | 16 ++++++++++++++++
agents/check_mk_agent.solaris | 24 ++++++++++++------------
2 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/.werks/4914 b/.werks/4914
new file mode 100644
index 0000000..5ea49c5
--- /dev/null
+++ b/.werks/4914
@@ -0,0 +1,16 @@
+Title: statgrab_mem: Plugin is now prioritized over solaris_mem if both is available
+Level: 1
+Component: checks
+Compatible: incompat
+Edition: cre
+Version: 1.5.0i1
+Date: 1499342226
+Class: fix
+
+Until now the solaris_mem has been prioritized over statgrab_mem if both are
+available and deliver the same information. This has been changed by this
+werk. Since the memory info from top is under suspicion to be buggy we do
+prefer the mem information from statgrab from now on. The information from
+top will be a fallback only if statgrab is not available.
+
+You may have to rediscover services to benefit from this change.
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index b54dbaf..d95796b 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -264,13 +264,10 @@ then
grep "^$s\." /tmp/statgrab.$$ | cut -d. -f2-99 | sed 's/ *= */ /'
done
- # the <<<statgrab_mem>>> info is already provided by <<<solaris_mem>>>
- # However, we make an exception if /usr/bin/top is missing (required by solaris_mem)
- if [ ! -x /usr/bin/top ] && [ ! -x /usr/local/bin/top ]
- then
- echo '<<<statgrab_mem>>>'
- egrep "^(swap|mem)\." /tmp/statgrab.$$ | sed 's/ *= */ /'
- fi
+ # <<<statgrab_mem>>> info is preferred over <<<solaris_mem>>>
+ # since solaris_mem is under suspicion to be buggy.
+ echo '<<<statgrab_mem>>>'
+ egrep "^(swap|mem)\." /tmp/statgrab.$$ | sed 's/ *= */ /'
[ -f /tmp/statgrab.$$ ] && rm -f /tmp/statgrab.$$
fi
@@ -311,11 +308,14 @@ fi
# Memory
-if [ -x /usr/bin/top ] || [ -x /usr/local/top ]
-then
- echo "<<<solaris_mem>>>"
- if [ -x /usr/bin/top ]; then /usr/bin/top | grep '^Memory:'; fi
- if [ -x /usr/local/bin/top ]; then /usr/bin/top | grep '^Memory:'; fi
+# <<<solaris_mem>>> should be used if statgrab is missing and top is available.
+if ! type statgrab &>/dev/null
+ if [ -x /usr/bin/top ] || [ -x /usr/local/top ]
+ then
+ echo "<<<solaris_mem>>>"
+ if [ -x /usr/bin/top ]; then /usr/bin/top | grep '^Memory:'; fi
+ if [ -x /usr/local/bin/top ]; then /usr/bin/top | grep '^Memory:'; fi
+ fi
fi
if type prtdiag >/dev/null 2>&1
Module: check_mk
Branch: master
Commit: e6d0770188bd121a9fc9077c1569cb8c95162095
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e6d0770188bd12…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 10 11:35:01 2017 +0200
4954 FIX Host/Folder properties: fixed displaying of inherited checkbox tag group values
The inherited values of tag groups that have only a single tag choice was displayed
wrong. It was showing a text like it was checked while in fact the inherited values
was unchecked.
Change-Id: I73fecb36d3eb1f01b216cdca764c7730647fc0d1
---
.werks/4954 | 13 +++++++++++++
web/htdocs/wato.py | 2 ++
web/htdocs/watolib.py | 11 ++++++++++-
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/.werks/4954 b/.werks/4954
new file mode 100644
index 0000000..bdd01f0
--- /dev/null
+++ b/.werks/4954
@@ -0,0 +1,13 @@
+Title: Host/Folder properties: fixed displaying of inherited checkbox tag group values
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1499679200
+
+The inherited values of tag groups that have only a single tag choice was displayed
+wrong. It was showing a text like it was checked while in fact the inherited values
+was unchecked.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a89a56d..ab7037a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -16928,6 +16928,8 @@ def configure_attributes(new, hosts, for_what, parent, myself=None, without_attr
if len(values) == 1:
defvalue = values[0]
+ elif attr.is_checkbox_tag():
+ defvalue = True
else:
defvalue = attr.default_value()
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 109ac1d..29ddaa3 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -2867,6 +2867,10 @@ class Attribute:
return []
+ def is_checkbox_tag(self):
+ return False
+
+
# A simple text attribute. It is stored in
# a Python unicode string
@@ -2988,11 +2992,16 @@ class HostTagAttribute(Attribute):
tag_id, title, self._taglist = tag_definition
name = "tag_" + tag_id
if len(self._taglist) == 1:
- def_value = True
+ def_value = None
else:
def_value = self._taglist[0][0]
Attribute.__init__(self, name, title, "", def_value)
+
+ def is_checkbox_tag(self):
+ return len(self._taglist) == 1
+
+
def paint(self, value, hostname):
# Localize the titles. To make the strings available in the scanned localization
# files the _() function must also be placed in the configuration files