HP XC System Software Administration Guide Version 3.1
3. Examine both template files in the global and regional directories to determine which template file
applies.
In this example, you must edit both template files.
4. Make a backup copy of the template file or files that you will modify.
# cp regional/syslog_ng_regional_template regional/template_backup
# cp global/syslog_ng_global_template global/template_backup
5. Use the editor of your choice to modify the template files.
IMPORTANT: Keep a record of the changes you make in the template files.
6. Use the shownode command to determine which nodes are the syslog-ng aggregator nodes. This
example assigns the node names to an environment variable.
# NODES=`shownode servers syslogng_forward`
7. Use the editor of your choice to make the same changes to the
/opt/hptc/syslog-ng/etc/syslog-ng/syslog-ng.conf file on each of the appropriate
syslog-ng aggregator nodes.
8. Restart the syslog-ng service on all the syslog-ng aggregator nodes:
# pdsh -w $NODES "service syslog-ng restart"
9. Update the golden image to ensure a permanent change. For more information on updating the golden
image, see Chapter 10 (page 129) .
7.7 The collectl Utility
The collectl utility collects data on the nodes of the HP XC system. As a development or debug tool,
the collectl utility typically gathers more detail more frequently than the supermon utility. The
collectl utility does have some overhead, but for most situations, it consumes less than 0.1 percent of
the CPU and has minimal effect on user applications. However, even this low level can have a significant
impact on some applications, so use the collectl utility with care.
The collectl utility also enables you to play back the data in either raw ASCII characters or in a plot
form, which can be used to display the data with GnuPlot or Microsoft Excel. Figure 7-3 shows one example
of the plotted graph based on the collectl utility's collection of CPU data. Example 7-1 (page 90)
provides an illustration of collectl utility's ASCII output.
Figure 7-3 Plotted Output from the collectl Utility
You can use any of the following methods to run the collectl utility:
• “Running the collectl Utility from the Command Line” (page 90)
• “Running the collectl Utility as a Service” (page 90)
• “Running the collectl Utility in a Batch Job Submission” (page 91)
7.7 The collectl Utility 89