oswatch 설치/구성
1. 설치
tar -xvf oswbb811.tar
chmod 744
2. 삭제
rm -rf oswbb
3. 설정
1) 데이터 위치 지정
export OSWBB_ARCHIVE_DEST=/usr/app/archive
2) custom 데이터 수집
- custom script (du.sh)
#!/bin/sh
echo "zzz ***"`date '+%a %b %e %T %Z %Y'` >> $1 ---> header line
du >> $1 ---> output for command
- 등록 : extras.txt
call_du.sh du oswdu ( 스크립트명, 유틸리티명, 디렉토리명 )
4. 시작/중단
1) 시작
ARG1 = snapshot interval in seconds.
ARG2 = the number of hours of archive data to store.
ARG3 = (optional) the name of a compress utility to compress each file automatically after it is created.
ARG4 = (optional) an alternate (non default) location to store the archive directory.
./startOSWbb 30 48 None /usr/app/archive ( 수집주기 (초), 보관주기 (시간), 압축여부, 보관위치 )
./startOSWbb.sh (exec : 30s, store : 48h)
./startOSWbb.sh 60 10 gzip (exec: 60s, store: 10h, compress : gzip)
nohup ./startOSWbb.sh 60 10 & (background, exec: 60s, store: 10h)
2) 중단
./stopOSWbb.sh