From: Gavin Henry Date: Fri, 11 Jul 2008 16:15:47 +0000 (+0000) Subject: slapd-monitor X-Git-Tag: LOCKER_IDS~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=97351bab52a512ffc8e7e45b671a2b5d22698ab4;p=openldap slapd-monitor --- diff --git a/doc/guide/admin/backends.sdf b/doc/guide/admin/backends.sdf index ee25a73061..dfd9d6c11c 100644 --- a/doc/guide/admin/backends.sdf +++ b/doc/guide/admin/backends.sdf @@ -174,7 +174,60 @@ See the {{SECT:Monitoring}} section. H3: back-monitor Configuration -LATER +The monitor database can be instantiated only once, i.e. only one occurrence +of "database monitor" can occur in the {{slapd.conf(5)}} file. Also the suffix +is automatically set to {{"cn=Monitor"}}. + +You can however set a {{rootdn}} and {{rootpw}}. The following is all that is +needed to instantiate a monitor backend: + +> include ./schema/core.schema +> +> modulepath /usr/local/libexec/openldap +> moduleload back_monitor.la + +> database monitor +> rootdn "cn=monitoring,cn=Monitor" +> rootpw monitoring + +You can also apply Access Control to this database like any other database, for +example: + +> access to dn.subtree="cn=Monitor" +> by dn.exact="uid=Admin,dc=my,dc=org" write +> by users read +> by * none + +Note: The {[F: core.schema}} must be loaded for the monitor database to work. + +A small example of the data returned via {{ldapsearch}} would be: + +> ldapsearch -x -H ldap://localhost:9011 -b 'cn=Monitor' +> # extended LDIF +> # +> # LDAPv3 +> # base with scope subtree +> # filter: (objectclass=*) +> # requesting: ALL +> # +> +> # Monitor +> dn: cn=Monitor +> objectClass: monitorServer +> cn: Monitor +> description: This subtree contains monitoring/managing objects. +> description: This object contains information about this server. +> description: Most of the information is held in operational attributes, which +> must be explicitly requested. +> +> # Backends, Monitor +> dn: cn=Backends,cn=Monitor +> objectClass: monitorContainer +> cn: Backends +> description: This subsystem contains information about available backends. + +Please see the {{SECT: Monitoring}} section for complete examples of information +available via this backend. H3: Further Information