Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3226
Manually
Configuring a
Serviceguard
Cluster as a Log
Forwarding Client
Configuring a Serviceguard cluster as a log forwarding client is similar to
configuring a single system. All cluster members must be up and
accessible before proceeding. You will first configure syslogd, then
syslog-ng.
Create the configuration files described below on every cluster member.
The simplest approach is to completely configure one member and then
copy each configuration file cluster-wide. The cexec and ccp tools can
simplify replicating changes cluster-wide.
Step 1. If you want the syslog messages for the cluster to be forwarded to the
log consolidator, do the following:
a. Start by configuring the standard syslogd to co-exist with a
syslog-ng forwarder. By default, syslogd listens for incoming log
messages on UDP port 514. To forward this cluster’s syslogs,
syslog-ng must listen on UDP port 514. Edit
/etc/rc.config.d/syslogd and change SYSLOGD_OPTS to add the
-N switch; this prevents syslogd from listening on port 514. For
example,
SYSLOGD_OPTS=“-D -N”
b. Edit the system’s /etc/syslog.conf file to forward log messages to port
514 on the local host where they will be read by syslog-ng. Using the
HP-UX default /etc/syslog.conf as the example, add the following
lines:
mail.debug @<fully qualified hostname>
*.info;mail.none @<fully qualified hostname>
where <fully qualified hostname> is the fully qualified hostname
of this cluster member. This name must be fully qualified or syslogd
will not forward the messages properly.
If you have customized syslog.conf, make sure to add the
forwarding lines for your customizations as well.
c. syslogd must be stopped and restarted for these changes to take
effect:
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
d. Since /etc/rc.config.d/syslogd is generic, it can be distributed
cluster-wide using ccp:
# cpp /etc/rc.config.d/syslogd /etc/rc.config.d/