Module: check_mk
Branch: master
Commit: 22caca768a5ce6b4e0bcbe63351cf11b54d799de
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=22caca768a5ce6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 28 14:25:09 2011 +0200
Updated bug entries #0400, #0405
---
.bugs/400 | 11 ++++++++---
.bugs/405 | 10 +++++++---
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/.bugs/400 b/.bugs/400
index 3bb55e5..298453f 100644
--- a/.bugs/400
+++ b/.bugs/400
@@ -1,11 +1,12 @@
Title: Service Hardstate-Filter conflicts with Hoststate filter
Component: multisite
-Benefit: 2
-State: open
Cost: 2
Date: 2011-10-27 15:00:16
-Targetversion: 1.1.12
+State: done
Class: bug
+Benefit: 2
+Fun: 0
+Targetversion: 1.1.12
The service hard state filter uses the HTML variables hst0, hst1, ...
just like the host state filter. Change this to hdst0, hdst1, ....
@@ -13,3 +14,7 @@ Otherwise the filter will also have the same setting as the
host state filter.
This might affect builtin views. Check them...
+
+2011-10-28 14:25:06: changed state open -> done
+The variables for the hard state filters are now
+prefixed with hd instead of h.
diff --git a/.bugs/405 b/.bugs/405
index 85518f2..83c50c4 100644
--- a/.bugs/405
+++ b/.bugs/405
@@ -1,11 +1,15 @@
Title: Add filters for hard service state
Component: multisite
-Benefit: 1
-State: open
Cost: 1
Date: 2011-10-27 18:56:40
-Targetversion: 1.2.0
+State: done
Class: todo
+Benefit: 1
+Fun: 0
+Targetversion: 1.2.0
Do we have filters for the hard service state? At least in
the service search they should be visible. Same for hosts.
+
+2011-10-28 14:24:45: changed state open -> done
+Hard state filter added to search and problems views.
Module: check_mk
Branch: master
Commit: af3cd41d5d0f800b15c2e0a62e24b4695358a836
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af3cd41d5d0f80…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 28 14:32:35 2011 +0200
Updated bug entries #0427, #0431
---
.bugs/427 | 2 +-
.bugs/431 | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.bugs/427 b/.bugs/427
index e748796..6171da4 100644
--- a/.bugs/427
+++ b/.bugs/427
@@ -4,7 +4,7 @@ Benefit: 1
State: open
Cost: 3
Date: 2011-10-21 13:09:21
-Targetversion: 1.1.12
+Targetversion: 1.2.0
Class: feature
There is a agent section outputting the memory information for HP-UX, but no
diff --git a/.bugs/431 b/.bugs/431
index bd352b5..8140674 100644
--- a/.bugs/431
+++ b/.bugs/431
@@ -1,11 +1,12 @@
Title: Intervals and wait parameters for mrpe
Component: checks
-Benefit: 6
+Benefit: 4
State: open
-Cost: 3
+Cost: 2
Date: 2011-10-21 15:50:46
Targetversion: 1.2.0
Class: feature
Es wäre schön, wenn man in der mrpe.conf parameter für Timeoutes und WaitMax
-festlegen könnte. Dazu müsste der Agent die Ausgabe des Plugins Cachen
+festlegen könnte. Dazu müsste der Agent die Ausgabe des Plugins Cachen.
+Nachteil: der Code für MRPE wird dadurch sehr aufgeblasen.
Module: check_mk
Branch: master
Commit: ec51d24dc52e367cd95c3b90fca47d90f9976488
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec51d24dc52e36…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 27 19:43:43 2011 +0200
FIX: crash when sorting with join without title
---
ChangeLog | 2 ++
web/htdocs/views.py | 20 ++++++++++++--------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2e30def..d263ee1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,8 @@
Multisite:
* FIX: finally fixed long-wanted "NagStaMon create hundreds
of Apache processes" problem!
+ * FIX: query crashed when sorting after a join columns without
+ an explicit title.
1.1.12:
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index f4a50be..ebae2c3 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1205,6 +1205,7 @@ def show_view(view, show_heading = False, show_buttons = True, show_footer = Tru
else:
join_columns += s[0]["columns"]
+
# Add key columns, needed for executing commands
columns += datasource["keys"]
@@ -1218,7 +1219,7 @@ def show_view(view, show_heading = False, show_buttons = True, show_footer = Tru
columns = list(colset)
# Get list of painter options we need to display (such as PNP time range
- # or the format being used for timestamp display
+ # or the format being used for timestamp display)
painter_options = []
for entry in all_painters:
p = entry[0]
@@ -2448,16 +2449,19 @@ def sort_url(view, painter, join_index):
return ','.join(p)
def paint_header(view, p):
+ # The variable p is a tuple with the following components:
+ # p[0] --> painter object, from multisite_painters[]
+ # p[1] --> view name to link to or None (not needed here)
+ # p[2] --> tooltip (title) to display (not needed here)
+ # p[3] --> optional: join key (e.g. service description)
+ # p[4] --> optional: column title to use instead default
painter = p[0]
join_index = None
+ t = painter.get("short", painter["title"])
if len(p) >= 4: # join column
- if len(p) >= 5 and p[4]:
- t = p[4]
- join_index = p[3]
- else:
- t = p[3]
- else:
- t = painter.get("short", painter["title"])
+ join_index = p[3]
+ if len(p) >= 5 and p[4]:
+ t = p[4]
# Optional: Sort link in title cell
# Use explicit defined sorter or implicit the sorter with the painter name
Module: check_mk
Branch: master
Commit: a19aa1726ab24743066db7746642bbedcc3adfb8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a19aa1726ab247…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 27 19:44:50 2011 +0200
Updated bug entries #0403
---
.bugs/403 | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.bugs/403 b/.bugs/403
index 4ee57c7..8e3aac8 100644
--- a/.bugs/403
+++ b/.bugs/403
@@ -1,14 +1,19 @@
Title: Service "1st perf data" in host view: search broken
Component: multisite
-Benefit: 2
-State: open
Cost: 2
Date: 2011-10-27 18:53:50
-Targetversion: 1.1.12p1
+State: done
Class: bug
+Benefit: 2
+Fun: 0
+Targetversion: 1.1.12p1
Take the allhosts_mini View. Add a service column
with the 1.st service perfdata variable. Now click
on the header to sort after that columns -> Error
that the column "service_perf_data" is missing.
+
+2011-10-27 19:44:48: changed state open -> done
+The problem appeared, when the join column did not
+have an explicit title. This is fixed now.