HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

14 Monitoring Server and Database Activity
This chapter describes monitoring database and HP-UX Directory Server logs. For information on
using SNMP to monitor the Directory Server, see “Monitoring Directory Server Using SNMP” (page
531).
Topics include:
“Viewing and configuring log files” (page 508)
“Manual log file rotation” (page 513)
“Monitoring server activity” (page 519)
“Monitoring database activity” (page 524)
“Monitoring database link activity” (page 528)
“Enabling and disabling 64-bit integers for counters” (page 529)
14.1 Viewing and configuring log files
Directory Server provides three types of logs to help better manage the directory and tune
performance. There are three types of logs:
Access
Errors
Audit
For all types of logs, the log creation and log deletion policies have to be configured. The log
creation policy sets when a new log file is started, and the log deletion policy sets when an old
log file is deleted. The following sections describe how to define the log file creation and deletion
policy and how to view and configure each type of log.
NOTE:
When the server is not running, the log files cannot be viewed in the Directory Server Console,
but they can be viewed in the Admin Express. Open the Administration Server URL in a browser:
http://hostname:admin_server_port
Then log in with the admin login ID and password, and click the link for HP Administration Express.
14.1.1 Defining a log file rotation policy
For the directory to archive the current log periodically and start a new one, define a log file
rotation policy in the Directory Server Console. The log file rotation policy has the following
configuration parameters:
The access mode or file permissions with which log files are to be created
The default value is 600. The valid values are any combination of 000 to 777, as they mirror
numbered or absolute UNIX file permissions. This value must be a combination of a 3-digit
number, the digits varying from 0 through 7:
0 None
1 Execute only
2 Write only
3 Write and execute
4 Read only
5 Read and execute
508 Monitoring Server and Database Activity