monitoring

zabbix 설치

Naan 2014. 6. 23. 15:23
320x100

zabbix 설치 방법  -centos 6.5 기준-


- yum 에 등록 

rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm


# vi /etc/yum.repos.d/zabbix.repo

[zabbix]

name=Zabbix Official Repository - $basearch

baseurl=http://repo.zabbix.com/zabbix/2.2/rhel/6/$basearch/

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX

[zabbix-non-supported]

name=Zabbix Official Repository non-supported - $basearch

baseurl=http://repo.zabbix.com/non-supported/rhel/6/$basearch/

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX

gpgcheck=1


- 설치

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-web

# yum -y install zabbix-agent zabbix-get

# yum -y install php*


- mysql 설치

# yum -y install mysql mysql-server mysql-devel


- mysql db생성

# server mysql start (구동)

# mysql -u root -p

create database zabbix character set utf8;

grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

FLUSH PRIVILEGES;


- zabbix 용 DB 적용 (버전마다 경로가 다르다 find 명령으로 찾아 보길)

# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.3/create/schema.sql

# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.3/create/images.sql

# mysql -uroot -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.3/create/data.sql


- zabbix conf 수정

# vi /etc/zabbix/zabbix_server.conf

DBPasswd=       -> DBPasswd=password


- 서버 구동

# chkconfig zabbix-server on

# service zabbix-server start


- 웹브라우져 설정

http://localhost/zabbix/




mysql 설정할때 아이디 암호 db 명을 적어준다.





위와 같이 ID 묻는 창이 뜬다면 정상적으로 설치 된것 이다.

기본 ID/PASS 정보는 

ID : admin

Pass : zabbix


320x100