Module: check_mk
Branch: master
Commit: 550a98739417add1d6bfafb72bfbebd77949edde
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=550a98739417ad…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 28 15:28:31 2013 +0200
Vizualizing ldap sync fail status for permitted users in page footers
---
web/htdocs/images/status_ldap.png | Bin 0 -> 5593 bytes
web/htdocs/views.py | 7 +++++++
2 files changed, 7 insertions(+)
diff --git a/web/htdocs/images/status_ldap.png b/web/htdocs/images/status_ldap.png
new file mode 100644
index 0000000..681ed2d
Binary files /dev/null and b/web/htdocs/images/status_ldap.png differ
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 9089ad7..9b7e035 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1541,6 +1541,13 @@ def render_view(view, rows, datasource, group_painters, painters,
if bi.reused_compilation():
html.add_status_icon("aggrcomp", _("Reused cached compiled BI
aggregations (PID %d)") % pid)
+ if config.may('wato.users'):
+ try:
+ msg = file(defaults.var_dir + '/web/ldap_sync_fail.mk').read()
+ html.add_status_icon("ldap", _('Last LDAP sync failed!
%s') % html.attrencode(msg))
+ except IOError:
+ pass
+
html.bottom_focuscode()
if 'Z' in display_options:
html.bottom_footer()