SYSMON Agent Install
□ | Elevisor SYSMON Agent 설치 ( V3.0 이하 버전 ) |
SYSMON Agent는 top 프로그램을 이용하여 성능결과를 수집한 후 Elevisor 서버로 UDP 방식을 통하여 전송한다.
◆ | 설치 파일 압축 해제 |
elevisor_sysmon_agent.zip 설치 파일을 모니터링 대상 Server에 Upload 후 압축을 해제 한다..
ex) /home/elevisor/sysmon 에 설치할 경우 $/home>unzip elevisor_sysmon_agent.zip
|
◆ | top 프로그램이 설치가 안되어 있는 경우 |
- AIX 4.3 인 경우 ( 첨부된 top_aix43 사용 )
$/home/elevisor/sysmon>cp top_aix43 top
- AIX 5.2, 5.3, 6.1 인 경우 ( 첨부된 top_aix53 사용 )
$/home/elevisor/sysmon>cp top_aix53 top
- GNU top 프로그램 설치
$/home/elevisor/sysmon>cp top_aix53 top
$/home/elevisor/sysmon>tar xvf top-3.7.tar
$/home/elevisor/sysmon>cd top-3.7 $/home/elevisor/sysmon/top-3.7>./configure $/home/elevisor/sysmon/top-3.7>make
$/home/elevisor/sysmon>cd top-3.7 $/home/elevisor/sysmon/top-3.7>copy top ..
- make 시 다음과 같은 오류 발생시 해결 방법 [/home/oracle/112/TEST/elevisor/sysmon/top-3.7]$make gcc -DHAVE_CONFIG_H -I. -I. -g -O2 -Wall -fno-strict-aliasing -o m_linux.o -c ./machine/m_linux.c ./machine/m_linux.c: In function 'read_one_proc_stat': ./machine/m_linux.c:700: error: 'PAGE_SHIFT' undeclared (first use in this function) ./machine/m_linux.c:700: error: (Each undeclared identifier is reported only once ./machine/m_linux.c:700: error: for each function it appears in.) make: *** [m_linux.o] Error 1 - cd machine - vi m_linux.c 원본 : #include <asm/page.h> 수정 : #include <sys/user.h> - make [/home/oracle/112/TEST/elevisor/sysmon/top-3.7]$make gcc -DHAVE_CONFIG_H -I. -I. -g -O2 -Wall -fno-strict-aliasing -o m_linux.o -c ./machine/m_linux.c gcc -DHAVE_CONFIG_H -I. -I. -g -O2 -Wall -o top color.o commands.o display.o hash.o screen.o top.o username.o utils.o version.o m_linux.o -lm -ltermcap -lelf [/home/oracle/112/TEST/elevisor/sysmon/top-3.7]$ ls top
|
◆ | 환경 설정 |
start_sysmon.sh 파일을 편집하여 설정한다.
구분 |
설정 내용 |
JAVA HOME |
export JAVA_HOME=/usr/local/java14 |
서버 접속 정보 및 udp, tcp 선택 |
export ELEVISOR_SERVER_IP=192.168.100.100 export ELEVISOR_SERVER_UDP_PORT=9990 export ELEVISOR_SERVER_TCP_PORT=9980 export ELEVISOR_SEND_UDP=true #tcp 를 사용할 경우 false |
top 프로그램 정보 |
export TOP_POLLING_INTERVAL=5 export TOP_COMMAND= |
CPU CORE 설정 |
export NCPU=1 |
* TOP_COMMAND는 직접 top command를 입력하고자 할 경우를 제외하고는 공백으로 둔다.
* NCPU 는 CPU 개수를 말하며, 리눅스의 경우 cat /proc/cpuinfo 로 확인이 가능하다.
◆ | 테스트 |
- debug mode
아래와 같이 debug mode로 수행하면 Parsing 및 Packet 정보를 보여준다.
debug mode는 foreground 로 수행된다.
$/home/elevisor/sysmon>./start_sysmon.sh -d
◆ | 기동/종료 |
기동 : ./start_sysmon.sh
종료 : ./stop_sysmon.sh