root@lovin /etc]#vi syslog.conf를 입력한다.
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none /var/log/messages (기본 설정)
*.info;mail.none;authpriv.none /dev/console (필자가 추가한 부분)
# The authpriv file has restricted access.
authpriv.* /var/log/secure(기본설정)
authpriv.* /dev/console(필자추가)
# Log all the mail messages in one place.
mail.* /var/log/maillog
mail.* /dev/console
# Everybody gets emergency messages, plus log them on another
# machine.
*.emerg *
# Save mail and news errors of level err and higher in a
# special file.
위의 파일을 자신의 파일과 비교해 보면 어디가 다른지 알수 있을 것이다. 이는 위에 설정된 각종 lo이동후 syslog 를 재시작 하면 된다.
[root@lovin init.d}#./syslog restart
기본 설정은 끝난 것이다. 무척 간단하다. 그 다음 X-window를 시동해서 아무 터미널에서 xconsole을 입력한다. 그 러면 그냥 하얀색의 조그만 창이 뜬다. 이제 시험을 해보자.
[root@lovin init.d]#ftp 0
하면 xconsole 에 로그가 뿌려질 것이다. 이를 계속 사용하려면 X-window 로그아웃시 세션 저장을 선택하면 된다.
위와 같은 방법으로 여러대의 서버에 적용하면 쉽게 한눈에 모니터링이 가능하다g 들을 /dev/console 로 보내는 것이다. 자신의 파일을 고친후 /etc/rc.d/init.d 로 이동한다

관리자
07-08-28 08:25
0개
9회
TIP
리눅스 박스 한눈에 모니터링 하기
댓글목록
등록된 댓글이 없습니다.