Bug 48617

Summary: Nagios mdb maxsize check to LDAP translog database on amd64
Product: UCS Reporter: Felix Botner <botner>
Component: Monitoring (Prometheus or Nagios)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Arvid Requate <requate>
Severity: normal    
Priority: P5 CC: best, requate
Version: UCS 4.3   
Target Milestone: UCS 4.4-0-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=49194
https://forge.univention.org/bugzilla/show_bug.cgi?id=48422
https://forge.univention.org/bugzilla/show_bug.cgi?id=47339
https://forge.univention.org/bugzilla/show_bug.cgi?id=50319
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: 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: qa.patch

Description Felix Botner univentionstaff 2019-02-05 16:54:28 CET
We should add a nagios check for the LDAP translog database. 

Maybe just add the test to the existing check_univention_slapd_mdb_maxsize (mdb_stat -e  /var/lib/univention-ldap/translog/)

And while we are at it, just add a test for /var/lib/univention-directory-listener/cache too.
Comment 1 Florian Best univentionstaff 2019-04-05 16:54:36 CEST
univention-nagios (12.0.1-5)
f8abb2c8e5b6 | Bug #48422: Bug #48617: add mdb check for UDL and translog database

univention-nagios.yaml
f8abb2c8e5b6 | Bug #48422: Bug #48617: add mdb check for UDL and translog database
Comment 2 Arvid Requate univentionstaff 2019-04-10 16:35:09 CEST
Created attachment 9963 [details]
qa.patch

Small suggestions from QA attached.

Note: The Nagios overview only shows the first line of the plugin output, but
I guess that's ok, because it outputs errors first. Also, the "Status Information" secion of the details page of the plugin shows all output lines.
Comment 3 Florian Best univentionstaff 2019-04-12 12:55:42 CEST
Thanks, patch applied in:
fe848f867b00 | Bug #48617: enhance output / error handling
Comment 4 Arvid Requate univentionstaff 2019-04-15 16:46:27 CEST
See Bug #48422 Comment 6:

On my updated system UNIVENTION_SLAPD_MDB_MAXSIZE is neither created as nagios/service in udm, nor is the master configured for this check. I think we should do this.
Comment 5 Florian Best univentionstaff 2019-04-15 21:54:12 CEST
OK, added and assign it.

univention-nagios (12.0.1-9)
43767b4c2b55 | Bug #48422: add slapd mdb nagios check in postinst
Comment 6 Arvid Requate univentionstaff 2019-04-15 22:08:22 CEST
Ok, works. I've updated the binary package version in the advisory:

54720cdaf7 | Advisory package version update
Comment 7 Erik Damrose univentionstaff 2019-04-17 14:08:41 CEST
<http://errata.software-univention.de/ucs/4.4/51.html>