Module: check_mk
Branch: master
Commit: defd075dae12af81c9f9f0f57fb16303823f2187
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=defd075dae12af…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 19 11:41:45 2015 +0200
#2254 FIX Fixed error message in parameter columns of discovered services
All discovered services were showing up the "Invalid check parameter" error message
in the "check parameters" column of the service discovery table of a host.
This error was simply a problem of visualisation in this table and had no other
negative effect, the checks worked without a problem.
---
.werks/2254 | 13 +++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 1 +
web/plugins/wato/check_parameters.py | 9 ++++++++-
4 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/.werks/2254 b/.werks/2254
new file mode 100644
index 0000000..15b2180
--- /dev/null
+++ b/.werks/2254
@@ -0,0 +1,13 @@
+Title: Fixed error message in parameter columns of discovered services
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1432028372
+
+All discovered services were showing up the "Invalid check parameter" error message
+in the "check parameters" column of the service discovery table of a host.
+This error was simply a problem of visualisation in this table and had no other
+negative effect, the checks worked without a problem.
diff --git a/ChangeLog b/ChangeLog
index b2b3c23..10f0137 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -498,6 +498,7 @@
* 2203 FIX: Fix sorting of unselected elements in a list choice with two panes
* 2244 FIX: Fixed sorting of host tag topics in dropdown selections
* 2263 FIX: Bulk service discovery: Fixed error when doing bulk inventory on locked folders...
+ * 2254 FIX: Fixed error message in parameter columns of discovered services...
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host notications
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2c223bc..12c0774 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3291,6 +3291,7 @@ def show_service_table(host, firsttime):
except Exception, e:
paramtext = _("Invalid check parameter: %s!") % e
paramtext += _(" The parameter is: %r") % (params,)
+ paramtext += _(" The varname is: %s") % varname
html.write(paramtext)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index db770a8..0cee1fc 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -7737,6 +7737,13 @@ def ps_convert_from_singlekeys(old_params):
del params[key]
return params
+def ps_convert_inventorized_from_singlekeys(old_params):
+ params = ps_convert_from_singlekeys(old_params)
+ if 'user' in params:
+ del params['user']
+ if 'process' in params:
+ del params['process']
+ return params
# Rule for disovered process checks
register_check_parameters(
@@ -7752,7 +7759,7 @@ register_check_parameters(
))
]
),
- forth = ps_convert_from_singlekeys,
+ forth = ps_convert_inventorized_from_singlekeys,
),
TextAscii(
title = _("Process name as defined at discovery"),
Module: check_mk
Branch: master
Commit: 6eeb0c1255e7f51368893287139a06b320e36303
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eeb0c1255e7f5…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 18 17:41:10 2015 +0200
#2273 New multisite filter: Start of downtime
The existing filter "Time when downtime was created" did not show the
time when the downtime should actually start, but its creation time.
---
.werks/2273 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/visuals/filters.py | 2 ++
3 files changed, 13 insertions(+)
diff --git a/.werks/2273 b/.werks/2273
new file mode 100644
index 0000000..5e707fd
--- /dev/null
+++ b/.werks/2273
@@ -0,0 +1,10 @@
+Title: New multisite filter: Start of downtime
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i1
+Date: 1431963542
+Class: feature
+
+The existing filter "Time when downtime was created" did not show the
+time when the downtime should actually start, but its creation time.
diff --git a/ChangeLog b/ChangeLog
index fa42469..6d1ccd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -387,6 +387,7 @@
* 2181 Admins can now delete views/dashboards/reports created by other users
* 2249 Builtin icon visibility can now be configured...
* 2228 New matrix views for displaying performance data of service in a matrix table...
+ * 2273 New multisite filter: Start of downtime...
* 1781 FIX: Fix broken grouping by host/service group in availability
* 1783 FIX: Finish the view "History of Scheduled Downtimes"...
* 1206 FIX: Hostname not longer shown as column in host views
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 1dc2404..a6bc303 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -691,6 +691,8 @@ declare_filter(251, FilterTime("host", "host_last_check", _("Last host check"),
declare_filter(253, FilterTime("comment", "comment_entry_time", _("Time of comment"), "comment_entry_time" ))
declare_filter(253, FilterTime("downtime", "downtime_entry_time", _("Time when downtime was created"), "downtime_entry_time" ))
declare_filter(254, FilterText("downtime_comment", _("Downtime comment"), "downtime", "downtime_comment", "downtime_comment", "~"))
+declare_filter(255, FilterTime("downtime", "downtime_start_time", _("Start of downtime"), "downtime_start_time" ))
+
# _
# | | ___ __ _
# | | / _ \ / _` |
Module: check_mk
Branch: master
Commit: 865bb2b15e38df5d98dc60285b139eca601e0918
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=865bb2b15e38df…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 18 17:10:08 2015 +0200
#2272 FIX mrpe: made UNKNOWN message more clear in case of an invalid state char
---
.werks/2272 | 9 +++++++++
ChangeLog | 1 +
checks/mrpe | 17 ++++++++++-------
3 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/.werks/2272 b/.werks/2272
new file mode 100644
index 0000000..dbe4b7e
--- /dev/null
+++ b/.werks/2272
@@ -0,0 +1,9 @@
+Title: mrpe: made UNKNOWN message more clear in case of an invalid state char
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1431961754
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 0ff2f45..fa42469 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -364,6 +364,7 @@
* 2266 FIX: windows agent: fixed invalid agent output if system memory exceeds 2TB RAM...
* 2267 FIX: mk_db2.aix agent plugin: no longer throws an error when a db2 profile is not set up properly...
* 2268 FIX: db2_tablespaces: no longer throws exception in checks when complete db2 instance vanishes
+ * 2272 FIX: mrpe: made UNKNOWN message more clear in case of an invalid state char
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request, added mailto link for error report...
diff --git a/checks/mrpe b/checks/mrpe
index 2e63037..08ba534 100644
--- a/checks/mrpe
+++ b/checks/mrpe
@@ -57,7 +57,10 @@ def check_mrpe(item, params, info):
else:
check_name = None
if line[0] == item:
- state = int(line[1])
+ try:
+ state = int(line[1])
+ else:
+ state = None
# convert to original format by joining and replacing \1 back with \n
rest = " ".join(line[2:]).replace("\1", "\n")
@@ -66,8 +69,8 @@ def check_mrpe(item, params, info):
# First line: OUTPUT|PERFDATA
parts = lines[0].split("|", 1)
output = [parts[0].strip()]
- if state not in [ 0, 1, 2, 3]:
- output[0] = "Invalid plugin status %d. Output is: %s" % (state, output[0])
+ if state == None or state not in [0, 1, 2, 3]:
+ output[0] = "Invalid plugin status %s. Output is: %s" % (state, output[0])
state = 3
if len(parts) > 1:
perfdata = parts[1].strip().split()
@@ -100,14 +103,14 @@ def check_mrpe(item, params, info):
# name of check command needed for PNP to choose the correct template
if check_name:
perf_parsed.append(check_name)
- best_result = state, "\\n".join(output), perf_parsed
- best_state = state
+ best_result = state, "\\n".join(output), perf_parsed
+ best_state = state
if best_state == None:
- return (3, "Check output not found in output of MRPE")
+ return (3, "Check output not found in output of MRPE")
else:
- return best_result
+ return best_result
check_info["mrpe"] = {