If you want a monitor, Nagios XI is a pretty affordable and effective way.  MDB monitoring is part of it.

 

From: Quanah Gibson-Mount <quanah@fast-mail.org>
Sent: Tuesday, May 7, 2024 11:56 AM
To: Benjamin Renard <brenard@easter-eggs.com>; openldap-technical@openldap.org
Subject: [EXTERNAL] Re: How to properly monitor MDB usage

 

--On Tuesday, May 7, 2024 6: 07 PM +0200 Benjamin Renard <brenard@ easter-eggs. com> wrote: > Hi, > > I'm looking for the right method to monitor the usage of an MDB database > according to the limit of its size imposed via the

 
 
--On Tuesday, May 7, 2024 6:07 PM +0200 Benjamin Renard 
<brenard@easter-eggs.com> wrote:
 
> Hi,
> 
> I'm looking for the right method to monitor the usage of an MDB database
> according to the limit of its size imposed via the parameter
> olcDbMaxSize. Currently, I am using the following command:
 
If you are using a modern version of OpenLDAP, you can simply query the 
monitor backend to get the necessary information to calculate usage, no 
need to use mdb_stat at all.
 
--Quanah