Module: check_mk
Branch: master
Commit: 4a2e6c1e222c64b386c45df2ea3cccf7041975b3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4a2e6c1e222c64…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 9 10:57:37 2013 +0200
Added title of tests to LDAP diagnose table
---
ChangeLog | 1 +
web/htdocs/wato.py | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8f9a4e4..e29eb9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
* FIX: add missing service icons to view "All Services with this descr..."
* FIX: ldap attribute plugins: fixed crash when parameters are None
* FIX: avoid duplicate output of log message in log tables
+ * Added title of tests to LDAP diagnose table
WATO:
* Rule "State and count of processes": New configuration options:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index daed091..61992b4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5546,18 +5546,18 @@ def mode_ldap_config(phase):
return (False, msg)
tests = [
- test_connect,
- test_user_base_dn,
- test_user_count,
- test_group_base_dn,
- test_group_count,
+ (_('Connect'), test_connect),
+ (_('User Base-DN'), test_user_base_dn),
+ (_('Count Users'), test_user_count),
+ (_('Group Base-DN'), test_group_base_dn),
+ (_('Count Groups'), test_group_count),
]
for address in userdb.ldap_servers():
html.write('<h3>%s: %s</h3>' % (_('Server'),
address))
table.begin('test', searchable = False)
- for test in tests:
+ for title, test in tests:
table.row()
try:
state, msg = test(address)
@@ -5570,6 +5570,7 @@ def mode_ldap_config(phase):
else:
img = '<img src="images/icon_failed.gif"
alt="%s" />' % _('Failed')
+ table.cell(_("Test"), title)
table.cell(_("State"), img)
table.cell(_("Details"), msg)