LDAP monitoring backend and query available statistics

Referring the help article:
Howto: Activate LDAP monitoring backend and query available statistics"

below are some other useful LDAP monitoring metrics and statistics.

Note, check if below UCR variable is set:

ucr set ldap/monitor=true
systemctl restart slapd.service

Monitoring Operations/Metrics

Active Connections:
univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Connections,cn=Monitor' -s sub +

Operations Counts (Add, Delete, Modify, Compare, Search):

  • Add operations:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Add,cn=Operations,cn=Monitor' -s sub +

dn: cn=Add,cn=Operations,cn=Monitor
structuralObjectClass: monitorOperation
creatorsName:
modifiersName:
createTimestamp: 20241205125442Z
modifyTimestamp: 20241205125442Z
monitorOpInitiated: 91
monitorOpCompleted: 91
entryDN: cn=Add,cn=Operations,cn=Monitor
subschemaSubentry: cn=Subschema
hasSubordinates: FALSE

  • Delete operations:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Delete,cn=Operations,cn=Monitor' -s sub +

  • Modify operations:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Modify,cn=Operations,cn=Monitor' -s sub +

  • Compare operations:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Compare,cn=Operations,cn=Monitor' -s sub +

  • Search operations:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Search,cn=Operations,cn=Monitor' -s sub +

  • Bytes Sent:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Statistics,cn=Monitor' -s sub +

  • Thread Pool Stats (Max, Current, Backlog):
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Threads,cn=Monitor' -s sub +
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Backload,cn=Threads,cn=Monitor' -s sub +

  • Read & Write Waiters:
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Write,cn=Waiters,cn=Monitor' -s sub +
    univention-ldapsearch -LLL -x -D 'uid=Administrator,cn=users,dc=example,dc=com' -W -b 'cn=Read,cn=Waiters,cn=Monitor' -s sub +

1 Like
Mastodon