Univention Bugzilla – Bug 43426
TypeError: expected string or buffer in nagios listener module
Last modified: 2019-01-16 13:25:19 CET
Multifile: /etc/samba/smb.conf Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/nagios-server.py", line 711, in handler handleHost(dn, new, old) File "/usr/lib/univention-directory-listener/system/nagios-server.py", line 597, in handleHost grpname = re.sub(',\w+=', '_', result.group(1))[1:] File "/usr/lib/python2.7/re.py", line 155, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or buffer 26.01.17 00:32:05.156 LISTENER ( WARN ) : handler: nagios-server (failed)
Created attachment 9712 [details] Proposed patch Happens quite often in our test environment. This is a problem for hosts that are created directly under the ldap base. (The udm test lib does it that way)
85038fc624 | Fixed uncaught Type Error in nagios-server a22bbebb53 | Version bump f66de12fda | YAML
Verified: * 4.3-2: ** commit & changelog ** built (amd64, i386) ** advisory * 4.4-0: ** commit (68814a56af) & changelog ** built: 12.0.1-2A~4.4.0.201901101104 (amd64, i386) univention-nagios-{server,client,common}
<http://errata.software-univention.de/ucs/4.3/403.html>