logwatch - WindyHana's Solanara

목차

개요

설치

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>&1
1) 필요한 설정은 여기서 바꾼다. 바꾸지 않으면 root 로 메일을 보낸다.
2) crontab 에 등록한다

실행

logwatch 는 수동으로 실행할 필요 없는 프로그램이지만, 확인 차원에서 아래와 같이 실행해볼 수 있다.
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 #########################
Twitter RSS IconTexto 올바른 XHTML 1.0 Transitional 입니다 올바른 CSS입니다!