View | Details | Raw Unified | Return to bug 45399
Collapse All | Expand All

(-)a/management/univention-management-console-module-diagnostic/umc/python/diagnostic/plugins/03_check_notifier_replication.py (-2 / +9 lines)
 Lines 34-40    Link Here 
34
import socket
34
import socket
35
35
36
import univention.config_registry
36
import univention.config_registry
37
from univention.management.console.modules.diagnostic import Warning
37
from univention.management.console.modules.diagnostic import Warning, Critical
38
38
39
from univention.lib.i18n import Translation
39
from univention.lib.i18n import Translation
40
_ = Translation('univention-management-console-module-diagnostic').translate
40
_ = Translation('univention-management-console-module-diagnostic').translate
 Lines 74-82   def run(_umc_instance): Link Here 
74
		with open('/var/lib/univention-directory-listener/notifier_id') as fob:
74
		with open('/var/lib/univention-directory-listener/notifier_id') as fob:
75
			id_from_file = fob.read().strip()
75
			id_from_file = fob.read().strip()
76
76
77
		if notifier_id < id_from_file:
78
			ed = [
79
				_('Univention Directory Notifier ID is lower than the locally stored ID.'),
80
				_('This indicates a rollback of the Master, this system needs to be re-joined.')
81
			]
82
			raise Critical('\n'.join(ed))
83
77
		if notifier_id != id_from_file:
84
		if notifier_id != id_from_file:
78
			ed = [
85
			ed = [
79
				_('Univention Directory Notifier ID and the locally stored version differ.'),
86
				_('Univention Directory Notifier ID and the locally stored ID differ.'),
80
				_('This might indicate an error or still processing transactions.')
87
				_('This might indicate an error or still processing transactions.')
81
			]
88
			]
82
			raise Warning('\n'.join(ed))
89
			raise Warning('\n'.join(ed))

Return to bug 45399