|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
Those notes were created based on my experience in integration of syslg-ng in the Tivoli environment. Although I tried to clean them to make the how-to more universally applicable, some details might still be relevant only to this particular purpose.
libol 0.3.13
syslog-ng1.6.4 or later
mkdir syslog-ng
ftp both packages
cd ~/syslog-ng
gunzip
libol-0.3.13-sol9-sparc-local.gz
pkgadd -d
libol-0.3.13-sol9-sparc-local.gz
| tee ~/syslog-ng/libol.log
cd /etc
mkdir /etc/syslog-ng
chmod 755 /etc/syslog-ng
chown root:sys /etc/syslog-ng
cp /usr/local/doc/syslog-ng/doc/syslog-ng.conf.solaris /etc/syslog-ng/syslog-ng.conf #
Use attached scriptchmod 644 /etc/syslog-ng/syslog-ng.conf && chown root:sys /etc/syslog-ng/syslog-ng.conf
mv /etc/syslog.conf /etc/syslog.cong.orig
ln -s /etc/syslog-ng/syslog-ng.conf /etc/syslog.conf
cp /usr/local/doc/syslog-ng/contrib/init.d.solaris /etc/init.d/syslog
# get solaris startup scriptchmod 744 /etc/init.d/syslog && chown root:sys /etc/init.d/syslog
/usr/local/sbin/syslog-ng
-v -s -f /etc/syslog-ng/syslog-ng.conf
/etc/init.d/syslog.orig stop
cp /etc/logadm.conf /etc/sysadm.conf.origvi /etc/sysadm.conf.org
then replace all
'kill -HUP `cat /var/run/syslog.pid`'
to
'kill -HUP `cat /etc/syslog-ng/syslog-ng.pid`'
using for example vi (or ed) command :
g/\/var\/run\/syslog\.pid/s/\/var\/run\/syslog\.pid/\/etc\/syslog\-ng\/syslog\-ng\.pid/g
logger -p daemon.crit syslog-ng test
Check tail of /var/adm/messages. It should have a line like:
Feb 17 18:37:55 tivoliada daemon: [ID 702911 daemon.crit]
Supplement 1: Modified /etc/init.d/syslog
Supplement 2: Modified /etc/syslog-ng/syslog-ng.conf
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: February 28, 2008