Module: check_mk
Branch: master
Commit: e9fee081dab0924735d97756cc1bffd6cc832a4e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9fee081dab092…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 1 10:48:25 2014 +0100
#1546 FIX Fixed adding cluster nodes to new cluster in complain phase
When adding a cluster without node, getting into the complain phase
and then adding a node, the cluster node field list did not extend to
make it possible to add multiple nodes.
---
.bugs/2162 | 7 +++++--
.bugs/2166 | 7 +++++--
.werks/1546 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 10 +++-------
5 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/.bugs/2162 b/.bugs/2162
index 56dbf0a..63edbd8 100644
--- a/.bugs/2162
+++ b/.bugs/2162
@@ -1,8 +1,11 @@
Title: WATO diag page: "Retry this test" only works once
Component: wato
-State: open
+Class: bug
+State: done
Date: 2014-05-05 18:14:16
Targetversion: future
-Class: bug
The javascript only receives one extra transaction id..
+
+2014-12-01 10:19:17: changed state open -> done
+Transids had been removed here.
diff --git a/.bugs/2166 b/.bugs/2166
index 7e9dc6d..f1d187d 100644
--- a/.bugs/2166
+++ b/.bugs/2166
@@ -1,10 +1,13 @@
Title: WATO new cluster: Can only add one cluster node in the formular
Component: wato
-State: open
+Class: bug
+State: done
Date: 2014-08-12 14:30:05
Targetversion: future
-Class: bug
- Create a new cluster within WATO, but omit the nodes field
- Save formular. A warning appears, the nodes field is highlighted
- The list of nodes does not auto-enlarge, so you can only add one node
+
+2014-12-01 10:43:09: changed state open -> done
+Fixed.
diff --git a/.werks/1546 b/.werks/1546
new file mode 100644
index 0000000..72fd17a
--- /dev/null
+++ b/.werks/1546
@@ -0,0 +1,11 @@
+Title: Fixed adding cluster nodes to new cluster in complain phase
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417426992
+Class: fix
+
+When adding a cluster without node, getting into the complain phase
+and then adding a node, the cluster node field list did not extend to
+make it possible to add multiple nodes.
diff --git a/ChangeLog b/ChangeLog
index be0385f..6f7f6cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -100,6 +100,7 @@
* 1540 FIX: Host diagnose page: Some tests were failing randomly
* 1541 FIX: Fixed missing form fields for notification method when editing rbn default rule
* 1542 FIX: Changed text of "debug_log" option to be clearer in distributed setups...
+ * 1546 FIX: Fixed adding cluster nodes to new cluster in complain phase...
Notifications:
* 1512 Bulk notification can now be grouped according to custom macro values...
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 2b0fcfb..cac4fb6 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1495,13 +1495,9 @@ function list_of_strings_init(divid) {
function list_of_strings_add_focus(oLastChild) {
/* look for <input> in last child node and attach focus handler to it. */
- for (var j in oLastChild.childNodes) {
- var o = oLastChild.childNodes[j];
- if (o.tagName == "INPUT") {
- o.onfocus = function(e) { return list_of_strings_extend(this); };
- return;
- }
- }
+ var input = oLastChild.getElementsByTagName("input");
+ if (input.length == 1)
+ input[0].onfocus = function(e) { return list_of_strings_extend(this); };
}
Module: check_mk
Branch: master
Commit: aa1097057e48e6fe2ee1cdaea0f2fc378cb64b0b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aa1097057e48e6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 1 11:06:16 2014 +0100
Removed old WATO icon gif
---
.bugs/2132 | 7 +++++--
web/htdocs/htmllib.py | 10 ++++++++++
web/htdocs/images/icon_wato.gif | Bin 1506 -> 0 bytes
web/plugins/icons/wato.py | 6 +++---
4 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/.bugs/2132 b/.bugs/2132
index 407ab21..70195ba 100644
--- a/.bugs/2132
+++ b/.bugs/2132
@@ -1,11 +1,14 @@
Title: WATO context button on quicksearch result page broken
Component: multisite
-State: open
+Class: bug
+State: works4me
Date: 2014-07-04 09:30:24
Targetversion: 1.2.5i1
-Class: bug
When searching for a host substring, for example "node", results in a page listing
all services of the hosts node1 and node2. When clicking on the context button
WATO, it displays a red error message that the host "node" (the substring) is not
managed by WATO.
+
+2014-12-01 11:05:43: changed state open -> works4me
+old bug, already fixed.
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 1727e0f..618f67d 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -24,6 +24,16 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+# Notes for future rewrite:
+#
+# - Make clear which functions return values and which write out values
+# render_*, add_*, write_* (e.g. icon() -> outputs directly,
+# render_icon() -> returns icon
+# render_icon() -> returns icon
+#
+# - Order of arguments:
+# e.g. icon(help, icon) -> change and make help otional?
+
import time, os, pwd, urllib, random
from lib import *
diff --git a/web/htdocs/images/icon_wato.gif b/web/htdocs/images/icon_wato.gif
deleted file mode 100644
index 5aae7e8..0000000
Binary files a/web/htdocs/images/icon_wato.gif and /dev/null differ
diff --git a/web/plugins/icons/wato.py b/web/plugins/icons/wato.py
index 6f0b705..053b301 100644
--- a/web/plugins/icons/wato.py
+++ b/web/plugins/icons/wato.py
@@ -35,11 +35,11 @@ def wato_link(folder, site, hostname, where):
(html.urlencode(folder), html.urlencode(hostname))
if where == "inventory":
url += "&mode=inventory"
- help = _("Edit services in WATO - the Check_MK Web Administration Tool")
+ help = _("Edit services")
else:
url += "&mode=edithost"
- help = _("Open this host in WATO - the Check_MK Web Administration Tool")
- return '<a href="%s"><img class=icon src="images/icon_wato.gif" ' \
+ help = _("Edit this host")
+ return '<a href="%s"><img class=icon src="images/icon_wato.png" ' \
'title="%s"></a>' % (url, help)
else:
return ""
Module: check_mk
Branch: master
Commit: 0ab16d2d1e20e54accaedb503d6d8ea48dac4b63
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ab16d2d1e20e5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 1 11:53:11 2014 +0100
#1555 FIX Improved validation on timeperiod references of non existing periods
configured notification, check etc. periods were not validated for their
existance correctly.
---
.bugs/1010 | 7 +++++--
.bugs/1066 | 7 +++++--
.bugs/2103 | 7 +++++--
.bugs/2104 | 7 +++++--
.bugs/2130 | 7 +++++--
.werks/1555 | 10 ++++++++++
ChangeLog | 1 +
7 files changed, 36 insertions(+), 10 deletions(-)
diff --git a/.bugs/1010 b/.bugs/1010
index 2495a4b..4aee187 100644
--- a/.bugs/1010
+++ b/.bugs/1010
@@ -1,8 +1,11 @@
Title: wato global settings, empty line
Component: wato
-State: open
+Class: bug
+State: done
Date: 2014-11-05 22:34:21
Targetversion: future
-Class: bug
in global settings - configuration gui (wato) there is an empty line which can be switched ON or OFF
+
+2014-12-01 11:09:33: changed state open -> done
+Has already been fixed.
diff --git a/.bugs/1066 b/.bugs/1066
index d2b88df..90b2d12 100644
--- a/.bugs/1066
+++ b/.bugs/1066
@@ -1,12 +1,15 @@
Title: cmk -m does not start if manpages without catalog: header
Component: docu
-State: open
+Class: bug
+State: done
Date: 2014-03-26 11:19:32
Targetversion: 1.2.5i1
-Class: bug
if you installed some mkp packages from the exchange or so and their
check manpages do not contain a catalog: header then cmk -m
does not start at all (failing)
missing catalog: header must be caught
+
+2014-12-01 11:08:58: changed state open -> done
+Has already been fixed.
diff --git a/.bugs/2103 b/.bugs/2103
index 02c5bb8..36c1062 100644
--- a/.bugs/2103
+++ b/.bugs/2103
@@ -1,9 +1,9 @@
Title: Quicksearch of hosts: incorrect WATO link
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2014-02-10 14:24:58
Targetversion: 1.2.5i1
-Class: bug
For example:
Doint a quicksearch on "x" returns the hosts esx_host and winxp
@@ -18,3 +18,6 @@ htdocs/views.py:
lines following: # WATO: If we have a host context, then show button to WATO, if permissions allow this
Note: checking if a WATO host exist might take some time...
+
+2014-12-01 11:07:48: changed state open -> done
+Is already fixed.
diff --git a/.bugs/2104 b/.bugs/2104
index 9040e87..9be62eb 100644
--- a/.bugs/2104
+++ b/.bugs/2104
@@ -1,9 +1,9 @@
Title: creating core config: check if used timeperiod actually exists
Component: core
-State: open
+Class: bug
+State: done
Date: 2014-03-10 13:03:53
Targetversion: 1.2.5i1
-Class: bug
On creating the configuration for the core, there is now validation if
a timeperiod used in any rules is actually defined. This causes a crash
@@ -19,3 +19,6 @@ extra_service_conf['notification_period'] = [
( 'office-hours', [], ALL_HOSTS, ALL_SERVICES ),
] + extra_service_conf['notification_period']
+
+2014-12-01 11:51:29: changed state open -> done
+Has been fixed. Added validation to cmc config generator. Nagios does validation on its own
diff --git a/.bugs/2130 b/.bugs/2130
index dd94b0f..80c0fcf 100644
--- a/.bugs/2130
+++ b/.bugs/2130
@@ -1,9 +1,12 @@
Title: Dynamic file system levels can not be edited
Component: wato
-State: open
+Class: bug
+State: done
Date: 2014-06-16 15:38:54
Targetversion: 1.2.5i1
-Class: bug
When a df rule has dynamic file system levels configured, this is saved and can be used, but when
opened in WATO again, the value can not be loaded again.
+
+2014-12-01 11:12:14: changed state open -> done
+Has already been fixed.
diff --git a/.werks/1555 b/.werks/1555
new file mode 100644
index 0000000..20a345b
--- /dev/null
+++ b/.werks/1555
@@ -0,0 +1,10 @@
+Title: Improved validation on timeperiod references of non existing periods
+Level: 1
+Component: core
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417431125
+Class: fix
+
+configured notification, check etc. periods were not validated for their
+existance correctly.
diff --git a/ChangeLog b/ChangeLog
index 6f7f6cd..c009d79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
* 1483 FIX: Savely replace illegal vertical bars in check plugin output...
* 1431 FIX: windows_agent: fixed error on parsing unicode formatted logfiles...
* 1545 FIX: Terminating with exit code 3 now when duplicate host has been found
+ * 1555 FIX: Improved validation on timeperiod references of non existing periods...
Checks & Agents:
* 1197 climaveneta_temp: New check for temperature sensors on Climaveneta clima devices
Module: check_mk
Branch: master
Commit: 19248c4fe5cf665e64b6c12fd8ba24731f86f47a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=19248c4fe5cf66…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 1 13:29:36 2014 +0100
#1556 FIX: WATO inventory ignores already inventorized checks which does not exist anymore
---
.bugs/2142 | 7 +++++--
.werks/1556 | 12 ++++++++++++
ChangeLog | 1 +
modules/automation.py | 3 +++
4 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/.bugs/2142 b/.bugs/2142
index 58418a1..add15db 100644
--- a/.bugs/2142
+++ b/.bugs/2142
@@ -1,12 +1,15 @@
Title: Inventory via WATO fails if checks are missing
Component: wato
-State: open
+Class: bug
+State: done
Date: 2014-01-16 17:29:54
Targetversion: 1.2.5i1
-Class: bug
Inventorized Fritzbox-1und1
Failed to inventorize Fritzbox-Alt: 'fritz.uptime'
That was because that check was missing. An cmk -II on the commanline could fix it.
A WATO Inventory should simply ignore such problems.
+
+2014-12-01 12:13:11: changed state open -> done
+Fixed.
diff --git a/.werks/1556 b/.werks/1556
new file mode 100644
index 0000000..2c4a5f7
--- /dev/null
+++ b/.werks/1556
@@ -0,0 +1,12 @@
+Title: WATO inventory ignores already inventorized checks which does not exist anymore
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417432395
+Class: fix
+
+Previous versions totally failed to inventorize when a host already has a service
+inventorized which belongs to a check which is not existant anymore. It terminated
+with "Failed to inventorize Fritzbox-Alt: 'fritz.uptime'". This error is skipped over
+now by simply ignoring the check.
diff --git a/ChangeLog b/ChangeLog
index c009d79..527d7ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -102,6 +102,7 @@
* 1541 FIX: Fixed missing form fields for notification method when editing rbn default rule
* 1542 FIX: Changed text of "debug_log" option to be clearer in distributed setups...
* 1546 FIX: Fixed adding cluster nodes to new cluster in complain phase...
+ * 1556 FIX: WATO inventory ignores already inventorized checks which does not exist anymore...
Notifications:
* 1512 Bulk notification can now be grouped according to custom macro values...
diff --git a/modules/automation.py b/modules/automation.py
index 4a84981..61e3207 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -353,6 +353,9 @@ def automation_try_inventory_node(hostname, leave_no_tcp=False, with_snmp_scan=F
opt_no_tcp = True
opt_dont_submit = True
+ if ct not in check_info:
+ continue # Skip not existing check silently
+
try:
exitcode = None
perfdata = []