Skip to content

Commit

Permalink
issue#6992 - Add support for MDB database information
Browse files Browse the repository at this point in the history
Update the OpenLDAP plugin to be able to utilize the new information about the database state available in OpenLDAP 2.4.49 and later
  • Loading branch information
quanah committed Feb 6, 2020
1 parent 62ffd71 commit a118248
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/inputs/openldap/openldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,19 @@ const sampleConfig string = `

var searchBase = "cn=Monitor"
var searchFilter = "(|(objectClass=monitorCounterObject)(objectClass=monitorOperation)(objectClass=monitoredObject))"
var searchAttrs = []string{"monitorCounter", "monitorOpInitiated", "monitorOpCompleted", "monitoredInfo"}
var searchAttrs = []string{"monitorCounter", "monitorOpInitiated", "monitorOpCompleted", "monitoredInfo","monitorTimestamp"}
var attrTranslate = map[string]string{
"monitorCounter": "",
"monitoredInfo": "",
"monitorTimestamp": "",
"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 {
Expand Down

0 comments on commit a118248

Please sign in to comment.