Univention Bugzilla – Bug 55068
check_univention_joinstatus periodically causes high load on slapd
Last modified: 2022-08-05 12:35:07 CEST
check_univention_joinstatus from univention-monitoring-client periodically causes high load on slapd. Origin seems to be a typo in the ldapsearch options which should be fixed like htis: ========= diff --git a/monitoring/univention-monitoring-client/alerts/check_univention_joinstatus b/monitoring/univention-monitoring-client/alerts/check_univention_joinstatus index 9c5d8dab36..277f8077a6 100755 --- a/monitoring/univention-monitoring-client/alerts/check_univention_joinstatus +++ b/monitoring/univention-monitoring-client/alerts/check_univention_joinstatus @@ -97,7 +97,7 @@ class JoinStatusCheck(Alert): '-D', ucr['ldap/hostdn'], '-w', self.secret, '-b', ucr['ldap/base'], - 's', 'base' + '-s', 'base' ] try: subprocess.check_call(cmd, stdout=subprocess.DEVNULL) @@ -114,7 +114,7 @@ class JoinStatusCheck(Alert): '-D', ucr['ldap/hostdn'], '-w', self.secret, '-b', ucr['ldap/base'], - 's', 'base' + '-s', 'base' ] try: subprocess.check_call(cmd, stdout=subprocess.DEVNULL) @@ -133,7 +133,7 @@ class JoinStatusCheck(Alert): '-D', ucr['ldap/hostdn'], '-w', self.secret, '-b', ucr['ldap/base'], - 's', 'base' + '-s', 'base' ] try: subprocess.check_call(cmd, stdout=subprocess.DEVNULL) =====
Fixed typos as described above, should create smaller output, thus improve performance
839b85328e | Advisory: Add bug number Verified: * Code review * Package update * Advisory
<https://errata.software-univention.de/#/?erratum=5.0x379>