logwatch 는 RHEL/CentOS 에 탑재된 시스템 로그 모니터링 프로그램이다.

 

시스템 로그를 분석해서 결과를 email 로 전송해 주는데 이 기능이 필요하지 않다면 다음 절차로 중지할 수 있다.

 

방법1

logwatch 는 cron 이 날마다 수행하는 작업이 지정되어 있는 /etc/cron.daily/0logwatch 를 통해 실행되므로 /etc/cron.daily/0logwatch 파일을 백업후 삭제한다.

 

방법2

/usr/share/logwatch/default.conf/logwatch.conf 파일을 에디터로 열어서 DailyReport = No 로 설정한다. 

방법3

별도의 모니터링 솔루션을 사용하거나 할 경우에는 아예 logwatch 를 삭제하는 것도 방법이다.

 

yum -y remove logwatch
CODE

 

 

################### Logwatch 7.3.6 (05/19/07) #################### 
        Processing Initiated: Sat Apr 12 03:21:02 2014
        Date Range Processed: yesterday
                              ( 2014-Apr-11 )
                              Period is day.
      Detail Level of Output: 0
              Type of Output: unformatted
           Logfiles for Host: example.com
  ################################################################## 
 
 --------------------- Postfix Begin ------------------------ 

   10.134K  Bytes accepted                            10,377
    8.035K  Bytes delivered                            8,228
 ========   ================================================
 
        3   Accepted                                 100.00%
 --------   ------------------------------------------------
        3   Total                                    100.00%
 ========   ================================================
 
        3   Removed from queue    
        1   Sent via SMTP         
        1   Forwarded             
        1   Bounce (remote)       
        1   DSNs undeliverable    
 
 
 
 ---------------------- Postfix End ------------------------- 

 
 --------------------- Disk Space Begin ------------------------ 

 Filesystem            Size  Used Avail Use% Mounted on
 /dev/mapper/VolGroup-lv_root
                        50G  2.6G   45G   6% /
 /dev/sda1             485M   73M  387M  16% /boot
 /dev/mapper/VolGroup-lv_home
                        45G  991M   42G   3% /home
 
 
 ---------------------- Disk Space End ------------------------- 

 
 ###################### Logwatch End #########################