This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

7th - 10th October 2008 Linux-Kongress in Hamburg will have several sessions on Linux-HA - see you there!

18 August 2008 Heartbeat release 2.1.4 is now out Download it

11 October 2007 NEW educational HA/DR Blog hosted by Alan Robertson

9 April 2007 Check out the Cool Heartbeat Screencasts: Installation, Intro to the GUI Part of the Heartbeat Education project

Last site update:
2008-11-21 20:38:08

How to redirect linux-HA logging the way CTS wants it using syslog

  • Tell each cluster machine to log to (at least) syslog local7. Change /etc/ha.d/ha.cf on each test machine to say this:

      logfacility local7

    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

      local7.*                          @testmonitor-machine
  • 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-local7
    and then restart syslog. On SuSE (and others) run this command:
      /etc/init.d/syslog restart
    Use the corresponding function for your distro.


CategoryHowto