Issue 9154 - RFE: Number of entries in MDB database in cn=monitor
Summary: RFE: Number of entries in MDB database in cn=monitor
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-17 15:11 UTC by Michael Ströder
Modified: 2020-01-30 18:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Ströder 2020-01-17 15:11:50 UTC
Full_Name: Michael Str.der
Version: master
OS: 
URL: 
Submission from: (NULL) (213.240.182.99)


As a system engineer I want to see the number of entries within a mdb database
in the monitoring (e.g. to alarm unusual fast changes due to false deletions).

While one can use mdb_stat or other custom scripts to monitor the number of
entries of the id2e sub-DB this requires read access to the MDB environment. But
for security reasons this should be avoided.

olmMDBDatabase entries in cn=monitor already have attributes for MDB page
counts.
The number of entries could be added there as attribute 'olmMDBEntries' or
similar.
Comment 1 Howard Chu 2020-01-18 12:54:02 UTC
michael@stroeder.com wrote:
> Full_Name: Michael Str.der
> Version: master
> OS: 
> URL: 
> Submission from: (NULL) (213.240.182.99)
> 
> 
> As a system engineer I want to see the number of entries within a mdb database
> in the monitoring (e.g. to alarm unusual fast changes due to false deletions).
> 
> While one can use mdb_stat or other custom scripts to monitor the number of
> entries of the id2e sub-DB this requires read access to the MDB environment. But
> for security reasons this should be avoided.
> 
> olmMDBDatabase entries in cn=monitor already have attributes for MDB page
> counts.
> The number of entries could be added there as attribute 'olmMDBEntries' or
> similar.

Added in git master


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 2 Michael Ströder 2020-01-18 15:40:07 UTC
On 1/18/20 1:54 PM, Howard Chu wrote:
> michael@stroeder.com wrote:
>> The number of entries could be added there as attribute 'olmMDBEntries' or
>> similar.
> 
> Added in git master

Great! Thank you.

Any chance to see it in RE24? At least the back-port patch seems to work
smoothly in my local test environment.

Ciao, Michael.

Comment 3 Quanah Gibson-Mount 2020-01-23 16:19:04 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Enhancements
Comment 4 OpenLDAP project 2020-01-30 18:32:22 UTC
Added to master
Added to RE24 (2.4.49)
Comment 5 Quanah Gibson-Mount 2020-01-30 18:32:22 UTC
changed notes
changed state Release to Closed