Contained WithinFind More DocumentationFeatured Support Resources | PDF로 이 문서 다운로드 (3910 KB)
Chapter 3 Directory Server MonitoringFor information about monitoring Directory Server, see the following sections. Ways to Monitor Directory ServerDirectory Server can be monitored in the following ways:
Directory Server and SNMPDirectory Server implements the dsTable and the dsApplIfOpsTable of the Directory Server Monitoring MIB defined by RFC 2605. It does not implement the dsIntTable. Directory Server also implements the Network Services Monitoring MIB defined by RFC 2788. Directory Server support for SNMP has the following limitations.
This rest of this section explains how the information flows from the monitoring application to Directory Server and back, particularly in the case where you use SNMP. The SNMP interface is exposed by Java ES MF. See the Sun Java Enterprise System 5 Monitoring Guide for details. The monitoring framework is contained within the Common Agent Container, cacao, which is installed alongside Directory Server. Figure 3–1 shows the monitoring framework. Figure 3–1 Overall Monitoring Information Flow
SNMP support for monitoring Directory Server is managed by a Directory Server agent in the Common Agent Container. On Directory Server startup, the Monitoring server plug-in registers theDirectory Server instance with the Directory Server agent within the Common Agent Container. Figure 3–2 shows how SNMP information about Directory Server flows through the Common Agent Container. Figure 3–2 SNMP Information Flow
SNMP information about Directory Server flows as follows. Directory Server and CMM/JMXDirectory Server supports monitoring through JMX, which is exposed by Java ES MF. See the Sun Java Enterprise System 5 Monitoring Guide for details on the interface itself. The monitoring framework is contained within the Common Agent Container, cacao, which is installed alongside Directory Server. Figure 3–1 shows the monitoring framework. The information flow for JMX is similar to the flow shown for SNMP in Figure 3–2. The monitoring information exposed through JMX is organized according to the Common Monitoring Information and Data Model, CMM. CMM allows applications exposing their monitoring information to associate human-readable descriptions with the individual counters and other information. CMM is therefore meant to be self-documenting. Directory Server implements the following CMM classes.
When examining the content of the monitoring information, notice that CMM_ServiceAccessURI is implemented not only for LDAP and for LDAPS, but also for DSML/HTTP or DSML/HTTPS if the DSML front end has been enabled. Java ES Monitoring Console offers a browser-based user interface to examine the information exposed. See the Sun Java Enterprise System 5 Monitoring Guide for instructions on preparing the Monitoring Console for use. Directory ServerMonitoring AttributesRead-only monitoring information is stored under the cn=monitor entry. cn=monitorThe cn=monitor entry is an instance of the extensibleObject object class. For cn=monitor configuration attributes to be taken into account by the server, this object class, in addition to the top object class, is present in the entry. The cn=monitor read-only attributes are presented in this section. backendMonitorDNDN for each Directory Server backend. For further database monitoring information, refer to dse.ldif(4). bytesSentNumber of bytes sent by Directory Server. cache-avail-bytesThe number of bytes available for caching. connectionList of open connections given in the following format: connection=31:20010201164808Z:45:45::cn=admin,cn=Administrators,cn=config:LDAP
connectionPeakMaximum number of simultaneous connections since server startup. currentConnectionsNumber of current Directory Server connections. currentTimeCurrent time usually given in Greenwich Mean Time, indicated by GeneralizedTime syntax Z notation, for example 20010202131102Z. dTableSizeSize of the Directory Server descriptor table. entriesSentNumber of entries sent by Directory Server. nbackEndsNumber of Directory Server backends. opsCompletedNumber of Directory Server operations completed. opsInitiatedNumber of Directory Server operations initiated. request-que-backlogThe number of requests waiting to be processed by a thread. Each request received by the server is accepted, then placed in a queue until a thread is available to process it. The queue backlog should always be small, 0 or close to 0. If the queue backlog is large, use the nsslapd-threadnumber attribute to increase the number of threads available in the server. readWaitersNumber of connections where some requests are pending and not currently being serviced by a thread in Directory Server. currentpsearchesNumber of persistent searches currently running on the server. You can set a maximum number of persistent searches on the server by using the command dsconf set-server-prop max-psearch-count:number. startTimeDirectory Server start time. threadsNumber of operation threads Directory Server creates during startup. This attribute can be set using the nsslapd-threadnumber attribute under cn=config. The nsslapd-threadnumber attribute is not present in the configuration by default, but can be added. totalConnectionsTotal number of Directory Server connections. versionDirectory Server version and build number. cn=disk,cn=monitorThe cn=disk entry enables you to monitor disk conditions over LDAP. This entry is an instance of the extensibleObject object class. A cn=disknumber,cn=disk,cn=monitor entry exists for each disk. The following disk monitoring attributes appear under each of these individual disk entries. disk-dirSpecifies the pathname of a directory used by the server on disk. Where several database instances reside on the same disk or an instance refers to several directories on the same disk, the short pathname is displayed. The disk numbering is arbitrary. disk-freeIndicates the amount of free disk space available to the server, in MB. Note – The disk space available to the server process may be less than the total free disk space. For example, on some platforms a process that is not running as root may not have all the free disk space available to it. disk-stateIndicates the state of the disk, based on the available free space and on the thresholds set for disk low and disk full with the configuration parameters nsslapd-disk-low-threshold and nsslapd-disk-full-threshold. Possible values are normal, low, and full. cn=counters,cn=monitorThis entry holds counter information for the various subtree entry counter plug-ins, if they are enabled. cn=monitor,cn=Class of Service,cn=plugins, cn=configThis entry holds counters related to the Class of Service plug-in. This entry is an instance of the extensibleObject object class. classicHashAvgClashListLengthWhen the CoS plug-in uses the hash table for fast lookup, if more than one classic CoS template corresponds to the hash key used, the plug-in next checks for matches in what is called the clash list, a list of templates sharing an identical hash key. The value of this attribute provides the average length across all hash tables of classic CoS template clash lists, giving some indication of how much linear searching the plug-in must perform after using the hash table during fast lookup. classicHashAvgClashPercentagePerHashThe average number of clashes per hash table. That is, the average percentage per hash of classic CoS templates sharing an identical hash key. classicHashMemUsageThe memory overhead in bytes to hold hash tables for fast classic CoS template lookups. classicHashValuesMemUsageThe memory in bytes used to hold hash values for fast classic CoS template lookups. numClassicDefinitionsThe number of classic CoS definition entries in use. numClassicHashTablesThe number of hash tables created for fast lookup where more than 10 classic CoS templates apply for a single CoS definition. Hash tables are not created for smaller lists of templates. numClassicTemplatesThe number of classic CoS template entries in use. numCoSAttributeTypesThe number of distinct attributes with values calculated through CoS. numIndirectDefinitionsThe number of indirect CoS definition entries in use. numPointerDefinitionsThe number of pointer CoS definition entries in use. numPointerTemplatesThe number of pointer CoS template entries in use. |