본문 바로가기
리눅스/Ubuntu

서버모니터링

by 베어그릴스 2022. 8. 12.
반응형

Scouter는 애플리케이션 성능 모니터링 툴이며.

 

오픈소스이며 LG CNS에서 만들어 공개한 오픈소스 APM 이다.

 

자바(Tomcat,Jboss,Resin..)등을 대상으로 성능 수집및 어떤 UI에서 문제가 생겼는지 알려준다.

Scouter는 공식 플러그인도 제공하고 있으며, 이러한 플러그인을 사용하여 다양한 기능을 추가적으로 사용 할 수 있다.

 

∙ Alert
  - scouter-plugin-server-null : 수집데이터를 단순히 출력해 주는 sample plugin
  - scouter-plugin-server-email : Scouter에서 발생하는 alert를 email로 전송하는 plugin
  - scouter-plugin-server-telegram : Scouter에서 발생하는 alert를 telegram으로 전송하는 plugin
  - scouter-plugin-server-slack : Scouter에서 발생하는 alert를 slack으로 전송하는 plugin
  - scouter-plugin-server-line : Scouter에서 발생하는 alert를 line으로 전송하는 plugin
  - scouter-plugin-server-dingtalk : Scouter에서 발생하는 alert를 dingtalk으로 전송하는 plugin

 

스카우터 구조

[설치]

/*----------------------------------------------------------------------------------------------------------

* 1. Downloads https://github.com/scouter-project/scouter/releases

*--------------------------------------------------------------------------------------------------------*/

$ wget https://github.com/scouter-project/scouter/releases/download/v2.7.0/scouter-all-2.7.0.tar.gz
 

/*-----------------------------------------------------------------------------------------------------

* 2. 압축해제

*---------------------------------------------------------------------------------------------------*/

$ tar -xvzf scouter-all-2.7.0.tar.gz

/*----------------------------------------------------------------------------------------------------------

* 3. 서버가동

*--------------------------------------------------------------------------------------------------------*/

압축을 푼 위치에서 아래 명령 파일을 실행 서버 가동 Default 포트 6100으로 기동됨

압축을 푼 위치에서 아래 명령 파일을 실행 서버 가동 Default 포트 6100으로 기동됨

$ cd scouter/server

$ ./startup.sh

nohup: redirecting stderr to stdout

OS의 CPU, 메모리, IO등 자원 모니터링을 위한 Host Agent를 실행한다.

 

$ cd ../agent.host/

$ ./host.sh
 

 

/*----------------------------------------------------------------------------------------------------

* 4. Tomcat 기동시 Agent설정 및 재기동 tomcat 표시명도 변경

*--------------------------------------------------------------------------------------------------*/

$ vi -b /home/yama/tomcat-8.5.42/bin/setenv.sh

export JAVA_OPTS="$JAVA_OPTS -server"

export JAVA_OPTS="$JAVA_OPTS -Xms256m"

export JAVA_OPTS="$JAVA_OPTS -Xms512m"

export JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"

export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"

export JAVA_OPTS="$JAVA_OPTS -Dobj_name=CP_WEB_T01"

export JAVA_OPTS="$JAVA_OPTS -javaagent:/home/tomcat/scouter/agent.java/scouter.agent.jar"

 

/*------------------------------------------------------------------------------------------------------

* 5. Client기동 scouter.client.product-win32.win32.x86_64.zip 압축해제 후 실행

*----------------------------------------------------------------------------------------------------*/

> C:\scouter.client\scouter.exe

Default 사용자 admin/admin으로 접속

아래와 같이 화면이 나타나면 정상

환경설정을 아래와 같이 하면 됨

/*----------------------------------------------------------------------------------------------------------

* 6. 패스워드변경 Management > Account > Edit Account 에서 변경함

*--------------------------------------------------------------------------------------------------------*/

 

scouter를 먼저 실행하고 tomcat을 실행 해야됨

참고사이트

-- 공식사이트

https://github.com/scouter-project/scouter

 

GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

Scouter is an open source APM (Application Performance Management) tool. - GitHub - scouter-project/scouter: Scouter is an open source APM (Application Performance Management) tool.

github.com

 

반응형

'리눅스 > Ubuntu' 카테고리의 다른 글

apache + tomcat 설치  (0) 2022.11.04
우분투 서버 22.04 설치  (0) 2022.11.03
Crontab  (0) 2022.07.27
우분투 설치  (0) 2022.07.22
java 설치  (0) 2022.07.21

댓글