From 704abfad8f6b9a9d6216a3c3b52f48c9aca06ea9 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 6 Feb 2020 11:41:05 -0800 Subject: [PATCH] issue#6992 - Add support for MDB database information Update the OpenLDAP plugin to be able to utilize the new information about the database state available in OpenLDAP 2.4.49 and later --- plugins/inputs/openldap/openldap.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/inputs/openldap/openldap.go b/plugins/inputs/openldap/openldap.go index a92a373712853..2bfbc3fac3849 100644 --- a/plugins/inputs/openldap/openldap.go +++ b/plugins/inputs/openldap/openldap.go @@ -56,6 +56,12 @@ var attrTranslate = map[string]string{ "monitoredInfo": "", "monitorOpInitiated": "_initiated", "monitorOpCompleted": "_completed", + "olmMDBPagesMax": "_mdb_pages_max", + "olmMDBPagesUsed": "_mdb_pages_used", + "olmMDBPagesFree": "_mdb_pages_free", + "olmMDBReadersMax": "_mdb_readers_max", + "olmMDBReadersUsed": "_mdb_readers_used", + "olmMDBEntries": "_mdb_entries", } func (o *Openldap) SampleConfig() string {