Module: check_mk
Branch: master
Commit: de6087820df09f3a6812c0be26205b05f727bed7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de6087820df09f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Nov 18 14:30:40 2012 +0100
FIX: fixed detection of existing groups when creating new groups
Conflicts:
ChangeLog
---
ChangeLog | 7 +++++++
web/htdocs/wato.py | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7b432e9..88d1d14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -120,6 +120,13 @@
* winperf_phydisk: monitor average queue length for read/write
1.2.0p4:
+ WATO:
+ * FIX: fixed detection of existing groups when creating new groups
+
+
+1.2.0p3:
+ Mulitisite
+ * Added "view" parameter to dashlet_pnpgraph webservice
* FIX: BI: Assuming "OK" for hosts is now possible
* FIX: Fixed error in makeuri() calls when no parameters in URL
* FIX: Try out mode in view editor does not show context buttons anymore
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a0135f7..b8604bc 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5807,6 +5807,8 @@ def mode_edit_group(phase, what):
raise MKUserError("name", _("Sorry, spaces are not allowed in group names."))
if not re.match("^[-a-z0-9A-Z_]*$", name):
raise MKUserError("name", _("Invalid group name. Only the characters a-z, A-Z, 0-9, _ and - are allowed."))
+ if name in groups:
+ raise MKUserError("name", _("Sorry, there is already a group with that name"))
groups[name] = alias
log_pending(SYNCRESTART, None, "edit-%sgroups" % what, _("Create new %s group %s" % (what, name)))
else:
Module: check_mk
Branch: master
Commit: a756bb3faecfa93696749e30a903c4a7e983b66b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a756bb3faecfa9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Nov 18 14:28:32 2012 +0100
WATO: Cloning of contact/host/service groups (without members)
---
ChangeLog | 3 +++
web/htdocs/wato.py | 12 ++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3de6b68..7b432e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* New performance counter for client request processing time
* FIX: fixed bug in rule optimizer with ranges of syslog priorities
+ WATO:
+ * Cloning of contact/host/service groups (without members)
+
1.2.1i2:
Core:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d23391b..a0135f7 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5755,8 +5755,10 @@ def mode_groups(phase, what):
html.write('<tr class="data %s0">' % odd)
edit_url = make_link([("mode", "edit_%s_group" % what), ("edit", name)])
delete_url = html.makeactionuri([("_delete", name)])
+ clone_url = make_link([("mode", "edit_%s_group" % what), ("clone", name)])
html.write("<td class=buttons>")
html.icon_button(edit_url, _("Properties"), "edit")
+ html.icon_button(clone_url, _("Create a copy of this group"), "clone")
html.icon_button(delete_url, _("Delete"), "delete")
html.write("</td><td>%s</td><td>%s</td>" % (name, alias))
if what == "contact":
@@ -5821,7 +5823,8 @@ def mode_edit_group(phase, what):
html.help(_("The name of the group is used as an internal key. It cannot be "
"changed later. It is also visible in the status GUI."))
if new:
- html.text_input("name")
+ clone_group = html.var("clone")
+ html.text_input("name", clone_group or "")
html.set_focus("name")
else:
html.write(name)
@@ -5829,7 +5832,12 @@ def mode_edit_group(phase, what):
forms.section(_("Alias"))
html.help(_("An Alias or description of this group."))
- html.text_input("alias", name and groups.get(name, "") or "")
+ alias = groups.get(name, "")
+ if not alias and clone_group:
+ alias = groups.get(clone_group, "")
+ if not alias:
+ alias = name
+ html.text_input("alias", alias)
forms.end()
html.button("save", _("Save"))
html.hidden_fields()
Module: check_mk
Branch: master
Commit: 4f9e11182b65b0519aecd477c91cb99854fbc0a6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4f9e11182b65b0…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Sat Nov 17 19:37:55 2012 +0100
Add new bug entry
---
.bugs/811 | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/.bugs/811 b/.bugs/811
new file mode 100644
index 0000000..64c419c
--- /dev/null
+++ b/.bugs/811
@@ -0,0 +1,11 @@
+Title: Multisite does not display local check man pages
+Component: multisite
+State: open
+Date: 2012-11-16 10:39:32
+Targetversion: 1.2.0
+Class: bug
+
+If you install an MKP and it brings a check man page this man page is not
+displayed from Multisite, instead it gives an error about not finding the
+check man page in the default path. It would be good if multisite could
+also check the local/ structure for existing man pages