Module: check_mk
Branch: master
Commit: 10e08b9bf03cf57a46279323a3cef7cf9fa2d867
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=10e08b9bf03cf5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 20 18:15:49 2013 +0100
FIX Improved error handling in case of incorrect auth config in distributed WATO environments
---
.werks/424 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 14 ++++++++++++--
3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/.werks/424 b/.werks/424
new file mode 100644
index 0000000..8dedfb4
--- /dev/null
+++ b/.werks/424
@@ -0,0 +1,10 @@
+Title: Improved error handling in case of incorrect auth config in distributed WATO environments
+Level: 1
+Component: multisite
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387559719
+Targetversion: future
+
+
diff --git a/ChangeLog b/ChangeLog
index d00d76d..b75a60e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,7 @@
* 0420 FIX: LDAP: Roles/Groups are now synced even if case of DNs do not match...
* 0421 FIX: UserDB: Fixed lost passwords when changing users in large user databases...
* 0423 FIX: Users are not logged out anymore during changing their own passwords...
+ * 0424 FIX: Improved error handling in case of incorrect auth config in distributed WATO environments
WATO:
* 0308 Multisite can now set rotation view permissions for NagVis...
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index e08c402..c7b925f 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -467,8 +467,18 @@ function pnp_response_handler(data, code) {
}
response = null;
- if(!valid_response)
- fallback_graphs(data);
+ if(!valid_response) {
+ if (code.match(/_login/)) {
+ // Login failed! This usually happens when one uses a distributed
+ // multisite setup but the transparent authentication is somehow
+ // broken. Display an error message trying to assist.
+ var container = document.getElementById(data['container']);
+ container.innerHTML = '<div class="error">Unable to fetch graphs of the host. Maybe you have a '
+ + 'distributed setup and not set up the authentication correctly yet.</div>';
+ } else {
+ fallback_graphs(data);
+ }
+ }
}
// Fallback bei doofer/keiner Antwort
Module: check_mk
Branch: master
Commit: 9405efffeb3ed019fc82a22a796923c4927d283e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9405efffeb3ed0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 17:31:49 2013 +0100
Removed werk that is obsolete on master
---
.werks/438 | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/.werks/438 b/.werks/438
deleted file mode 100644
index 020b460..0000000
--- a/.werks/438
+++ /dev/null
@@ -1,12 +0,0 @@
-Title: Remove test-code, Micro Core only worked once per host
-Level: 2
-Component: core
-Class: fix
-State: unknown
-Version: 1.2.5i1
-Date: 1387556838
-Targetversion: future
-
-Due to remaining test-code the file <tt>/tmp/dev_null</tt> was created
-instead of <tt>/dev/null</tt>. That way only the first site using
-Check_MK Micro Core was working. This has been fixed.
Module: check_mk
Branch: master
Commit: 00cb77ae95203eb3843dfedb503354e7cec414df
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00cb77ae95203e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 17:29:28 2013 +0100
FIX Remove test-code, Micro Core only worked once per host
Due to remaining test-code the file <tt>/tmp/dev_null</tt> was created
instead of <tt>/dev/null</tt>. That way only the first site using
Check_MK Micro Core was working. This has been fixed.
---
.werks/438 | 12 ++++++++++++
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/438 b/.werks/438
new file mode 100644
index 0000000..020b460
--- /dev/null
+++ b/.werks/438
@@ -0,0 +1,12 @@
+Title: Remove test-code, Micro Core only worked once per host
+Level: 2
+Component: core
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387556838
+Targetversion: future
+
+Due to remaining test-code the file <tt>/tmp/dev_null</tt> was created
+instead of <tt>/dev/null</tt>. That way only the first site using
+Check_MK Micro Core was working. This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index d00d76d..07de03a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* 0354 FIX: Catch exception when check plugins do not return a state...
* 0398 FIX: Tolerate debug output in check plugins when using CMC...
* 0314 FIX: Fix CMC not executing any Check_MK checks after config reload...
+ * 0438 FIX: Remove test-code, Micro Core only worked once per host...
Checks & Agents:
* 0306 esx_vsphere_counters: added missing ramdisk levels sfcbtickets
diff --git a/modules/check_mk.py b/modules/check_mk.py
index e989a6b..bef79a1 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5133,7 +5133,7 @@ def do_check_keepalive():
keepalive_fd = opt_keepalive_fd
else:
keepalive_fd = os.dup(1)
- devnull = os.open("/tmp/dev_null", os.O_WRONLY | os.O_CREAT)
+ devnull = os.open("/dev/null", os.O_WRONLY | os.O_CREAT)
os.dup2(devnull, 1)
os.close(devnull)
Module: check_mk
Branch: master
Commit: a502ab9cb2a725edb42202940dc511be8b10d8a4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a502ab9cb2a725…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 20 15:08:28 2013 +0100
FIX Users are not logged out anymore during changing their own passwords
The login cookie is now automatically updated with the new valid value.
---
.werks/423 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 12 +++++-------
3 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/.werks/423 b/.werks/423
new file mode 100644
index 0000000..ecb7a53
--- /dev/null
+++ b/.werks/423
@@ -0,0 +1,10 @@
+Title: Users are not logged out anymore during changing their own passwords
+Level: 1
+Component: multisite
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387548439
+Targetversion: future
+
+The login cookie is now automatically updated with the new valid value.
diff --git a/ChangeLog b/ChangeLog
index 288b58e..5eb042e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -96,6 +96,7 @@
* 0436 FIX: Fix broken Site status switching via sidebar snapin...
* 0420 FIX: LDAP: Roles/Groups are now synced even if case of DNs do not match...
* 0421 FIX: UserDB: Fixed lost passwords when changing users in large user databases...
+ * 0423 FIX: Users are not logged out anymore during changing their own passwords...
WATO:
* 0308 Multisite can now set rotation view permissions for NagVis...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9cdcc1e..afa3a2a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -105,7 +105,7 @@
import sys, pprint, socket, re, subprocess, time, datetime, \
shutil, tarfile, StringIO, math, fcntl, pickle, random
-import config, table, multitar, userdb, hooks, weblib
+import config, table, multitar, userdb, hooks, weblib, login
from lib import *
from valuespec import *
import forms
@@ -12689,15 +12689,13 @@ def page_user_profile():
else:
users[config.user_id]['serial'] += 1
+ # Set the new cookie to prevent logout for the current user
+ login.set_auth_cookie(config.user_id, users[config.user_id]['serial'])
+
userdb.save_users(users)
success = True
- if password:
- html.javascript(
- "if(top) top.location.reload(); "
- "else document.location.reload();")
- else:
- html.reload_sidebar()
+ html.reload_sidebar()
except MKUserError, e:
html.add_user_error(e.varname, e.message)
Module: check_mk
Branch: master
Commit: 16603db35bf681560f466a568339606dd22d59aa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=16603db35bf681…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 15:39:15 2013 +0100
Udpated description of Werk
---
.werks/437 | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/.werks/437 b/.werks/437
index f785a45..bea4eab 100644
--- a/.werks/437
+++ b/.werks/437
@@ -5,17 +5,19 @@ Version: 1.2.5i1
Date: 1387549981
Class: feature
-Do you know the plugin output <i>invalid output from agent, invalid check parameters or ...</i>?
-The option for debugging such failed checks has been converted from an absolute
-path to a simple Checkbox. The target path for the log file is now hardcoded
-and will be printed by the failed check in the plugin output.
+Do you know the plugin output <i>invalid output from agent, invalid check
+parameters or ...</i>? The option for debugging such failed checks has
+been converted from an absolute path to a simple Checkbox. The target path
+for the log file is now hardcoded and will be printed by the failed check
+in the plugin output. The advantage is that when using OMD the option
+will work on all sites of a distributed environment and will log to
+<tt>var/log/check_mk/crashed-checks.log</tt> within the site.
-Existing configuration will not be touched, though, and honor the configured
+Existing configurations will not be touched, though, and honor the configured
path - as long as you do not change the option via WATO. <tt>main.mk</tt> still
allows the old way:
F+:main.mk
-
# Hard code path to log file
debug_log = "/var/log/foo.log"
Module: check_mk
Branch: master
Commit: a1e2bf836bdcd87dd7eeb534a9ba90094fd83b5f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1e2bf836bdcd8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 15:36:17 2013 +0100
Convert WATO rule for debug_log into simple Checkbox
Do you know the plugin output <i>invalid output from agent, invalid check parameters or ...</i>?
The option for debugging such failed checks has been converted from an absolute
path to a simple Checkbox. The target path for the log file is now hardcoded
and will be printed by the failed check in the plugin output.
Existing configuration will not be touched, though, and honor the configured
path - as long as you do not change the option via WATO. <tt>main.mk</tt> still
allows the old way:
F+:main.mk
# Hard code path to log file
debug_log = "/var/log/foo.log"
# Simply enable and use standard path
debug_log = True
# Disable
debug_log = None
# New way to disable
debug_log = False
F-:
---
.werks/437 | 30 ++++++++++++++++++++++++++++
ChangeLog | 1 +
modules/check_mk.py | 18 +++++++++++------
modules/check_mk_base.py | 12 +++++++++--
web/htdocs/wato.py | 19 +++++++++++++-----
web/plugins/wato/check_mk_configuration.py | 19 +++++++++++-------
6 files changed, 79 insertions(+), 20 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a1e2bf836b…
Module: check_mk
Branch: master
Commit: 8571428fdd4ec9739c4f34a9689ef7ec48c28895
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8571428fdd4ec9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 15:07:59 2013 +0100
Better description for werk 112
---
.werks/112 | 9 ++++++++-
ChangeLog | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.werks/112 b/.werks/112
index 31e4e7c..9bed400 100644
--- a/.werks/112
+++ b/.werks/112
@@ -1,8 +1,15 @@
-Title: Explicit mapping of clustered services can now be done with Wato.
+Title: Explicit mapping of clustered services can now be done with WATO
Level: 1
Component: wato
Version: 1.2.5i1
Date: 1387534743
Class: feature
+Up to now WATO assumed that one host can be assigned at most to one cluster.
+Now you can have one node in multiple clusters. With the new WATO ruleset
+<i>Explicit mapping of Clustered Services</i> you can now specify explicitely,
+to which of the clusters services of a node should be mapped.
+If you are used to use <tt>main.mk</tt> then you might know
+<tt>clustered_services_of['myhost']</tt>, which does exactly the same,
+but is not accessible via WATO.
diff --git a/ChangeLog b/ChangeLog
index 288b58e..4f2caca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -103,7 +103,7 @@
NOTE: Please refer to the migration notes!
* 0244 New features for WATO page Backup & Restore...
* 0382 Active HTTP check now supports multiline regexp matching...
- * 0112 Explicit mapping of clustered services can now be done with Wato.
+ * 0112 Explicit mapping of clustered services can now be done with WATO...
* 0057 FIX: Fix exception in WATO host editor on custom tag without topic...
* 0241 FIX: Improved sorting of WATO folders in dropdown menu...
* 0019 FIX: Fixed wording in WATO rule for MSSQL check