Module: check_mk
Branch: master
Commit: fa07bf9f5d5998ab9235f03ca7b682eda88a59d8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa07bf9f5d5998…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Aug 21 15:06:42 2011 +0200
Updated bug entries
---
.bugs/120 | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/.bugs/120 b/.bugs/120
index 7edcfdc..3a8d54a 100644
--- a/.bugs/120
+++ b/.bugs/120
@@ -1,9 +1,14 @@
Title: bytes_readable function to format negative values
Component: core
+State: done
+Class: nastiness
+Date: 2011-02-01 13:47:06
Benefit: 7
-State: open
Cost: 1
-Date: 2011-02-01 13:47:06
-Class: nastiness
+Fun: 0
+
+The bytes readable formating function was not able to format negative values over here. This
+should really be possible.
-The bytes readable formating function was not able to format negative values over here. This should really be possible.
+2011-08-21 14:53:08: changed state open -> done
+This is already implemented for a while.
Module: check_mk
Branch: master
Commit: 4af399e381556c1927fe1b85429caa9639680000
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4af399e381556c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Aug 21 15:07:09 2011 +0200
FIX: Multisite: avoid seven broken images in case of missing PNP graphs
---
.bugs/315 | 12 +++++++++---
ChangeLog | 1 +
web/htdocs/js/check_mk.js | 7 ++++++-
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.bugs/315 b/.bugs/315
index ca19841..47334c1 100644
--- a/.bugs/315
+++ b/.bugs/315
@@ -1,11 +1,17 @@
Title: embedded PNP-graphs broken if none are there
Component: multisite
+State: done
+Class: nastiness
+Date: 2011-07-22 10:56:11
Benefit: 1
-State: open
Cost: 1
-Date: 2011-07-22 10:56:11
-Class: nastiness
+Fun: 0
If you got to the service details of a service without performance
data, then the embedded PNP-Graph area is not empty but shows
seven broken images.
+
+2011-08-21 15:06:22: changed state open -> done
+We show the fall back images only in case of a 404 respone
+from the webserver (meaning that the JSON webserver is not
+available).
diff --git a/ChangeLog b/ChangeLog
index e2685fb..cc7bdb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,7 @@
Multisite:
* FIX: reschedule now works for host names containing spaces
* FIX: correctly sort log views in case of multi site setups
+ * FIX: avoid seven broken images in case of missing PNP graphs
* New sorters for time and line number of logfile entries
* Bookmarks snapin: save relative URLs whenever possible
* Man-Pages of Check_MK checks shown in Multisite honor OMD's local hierarchy
diff --git a/web/htdocs/js/check_mk.js b/web/htdocs/js/check_mk.js
index 26a5469..66ef51d 100644
--- a/web/htdocs/js/check_mk.js
+++ b/web/htdocs/js/check_mk.js
@@ -225,7 +225,12 @@ function unhover_tab(linkobject)
// ----------------------------------------------------------------------------
function pnp_error_response_handler(data, statusCode) {
- fallback_graphs(data);
+ // PNP versions that do not have the JSON webservice respond with
+ // 404. Current version with the webservice answer 500 if the service
+ // in question does not have any PNP graphs. So we paint the fallback
+ // graphs only if the respone code is 404 (not found).
+ if (parseInt(statusCode) == 404)
+ fallback_graphs(data);
}
function pnp_response_handler(data, code) {
Module: check_mk
Branch: master
Commit: abe0b803fa2b3548dae75a36d32b1d5c09355ba9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=abe0b803fa2b35…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Aug 21 15:24:17 2011 +0200
Multisite: new command for clearing modified attributes
---
.bugs/32 | 10 +++++++---
ChangeLog | 1 +
web/htdocs/views.py | 44 +++++++++++++++++++++++++++++---------------
3 files changed, 37 insertions(+), 18 deletions(-)
diff --git a/.bugs/32 b/.bugs/32
index 1507919..33b1c32 100644
--- a/.bugs/32
+++ b/.bugs/32
@@ -1,13 +1,17 @@
Title: modified_attributes bei Bedarf zurücksetzen
Component: multisite
+State: done
+Class: nastiness
+Date: 2010-12-21 20:48:09
Benefit: 1
-State: open
Cost: 3
-Date: 2010-12-21 20:48:09
-Class: nastiness
+Fun: 0
Wenn man z.B. die active checks aus und wieder eingeschaltet hat,
dann erscheint der grüne Haken. Irgendwie müsste man die modified
Attributes zurücksetzen können. Evtl. hilft auch die Doku, dass
man das über die state retention konfiguriert. Das Kommando
zum Zurücksetzen heisst CHANGE_SVC_MODATTR;<host_name>;<service_description>;<value>
+
+2011-08-21 15:23:59: changed state open -> done
+Umgesetzt. Es gibt jetzt ein eigenes Kommando dafür.
diff --git a/ChangeLog b/ChangeLog
index cc7bdb0..5f1aecd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@
* Bookmarks snapin: save relative URLs whenever possible
* Man-Pages of Check_MK checks shown in Multisite honor OMD's local hierarchy
* nicer output of substates, translate (!) and (!!) into HTML code
+ * new command for clearing modified attributes (red cross, green checkmark)
WATO:
* Show error message in case of empty inventory due to agent error
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 164e657..4f11b50 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -57,34 +57,38 @@ def load_plugins():
return
loaded_with_language = current_language
- config.declare_permission_section("action", "Commands on Objects")
+ config.declare_permission_section("action", _("Commands on Objects"))
config.declare_permission("action.notifications",
- "Enable/disable notifications",
- "Enable and disable notifications on hosts and services",
+ _("Enable/disable notifications"),
+ _("Enable and disable notifications on hosts and services"),
[ "admin" ])
config.declare_permission("action.enablechecks",
- "Enable/disable checks",
- "Enable and disable active or passive checks on hosts and services",
+ _("Enable/disable checks"),
+ _("Enable and disable active or passive checks on hosts and services"),
+ [ "admin" ])
+ config.declare_permission("action.clearmodattr",
+ _("Clear modified attributes"),
+ _("Remove the information that an attribute (like check enabling) has been changed"),
[ "admin" ])
config.declare_permission("action.reschedule",
- "Reschedule checks",
- "Reschedule host and service checks",
+ _("Reschedule checks"),
+ _("Reschedule host and service checks"),
[ "user", "admin" ])
config.declare_permission("action.fakechecks",
- "Fake check results",
- "Manually submit check results for host and service checks",
+ _("Fake check results"),
+ _("Manually submit check results for host and service checks"),
[ "admin" ])
config.declare_permission("action.acknowledge",
- "Acknowledge",
- "Acknowledge host and service problems and remove acknowledgements",
+ _("Acknowledge"),
+ _("Acknowledge host and service problems and remove acknowledgements"),
[ "user", "admin" ])
config.declare_permission("action.addcomment",
- "Add comments",
- "Add comments to hosts or services, and remove comments",
+ _("Add comments"),
+ _("Add comments to hosts or services, and remove comments"),
[ "user", "admin" ])
config.declare_permission("action.downtimes",
- "Set/Remove Downtimes",
- "Schedule and remove downtimes on hosts and services",
+ _("Set/Remove Downtimes"),
+ _("Schedule and remove downtimes on hosts and services"),
[ "user", "admin" ])
load_web_plugins("views", globals())
@@ -1781,6 +1785,12 @@ def show_host_service_actions(what):
"<input type=submit name=_disable_passive_checks value=\"Disable\"> "
"</td></tr>\n")
+ if config.may("action.clearmodattr"):
+ html.write("<tr><td class=legend>Modified attributes</td>\n"
+ "<td class=content>\n"
+ "<input type=submit name=_clear_modattr value=\"Clear information about modified attributes\">"
+ "</td></tr>\n")
+
if config.may("action.fakechecks"):
if what == "service":
states = ["Ok", "Warning", "Critical", "Unknown"]
@@ -1911,6 +1921,10 @@ def nagios_host_service_action_command(what, dataset):
command = "DISABLE_PASSIVE_" + cmdtag + "_CHECKS;%s" % spec
title = "<b>disable passive checks</b> of"
+ elif html.var("_clear_modattr") and config.may("action.clearmodattr"):
+ command = "CHANGE_" + cmdtag + "_MODATTR;%s;0" % spec
+ title = "<b>clear the information about modified attributes</b> of"
+
elif html.var("_resched_checks") and config.may("action.reschedule"):
command = "SCHEDULE_FORCED_" + cmdtag + "_CHECK;%s;%d" % (spec, int(time.time()))
title = "<b>reschedule an immediate check</b> of"
Module: check_mk
Branch: master
Commit: 78c47d6b5ca34d15369d0f9d3834f3a6b57ce6d0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=78c47d6b5ca34d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 20 22:03:08 2011 +0200
Updated bug entries
---
.bugs/17 | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.bugs/17 b/.bugs/17
index 6be03cb..24f3ba5 100644
--- a/.bugs/17
+++ b/.bugs/17
@@ -1,10 +1,11 @@
Title: Tabelle log bei multisite setup: Chronologie ist falsch
Component: multisite
+State: done
+Class: bug
+Date: 2010-12-21 12:17:45
Benefit: 2
-State: open
Cost: 3
-Date: 2010-12-21 12:17:45
-Class: bug
+Fun: 0
Die Logereignisse von den verschiedenen Sites werden nicht
korrekt zusammengemischt. Auch das mit dem Limit wird dann
@@ -13,3 +14,12 @@ Limit, dass Multisite selbst anwendet (auch für die Alert statistics).
Es muss so laufen: Bei einem Limit von 100 bekommt jede Site einzeln
das Limit von 100. Dann sortiert man. Und dann wendet man nochmal
das Limit von 100 an.
+
+Andererseits ist das mit dem Limit ja in allen Views so. Wenn
+man ein Limit anwendet, bekommt man unvollständige Daten und
+man muss die Query eigentlich nochmal aufrufen mit einem besseren
+Filter.
+
+
+2011-08-20 21:47:02: changed state open -> done
+Die Views sind jetzt repariert. Es wird nachträglich sortiert.