16.4 Log Files

NCS normally writes log messages to /var/log/messages.

NCS installation writes log messages to /var/opt/novell/install/ncslog.

NCS configuration writes log messages to /var/log/YaST2/y2log.

You can view cluster events logged in the /admin/Novell/Cluster/EventLog.xml file by using the Clusters plug-in for iManager. Go to Clusters > My Clusters, select the cluster, then click Event Log. See Section 9.6, Viewing the Cluster Event Log in iManager.

You can also copy the /admin/Novell/Cluster/EventLog.xml file to a working location, and then use the cat command to display the file. See Section 9.7, Viewing the Cluster Event Log at the Command Line.

NCS writes cluster resource runtime messages to files under /var/opt/novell/log/ncs/. Output log files are named with the resource name, the type of script (load, unload, or monitor), and the .out extension (<resource_name>.<load|unload|monitor>.out). For example: /var/opt/novell/log/ncs/myresource.unload.out reports the log for the myresource unload script messages.

At /etc/logrotate.d/novell-ncs-monitor-log, you can configure settings for log rotation. By default, the monitor.out files are rotated every mid-night. The monitor.out files are compressed and stored at /var/opt/novell/log/ncs/archives. A file once rotated is saved in the system for 365 days. The Administrator has to manage disk usage.

In OES 11 SP2 and later, you can print summaries of failed or incomplete events in the *.out log files by copying the file to a working location and using the DotOutParser utility. See Section A.5, DotOutParser Utility.