Tell each cluster machine to log to (at least) syslog local7. Change /etc/ha.d/ha.cf on each test machine to say this:
In addition, you can also log to a dedicated local file with the logfile directive if you want to.
Change /etc/syslog.conf to redirect local7 on each of your cluster machines to redirect to your testmonitor-machine by adding this line somewhere near the top of /etc/syslog.conf
Change syslog on the testmonitor-machine to accept remote logging requests. You do this by making sure it gets invoked with the -r option. On SuSE Linux or United Linux you need to change /etc/rc.config or /etc/sysconfig/syslog to have this line for SYSLOGD_PARAMS:
SYSLOGD_PARAMS="-r"You'll have to restart syslog after putting these parameters into effect.
Change on the testmonitor-machine to redirect messages from local7 into /var/log/ha-log-local7 by adding this line to /etc/syslog.conf:
local7.* -/var/log/ha-log-local7and then restart syslog. On SuSE (and others) run this command:
/etc/init.d/syslog restartUse the corresponding function for your distro.