728x90
반응형
scouter가 설치된 서버의 BurstBalance가 줄어들고 있을 때 실행
scouter 데이터베이스 삭제 및 다시 시작
# 서버 접속
[test server]$ /home/test/scouter2/server/removeScouterDatabase.sh
removeScouterDatabase.sh
#!/bin/sh
source ~/.bash_profile
cd /home/test/scouter2/server/
pid=`ps -ef | grep java | grep "scouter-server-boot.jar" | grep -v 'grep' | awk '{print $2}'`
if [ "$pid" = '' ]; then
echo "No process"
else
kill -9 $pid
fi
rm -rf /home/test/scouter2/server/database/*
sleep 10
./startup.sh
startup.sh
#!/usr/bin/env bash
#LDAP_KEY="ESR-BIGBROTHER-SPARTY"
#LDAP_KEY="ESR-BIGBROTHER-VITAMIN"
#LDAP_KEY="STAFFALL" # this doesn't work
nohup java -Xmx1024m -classpath ./scouter-server-boot.jar scouter.boot.Boot ./lib > nohup.out &
#nohup java -Xmx1024m -classpath ./boot.jar scouter.boot.Boot ./lib > nohup.out &
sleep 1
tail -100 nohup.out
728x90
300x250
'IT > Scouter' 카테고리의 다른 글
Scouter log 로테이션 (0) | 2021.08.09 |
---|---|
Scouter-Slack Alert 구성 (0) | 2021.08.09 |
Scouter Agent 설치 및 설정 (0) | 2021.08.09 |
Scouter 서버 설치·설정 (0) | 2021.08.09 |
Scouter Server scouter.conf 설정 튜닝 (0) | 2021.08.03 |