Module: check_mk
Branch: master
Commit: a29a37aad50546042021645e34f1877221a7c504
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a29a37aad50546…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Apr 26 13:26:58 2016 +0200
Fixed some spellings and formulations
Conflicts:
web/htdocs/metrics.py
---
web/htdocs/metrics.py | 2 +-
web/plugins/dashboard/dashlets.py | 2 +-
web/plugins/views/painters.py | 2 +-
web/plugins/wato/check_mk_configuration.py | 8 ++++----
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index d92b21c..172fdbd3a 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -1467,7 +1467,7 @@ def host_service_graph_dashlet_cmk(graph_specification, custom_graph_render_opti
else:
raise MKGeneralException(_("Failed to calculate a graph definition."))
except MKLivestatusNotFoundError:
- html.write("<div class=error>%s</div>" % html.attrencode(_("Cannot reander graphs: cannot fetch data via Livestatus")))
+ html.write("<div class=error>%s</div>" % html.attrencode(_("Cannot render graphs: cannot fetch data via Livestatus")))
return
# When the legend is enabled, we need to reduce the height by the height of the legend to
diff --git a/web/plugins/dashboard/dashlets.py b/web/plugins/dashboard/dashlets.py
index 70d8d23..f32bcba 100644
--- a/web/plugins/dashboard/dashlets.py
+++ b/web/plugins/dashboard/dashlets.py
@@ -827,7 +827,7 @@ dashlet_types["snapin"] = {
"parameters" : [
('snapin', DropdownChoice(
title = _('Snapin'),
- help = _('Choose the snapin you like to show.'),
+ help = _('Choose the snapin you would like to show.'),
choices = dashlet_snapin_get_snapins,
)),
],
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index e888ce4..4c04472 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -783,7 +783,7 @@ def paint_cache_info(row):
cache_interval = row["service_cache_interval"]
cache_age = time.time() - cached_at
percentage = 100.0 * cache_age / cache_interval
- return "", _("Cache generated %s ago, cache interval: %s, elapsed cache livetime: %s") % (
+ return "", _("Cache generated %s ago, cache interval: %s, elapsed cache lifespan: %s") % (
age_human_readable(cache_age), age_human_readable(cache_interval), percent_human_redable(percentage))
multisite_painters["svc_check_cache_info"] = {
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 44664f2..98695eb 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -2166,11 +2166,11 @@ register_rule(group,
register_rule(group,
"non_inline_snmp_hosts",
title = _("Hosts not using Inline-SNMP"),
- help = _("Check_MK has an efficicient SNMP implementation called Inline-SNMP which reduces the "
- "load produced by SNMP monitoring on the monitoring host significant. This option is "
+ help = _("Check_MK has an efficient SNMP implementation called Inline SNMP which reduces the "
+ "load produced by SNMP monitoring on the monitoring host significantly. This option is "
"enabled by default for all SNMP hosts and it is a good idea to keep this default "
- "settings. However, there are SNMP devices which have problems with this SNMP "
- "implementation. You can use this rule to disable Inline-SNMP for these hosts."))
+ "setting. However, there are SNMP devices which have problems with this SNMP "
+ "implementation. You can use this rule to disable Inline SNMP for these hosts."))
register_rule(group,
Module: check_mk
Branch: master
Commit: 5e4a128ada44e0ee63a95059f2d6ed273008d7b5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e4a128ada44e0…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 26 11:58:53 2016 +0200
3524 fileinfo, fileinfo.groups: both checks are now cluster ready
fileinfo: The check now tries to find the file on all cluster nodes.
fileinfo.groups: Fixed an exception when data came from multiple nodes.
---
.werks/3524 | 11 +++++++++++
ChangeLog | 1 +
checks/fileinfo | 25 +++++++++++++++++--------
3 files changed, 29 insertions(+), 8 deletions(-)
diff --git a/.werks/3524 b/.werks/3524
new file mode 100644
index 0000000..0c169a0
--- /dev/null
+++ b/.werks/3524
@@ -0,0 +1,11 @@
+Title: fileinfo, fileinfo.groups: both checks are now cluster ready
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461664629
+Class: feature
+
+fileinfo: The check now tries to find the file on all cluster nodes.
+
+fileinfo.groups: Fixed an exception when data came from multiple nodes.
diff --git a/ChangeLog b/ChangeLog
index 38d42ca..1c1fb4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
* 3423 papouch_th2e_sensors, papouch_th2e_sensors.dewpoint, papouch_th2e_sensors.humidity: new checks which monitor the temperature, dew point and humidity sensors of Papouch TH2E devices
* 3473 fileinfo.groups: the include patterns now also support the pattern YESTERDAY, in addition to DATE...
* 3428 bluenet2_powerrail, bluenet2_powerrail.rcm, bluenet2_powerrail.temp, bluenet2_powerrail.humidity: new checks for Bachmann Bluenet2 Powerrails which support the BACHMANN-bluenet2-MIB
+ * 3524 fileinfo, fileinfo.groups: both checks are now cluster ready...
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/checks/fileinfo b/checks/fileinfo
index b5580c9..ff5201a 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -108,15 +108,19 @@ def check_fileinfo(item, params, info):
if len(info) == 0:
return (3, "no information sent by agent")
- outof_range_txt = fileinfo_check_timeranges(params)
- in_timerange = outof_range_txt == None
- reftime = int(info[0][0])
+ outof_range_txt = fileinfo_check_timeranges(params)
+ in_timerange = outof_range_txt == None
+ reftime = None
check_definition = False
- state_missing = params.get("state_missing", 3)
- for line in info[1:]:
+ state_missing = params.get("state_missing", 3)
+ for line in info:
+ if len(line) == 1:
+ reftime = int(line[0])
+ continue
+
if item == line[0]:
if line[1] == "missing":
- return in_timerange and state_missing or 0, "File not found" + (outof_range_txt or "")
+ continue
state = 0
size = int(line[1])
age = reftime - int(line[2])
@@ -127,6 +131,7 @@ def check_fileinfo(item, params, info):
if check_definition == False:
return in_timerange and state_missing or 0, "File not found" + (outof_range_txt or "")
+
return fileinfo_check_function(check_definition, params, outof_range_txt)
# Extracts patterns that are relevant for the current host and item.
@@ -151,7 +156,7 @@ def check_fileinfo_groups(item, params, info):
outof_range_txt = fileinfo_check_timeranges(params)
- reftime = int(info[0][0])
+ reftime = None
count_all = 0
age_oldest = None
@@ -161,7 +166,11 @@ def check_fileinfo_groups(item, params, info):
size_largest = 0
date_inclusion = ""
# Start counting values on all files
- for line in info[1:]:
+ for line in info:
+ if len(line) == 1:
+ reftime = int(line[0])
+ continue
+
for pattern in params['precompiled_patterns']:
inclusion, exclusion = pattern
inclusion_tmp = fileinfo_process_date(inclusion,reftime)
Module: check_mk
Branch: master
Commit: 656018394f4d9295f231ce2ffd5727e20530160d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=656018394f4d92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 26 10:25:51 2016 +0200
Fixed typos in help texts
---
web/plugins/wato/check_parameters.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 7e09876..9e67552 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -731,8 +731,8 @@ register_check_parameters(
],
),
sameline = True,
- label = _("Levels device not responding"),
- none_label = _("Not responding levels not set"),
+ label = _("Levels for <i>device not responding</i>"),
+ none_label = _("No levels set"),
none_value = (None, None)
),
],
@@ -8402,8 +8402,8 @@ register_check_parameters(
default_value = "on"
),
TextAscii(
- title = _("Plug Item number or name"),
- help = _("If you need the number or the name depends on the check. Just take a look to the service description. "),
+ title = _("Plug item number or name"),
+ help = _("Whether you need the number or the name depends on the check. Just take a look to the service description."),
allow_empty = True),
match_type = "first",
)
Module: check_mk
Branch: master
Commit: d9698dd36c2a610b18a99ffa901156cd4534fb6c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d9698dd36c2a61…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 26 09:34:52 2016 +0200
Fixed typo in help message
---
web/plugins/wato/check_parameters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index edc8c1b..7e09876 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1977,7 +1977,7 @@ process_level_elements = [
title = _("Enable per-process details in long-output"),
label = _("Enable per-process details"),
help = _("If active, the long output of this service will contain a list of "
- "all the matching processes and their details (i.e. pid, cpu usage, memory usage. "
+ "all the matching processes and their details (i.e. PID, CPU usage, memory usage). "
"Please note that HTML output will only work if \"Escape HTML codes in plugin output\" is "
"disabled in global settings. This might expose you to Cross-Site-Scripting (everyone "
"with write-access to checks could get scripts executed on the monitoring site in the context "