Bug 43426 - TypeError: expected string or buffer in nagios listener module
TypeError: expected string or buffer in nagios listener module
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.3-3-errata
Assigned To: Julia Bremer
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-26 12:26 CET by Florian Best
Modified: 2019-01-16 13:25 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Proposed patch (576 bytes, patch)
2018-10-25 12:58 CEST, Jürn Brodersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-01-26 12:26:25 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)
Comment 1 Jürn Brodersen univentionstaff 2018-10-25 12:58:47 CEST
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)
Comment 2 Julia Bremer univentionstaff 2019-01-10 11:30:03 CET
85038fc624 | Fixed uncaught Type Error in nagios-server
a22bbebb53 | Version bump
f66de12fda | YAML
Comment 3 Arvid Requate univentionstaff 2019-01-10 12:27:40 CET
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}
Comment 4 Arvid Requate univentionstaff 2019-01-16 13:25:19 CET
<http://errata.software-univention.de/ucs/4.3/403.html>