المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to Install LogWatch - تركيب أداة LogWatch لمراقبة سيرفرك



A7med Baraka
11-16-2009, 08:49 PM
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. by Ctrl+x

----------------------------------------------------
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

Your all done!

Lost
11-23-2009, 12:51 PM
جميل جدا
رائع