
누구든지 Linux RHEL 5 시스템에서 로그 감시 기능을 활성화 및 비활성화하는 방법을 공유해 주실 수 있습니까?
미리 감사드립니다.
답변1
Logwatch는 일반적으로 cron에 의해 시작됩니다.
logwatch를 실행하는 스크립트는 /etc/cron.daily/ 디렉토리를 확인하세요.
/etc/cron.daily/0logwatch
RHEL에는 다음을 가리키는 심볼릭 링크가 있습니다./usr/share/logwatch/scripts/logwatch.pl
logwatch가 매일 실행되는 것을 방지하려면 /etc/cron.daily에서 이 링크(0logwatch)를 제거할 수 있습니다.
rm /etc/cron.daily/0logwatch
다시 활성화하려면 심볼릭 링크를 다시 생성하세요.
ln -s /usr/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch