root@wl ~ # wget http://www.stellarcore.net/logwatch/pub/linux/logwatch-7.3.6.tar.gz root@wl ~ # gtar xvfz logwatch-7.3.6.tar.gz root@wl ~ # cd logwatch-7.3.6 root@wl ~/logwatch-7.3.6 # sh install_logwatch.sh ################################# Preparing to install Logwatch Enter the path to the Logwatch BaseDir [/usr/share/logwatch] : ### Using /usr/share/logwatch Enter the path for the Logwatch ConfigDir [/etc/logwatch] : ### Using /etc/logwatch Enter the dir name to be used for temp files [/var/cache/logwatch] : ### Using /var/cache/logwatch Enter the location of perl [/usr/bin/perl] : ### Using /usr/bin/perl Enter the dir name to used for the manpage [/usr/share/man] : ### Using /usr/share/man ### Installing Created symlink for /usr/sbin/logwatch You need to setup your cron job for logwatch, something like 2 0 * * * /usr/share/logwatch/scripts/logwatch.pl >/dev/null 2>&1 root@wl ~/logwatch-7.3.6 # vi /usr/share/logwatch/default.conf/logwatch.conf1) root@wl ~/logwatch-7.3.6 # crontab -e2) 2 0 * * * /usr/share/logwatch/scripts/logwatch.pl >/dev/null 2>&11) 필요한 설정은 여기서 바꾼다. 바꾸지 않으면 root 로 메일을 보낸다.
|
|
Copyright © 2004-2010 Jo HoSeok. All rights reserved. |