Thursday, 6 August 2009

How to Install LogWatch








1. Login to your server as root, go to root-folder:

cd /root

----------------------------------------------------

2. Remove existing Logwatch by typing:

rpm -e logwatch

----------------------------------------------------

3. Download latest stable logwatch (please note, later on you have to check for the latest version from LogWatch website, www2.logwatch.org)

wget ftp://ftp.kaybee.org/pub/redhat/RPMS/noarch/logwatch-7.3.6-1.noarch.rpm

----------------------------------------------------

4. Install LogWatch with the following command:

rpm -i logwatch-7.3.6-1.noarch.rpm

----------------------------------------------------

5. Edit the LogWatch configuration file:

nano -w /usr/share/logwatch/default.conf/logwatch.conf

A) Scroll down to:

MailTo = root

and replace root with your email address.

B) Scroll down:

Detail=Low

and replace Low to Medium or High.

Save and exit.

----------------------------------------------------

6) You can test your new installation by running the following command:

/usr/share/logwatch/scripts/logwatch.pl --range today

Others:
/usr/share/logwatch/scripts/logwatch.pl --range Yesterday
/usr/share/logwatch/scripts/logwatch.pl --range All




No comments:

Post a Comment