Module: check_mk
Branch: master
Commit: aca03d362b5bf93721cbe155d8677ff4037680aa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aca03d362b5bf9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 8 14:55:41 2017 +0200
8656 FIX Button "All Logfiles" in logwatch user interface now works in distributed mode
The problem was that this button would only show the log files that are on
the same monitoring site as the currently shown log file or host. This problem
only appeared in a distributed environment.
Change-Id: I1a47413d15098458228a28c06cde9f12553f9896
---
.werks/8656 | 13 +++++++++++++
web/htdocs/logwatch.py | 10 +++++++---
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/.werks/8656 b/.werks/8656
new file mode 100644
index 0000000..c653a30
--- /dev/null
+++ b/.werks/8656
@@ -0,0 +1,13 @@
+Title: Button "All Logfiles" in logwatch user interface now works in distributed mode
+Level: 2
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496926447
+
+The problem was that this button would only show the log files that are on
+the same monitoring site as the currently shown log file or host. This problem
+only appeared in a distributed environment.
diff --git a/web/htdocs/logwatch.py b/web/htdocs/logwatch.py
index 6139054..f6bf93b 100644
--- a/web/htdocs/logwatch.py
+++ b/web/htdocs/logwatch.py
@@ -70,6 +70,10 @@ def page_show():
show_host_log_list(site, host_name)
+def button_all_logfiles():
+ html.context_button(_("All Logfiles"), html.makeuri([('site', ''), ('host', ''), ('file', '')]))
+
+
# Shows a list of all problematic logfiles grouped by host
def show_log_list():
html.header(_("All Problematic Logfiles"), stylesheets = stylesheets)
@@ -106,7 +110,7 @@ def show_host_log_list(site, host_name):
html.begin_context_buttons()
html.context_button(_("Services"), services_url(site, host_name), 'services')
- html.context_button(_("All Logfiles"), html.makeuri([('site', ''), ('host', ''), ('file', '')]))
+ button_all_logfiles()
html.context_button(_("Analyze host patterns"), analyse_url(site, host_name), 'analyze')
ack_button(site, host_name)
html.end_context_buttons()
@@ -163,7 +167,7 @@ def show_file(site, host_name, file_name):
html.begin_context_buttons()
html.context_button(_("Services"), services_url(site, host_name), 'services')
html.context_button(_("All Logfiles of Host"), html.makeuri([('file', '')]))
- html.context_button(_("All Logfiles"), html.makeuri([('host', ''), ('file', '')]))
+ button_all_logfiles()
html.context_button(_("Analyze patterns"), analyse_url(site, host_name, file_name), 'analyze')
if html.var('_hidecontext', 'no') == 'yes':
@@ -284,7 +288,7 @@ def do_log_ack(site, host_name, file_name):
html.header(_("Acknowledge %s") % ack_msg, stylesheets = stylesheets)
html.begin_context_buttons()
- html.context_button(_("All Logfiles"), html.makeuri([('host', ''), ('file', '')]))
+ button_all_logfiles()
if host_name:
html.context_button(_("All Logfiles of Host"), html.makeuri([('file', '')]))
if host_name and file_name:
Module: check_mk
Branch: master
Commit: 8404a15514ccfb8abddc38be0524a628c7904f86
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8404a15514ccfb…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jun 8 13:59:47 2017 +0200
4793 FIX chrony: Changed to raw IP address without dns name to avoid empty output
The output has been empty if the timeout was reached. This fix speeds up the
computation time since the reverse DNS lookup for the IP address is skipped.
Change-Id: Ie181ba88ce685800ce0d4b7c291a08e6461e563a
---
.werks/4793 | 11 +++++++++++
agents/check_mk_agent.linux | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4793 b/.werks/4793
new file mode 100644
index 0000000..5e09387
--- /dev/null
+++ b/.werks/4793
@@ -0,0 +1,11 @@
+Title: chrony: Changed to raw IP address without dns name to avoid empty output
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1496922905
+Class: fix
+
+The output has been empty if the timeout was reached. This fix speeds up the
+computation time since the reverse DNS lookup for the IP address is skipped.
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 9617379..00b4d00 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -560,7 +560,7 @@ fi
# Time synchronization with Chrony
if type chronyc > /dev/null 2>&1 ; then
# Force successful exit code. Otherwise section will be missing if daemon not running
- run_cached -s chrony 30 "waitmax 5 chronyc tracking || true"
+ run_cached -s chrony 30 "waitmax 5 chronyc -n tracking || true"
fi
if type nvidia-settings >/dev/null && [ -S /tmp/.X11-unix/X0 ]
Module: check_mk
Branch: master
Commit: b0488c4cf3fe133af79c559290e90b42a846078f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0488c4cf3fe13…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Jun 8 14:14:15 2017 +0200
4799 FIX printer_input: Make check work with newer revisions of the Printer-MIB
An extension of the syntax for the capacity unit was previously not handled
by the check. This has been fixed.
Change-Id: I2051c5847c2abb1fb81f4e22a3cbaf86fa267add
---
.werks/4799 | 13 +++++++++++++
checks/printer_io.include | 1 +
2 files changed, 14 insertions(+)
diff --git a/.werks/4799 b/.werks/4799
new file mode 100644
index 0000000..726b2be
--- /dev/null
+++ b/.werks/4799
@@ -0,0 +1,13 @@
+Title: printer_input: Make check work with newer revisions of the Printer-MIB
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496923932
+
+An extension of the syntax for the capacity unit was previously not handled
+by the check. This has been fixed.
+
diff --git a/checks/printer_io.include b/checks/printer_io.include
index dc8c487..7762b91 100644
--- a/checks/printer_io.include
+++ b/checks/printer_io.include
@@ -27,6 +27,7 @@
printer_io_units = {
'-1' : 'unknown',
'0' : 'unknown',
+ '2' : 'unknown', # defined by PrtCapacityUnitTC used in newer revs.
'3' : '1/10000 in',
'4' : 'micrometers',
'8' : 'sheets',