Bug 49291 - Improve MDB size check by subtracting the "Free pages" number from the used pages
Improve MDB size check by subtracting the "Free pages" number from the used p...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-8-errata
Assigned To: Fabian Wilhelm
Arvid Requate
:
Depends on:
Blocks: 54186
  Show dependency treegraph
 
Reported: 2019-04-15 12:25 CEST by Arvid Requate
Modified: 2021-12-08 17:34 CET (History)
1 user (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?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018081521001625, 2021111321000073
Bug group (optional): bitesize
Max CVSS v3 score:
requate: Patch_Available+


Attachments
Bug49291.patch (1.30 KB, patch)
2021-02-05 18:47 CET, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2019-04-15 12:25:24 CEST
Via Ticket#2018081521001625 a customer proposed to improve the calculation for the Nagios MDB size check by subtracting the "Free pages" number from the used pages number output by mdb_stat.
Comment 1 Florian Best univentionstaff 2019-04-15 12:33:45 CEST
What is the "Free pages" number? I don't see it:

# /usr/bin/mdb_stat -e  /var/lib/univention-ldap/translog/
Environment Info
  Map address: (nil)
  Map size: 2147483648
  Page size: 4096
  Max pages: 524288
  Number of pages used: 2610
  Last transaction ID: 10448
  Max readers: 126
  Number of readers used: 6
Status of Main DB
  Tree depth: 1
  Branch pages: 0
  Leaf pages: 1
  Overflow pages: 0
  Entries: 3
Comment 2 Arvid Requate univentionstaff 2019-04-15 13:02:58 CEST
mdb_stat -f  /var/lib/univention-ldap/ldap/
Comment 3 Arvid Requate univentionstaff 2021-02-05 18:47:44 CET
Created attachment 10612 [details]
Bug49291.patch

Here you go
Comment 5 Fabian Wilhelm univentionstaff 2021-12-02 12:51:27 CET
univention-nagios.yaml
4df27e453bf0 | Bug #49291: update YAML for univention-nagios
31f6af392457 | Bug #49291: free pages subtracted from used pages

univention-nagios (12.0.1-14)
31f6af392457 | Bug #49291: free pages subtracted from used pages
Comment 6 Arvid Requate univentionstaff 2021-12-03 14:22:37 CET
Verified:
* Code review
* Package update
* Functional test
* Advisory

Minor Advisory fix:
9a00a54815 | Fix trailing whitespace