Module: check_mk
Branch: master
Commit: bcd22c8272abc911dbc3e2023518c421ea649967
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bcd22c8272abc9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 6 18:52:26 2012 +0200
FIX: better error message if not logged into site during remote automation
---
ChangeLog | 5 ++++-
web/htdocs/wato.py | 4 ++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1d329f9..974a60e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,11 @@
1.2.0b4:
WATO:
* ps and ps.perf configurable via WATO now (without inventory)
- * FIX: honor folder-permissions when creating, deleting and modifiying rules
+ * FIX: honor folder-permissions when creating, deleting
+ and modifiying rules
* FIX: detect non-local site even if unix: is being used
+ * FIX: better error message if not logged into site during
+ action that needs remote access
Multisite:
* FIX: fixed filter of recent event views (4 hours didn't catch)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 01923e8..5bbec4e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6675,6 +6675,10 @@ def get_url(url, insecure, user=None, password=None, params = ''):
return response_body
def check_mk_remote_automation(siteid, command, args, indata):
+ site = config.site(siteid)
+ if "secret" not in site:
+ raise MKGeneralException(_("Cannot access site %s - you are not logged in.")
+ % site.get("alias", siteid))
# If the site is not up-to-date, synchronize it first.
repstatus = load_replication_status()
if repstatus.get(siteid, {}).get("need_sync"):
Module: check_mk
Branch: master
Commit: a34d5b65175a3de94b6cb8db73d4a4dbbba17a51
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a34d5b65175a3d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 6 18:28:55 2012 +0200
Use label for checkbox in WATO site configuration
---
web/htdocs/wato.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 49cb264..01923e8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6493,8 +6493,7 @@ def mode_edit_site(phase):
"the connection to the remote sites. This brings a great speed up in high-latency "
"situations but locks a number of threads in the Livestatus module of the target site. "))
html.write("</td><td class=content>")
- html.checkbox("persist", site.get("persist", False))
- html.write(_("Use persistent connections"))
+ html.checkbox("persist", site.get("persist", False), label=_("Use persistent connections"))
html.write("</td></tr>")
# URL-Prefix
Module: check_mk
Branch: master
Commit: f611738373d80b946c1f1408f95414eb5254a74b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f611738373d80b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 6 12:59:24 2012 +0200
Updated bug entries #0697
---
.bugs/697 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/697 b/.bugs/697
index 141900d..a75d12a 100644
--- a/.bugs/697
+++ b/.bugs/697
@@ -1,9 +1,12 @@
Title: WATO host/folders - <form> must not be nested
Component: wato
-State: open
+Class: bug
+State: done
Date: 2012-04-25 12:47:08
Targetversion: 1.2.0
-Class: bug
It is not allowed to have nested forms. The search host form must be moved outside the
host table form.
+
+2012-05-06 12:59:22: changed state open -> done
+Fixed a couple of days ago.
Module: check_mk
Branch: master
Commit: d6f0853da312fe25a3d459ad36e6dcc4df463a19
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6f0853da312fe…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 6 12:50:55 2012 +0200
Updated bug entries #0695
---
.bugs/695 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/695 b/.bugs/695
index 5f13780..8be30d3 100644
--- a/.bugs/695
+++ b/.bugs/695
@@ -1,9 +1,9 @@
Title: Configuring timeperiod exceptions is buggy
Component: wato
-State: open
+Class: bug
+State: done
Date: 2012-04-25 12:34:06
Targetversion: 1.2.0
-Class: bug
- When creating one timeperiod exception it is ok. When changing the definition in the first field
WATO creates a second exception entry from it but leaves the old.
@@ -13,3 +13,6 @@ Class: bug
- On user errors the form focuses the alias field all the time.
Possible fix: Migrate to valuespecs.
+
+2012-05-06 12:50:53: changed state open -> done
+Reimplemented using ValueSpecs.