root@wl ~ # wget "http://downloads.sourceforge.net/project/logwatch/logwatch-7.3.6.tar.gz?use_mirror=cdnetworks-kr-2" root@wl ~ # tar xvfz logwatch-7.4.0.tar.gz root@wl ~ # cd logwatch-7.4.0 root@wl ~/logwatch-7.4.0 # 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.4.0 # vi /usr/share/logwatch/default.conf/logwatch.conf1) root@wl ~/logwatch-7.4.0 # crontab -e2) 2 0 * * * /usr/share/logwatch/scripts/logwatch.pl >/dev/null 2>&11) 필요한 설정은 여기서 바꾼다. 바꾸지 않으면 root 로 메일을 보낸다.
root@wl ~ # /usr/sbin/logwatch
################### Logwatch 7.4.0 (03/01/11) ####################
Processing Initiated: Wed May 25 10:12:02 2011
Date Range Processed: yesterday
( 2011-May-24 )
Period is day.
Detail Level of Output: 0
Type of Output/Format: stdout / text
Logfiles for Host: wl
##################################################################
--------------------- ZFS Report Begin ------------------------
Total ZFS pools: 1
Total filesystems: 6 (6 mounted)
Total snapshots: 0
Total volumes: 2
------------------- ZFS Pool Summary -------------------
Pool Name Size (MiB) Used (MiB) Free (MiB) Dedup
rpool 113664.0 17510.4 96153.6 1.00x 15%
--------------------------------------------------------
---------------------- ZFS Report End -------------------------
###################### Logwatch End #########################
|
|
Copyright © 2004-2012 Jo HoSeok. All rights reserved. |