본문 바로가기

0과 1 그 끝없는 세상/IBM AIX

[syslog-ng] How to install syslog-ng on AIX 5.3 [English]

0. System Specification
OS : AIX 5.3 TL08

1. What is syslog-ng?
Check this link : Click

2. Download syslog-ng package.
- Download from the homepage : click
- Download from this blog
3. Install packages by following order, according to dependencies.
rpm -ivh bash-4.1-4.aix5.1.ppc.rpm
rpm -ivh openssl-0.9.8o-1.aix5.1.ppc.rpm
rpm -ivh openssl-devel-0.9.8o-1.aix5.1.ppc.rpm
rpm -ivh openssl-doc-0.9.8o-1.aix5.1.ppc.rpm
rpm -ivh zlib-1.2.4-1.aix5.1.ppc.rpm
rpm -ivh zlib-devel-1.2.4-1.aix5.1.ppc.rpm
rpm -ivh expat-2.0.1-2.aix5.1.ppc.rpm
rpm -ivh expat-devel-2.0.1-2.aix5.1.ppc.rpm
rpm -ivh bzip2-1.0.5-1.aix5.1.ppc.rpm
rpm -ivh bzip2-devel-1.0.5-1.aix5.1.ppc.rpm
rpm -ivh gettext-0.17-1.aix5.1.ppc.rpm --nodeps
rpm -ivh readline-6.1-3.aix5.1.ppc.rpm
rpm -ivh readline-devel-6.1-3.aix5.1.ppc.rpm
rpm -ivh pcre-8.10-2.aix5.1.ppc.rpm
rpm -ivh pcre-devel-8.10-2.aix5.1.ppc.rpm
rpm -ivh glib2-2.22.5-1.aix5.1.ppc.rpm
rpm -ivh eventlog-devel-0.2.10-1.aix5.1.ppc.rpm
rpm -ivh syslog-ng-3.0.5-1.aix5.1.ppc.rpm

4. After install "syslog-ng-3.0.501.aix5.1.ppc.rpm", you will see the message that the subsystem has started.
- It's not true, even though you see "syslog-ng" in the subsystem list, but it is not operative.
# lssrc -a |grep syslog-ng
- During installation, original syslogd will be disappeared. Don't worry. If you remove syslog-ng, it will appear again. :)

5. Set configurations.
- Configure
# /etc/syslog-ng/syslog-ng.conf
sample) local syslog and remote log

6. Start/Stop
- In the manual, there should be /etc/rc.d/init.d/syslog-ng BUT doesn't exist.
- To stop the service, you can just kill the process
# ps -ef |grep syslog-ng
# kill -9 ######
- To start the service, use this command, if there are wrong statements in /etc/syslog-ng/syslog-ng.conf, you will see error message and it will not work.
# /sbin/syslog-ng

7. You will see logs.