< 리눅스 >
소스파일 다운 후 풀고
cd /zabbix-1.8.2
./configure --enable-agent
make install
vi /etc/services
zabbix-agent 10050/tcp # ZABBIX Agent
zabbix-agent 10050/udp # ZABBIX Agent
zabbix-trapper 10051/tcp # ZABBIX Trapper
zabbix-trapper 10051/udp # ZABBIX Trapper
conf 파일 설정
mkdir /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
vi /etc/zabbix/zabbix_agentd.conf
Server=Zabbix 서버 IP
Hostname=클라이언트 호스트
ListenIP=클라이언트 IP
클라이언트 서버에
useradd zabbix
생성
redhat 이용할경우
cp misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/
vi /etc/init.d/zabbix_agentd
progdir="/usr/local/sbin/"
fedora 이용할경우
# cp misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/
vi /etc/init.d/zabbix_agentd
ZABBIX_BIN="/usr/local/sbin/zabbix_agentd"
chkconfig --add zabbix_agentd
chkconfig zabbix_agentd on
service zabbix_agentd start
그리고 나선 zabbix web에서 host 등록.
< 윈도우 >
# /usr/scr/zabbix-1.8.2 에보면
32비트 원도우 용
./zabbix-1.8.2/bin/win32/zabbix_agentd.exe
64비트 윈도우 용
./zabbix-1.8.2/bin/win64/zabbix_agentd.exe
/etc/zabbix/zabbix_agentd.conf 를 복사 떠와서
cmd 실행
c:\>mkdir c:\zabbix
c:\>zabbix>
위의 exe 파일이랑 conf파일 복사해 넣기
메모장으로 zabbix_agentd.conf 파일 열고
ListenIP=클라이언트 IP
PidFile=c:\zabbix\zabbix_agentd.pid
LogFile=c:\zabbix\zabbix_agentd.log
수정 후 (필요하다면 Server=zabbix서버 IP 까지)
c:\>zabbix> zabbix_agentd.exe -i -c zabbix_agentd.conf (서비스 등록)
c:\>zabbix> zabbix_agentd.exe -s -c zabbix_agentd.conf (서비스 실행)
끝.
제어판 -> 서비스 에서 zabbix agent 확인
'Monitor > Zabbix' 카테고리의 다른 글
zabbix userparameter (0) | 2013.12.26 |
---|---|
zabbix system.run 막기 (0) | 2013.12.26 |
Zabbix Agent 재시작 배치파일 (0) | 2013.10.29 |
zabbix 2.0.2 (0) | 2012.08.29 |
zabbix 설치 (0) | 2012.04.09 |