zabbix

사자 2015.10.21 16:17 조회 수 : 287

zabbix 설치

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

 

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

yum -y install zabbix-agent zabbix-get

 

 

패키지 설치 완료후 레파치토리 비활성화

enabled=1 을 enabled=0 으로 변경

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

---------------------------------------------------------------

 

mysql 관련설정

yum -y install mysql-server

service mysqld start

/usr/bin/mysql_secure_installation

service mysqld restart

chkconfig mysqld on

 

Zabbix용 DB의 작성

create database zabbix character set utf8;

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

FLUSH PRIVILEGES;

exit

 

Zabbix용 DB스키마와 데이터를 임포트

cd /usr/share/doc/zabbix-server-mysql-2.2.8/

mysql -uroot -p zabbix < create/schema.sql

mysql -uroot -p zabbix < create/images.sql

mysql -uroot -p zabbix < create/data.sql

 

 

server conf 설정

vi /etc/zabbix/zabbix_server.conf

 

DBPassword=

DBPassword=비밀번호

 

서버 부팅시 Zabbix서버의 자동 시작을 설정

서버

service zabbix-server start

chkconfig zabbix-server on

chkconfig --list zabbix-server

 

에이젼트

service zabbix-agent start

chkconfig zabbix-agent on

chkconfig --list zabbix-agent

 

권한 nginx 로 변경(기본아파치)

cd /etc/zabbix

chown nginx:nginx web

 

cd /var/www

ln -s /usr/share/zabbix .

 

 

PHP 설정에서 Timezone 설정

vi /etc/php.ini

max_execution_time = 300

max_input_time = 300

post_max_size = 32M

date.timezone = Asia/Seoul

 

vi /etc/php-fpm.d/www.conf

user = nginx

group = nginx

 

 

chkconfig --add php-fpm

chkconfig --levels 235 php-fpm on

chkconfig php-fpm --list

service php-fpm restart

 

cd /etc/nginx/conf.d/

vi zabbix.conf

server {

        server_name zabbix.ainagames.com;

 

        root        /var/www/zabbix;

        index       index.html index.php;

        access_log  /var/log/nginx/access_zabbix.log main;

        error_log   /var/log/nginx/error_zabbix.log error;

 

        location ~ \.php {

                fastcgi_pass    127.0.0.1:9000;

                fastcgi_index   index.php;

                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;

                include fastcgi_params;

        }

}

 

service nginx restart

 

 

 

postfix (zabbix mailing)

yum -y install postfix

 

 

번호 제목 글쓴이 날짜 조회 수
공지 로그인이 안되는 경우.. 가오파 2021.02.20 977
공지 주소 복구했습니다. - 수정 가오파 2019.01.20 4810
공지 채팅 IRC말고 DISCORD로 넘어감 사자 2016.08.19 3649
공지 자유게시판 [127] 배삼룡 2004.11.11 5918
13713 오바와치 합시다 [4] 가오파 2016.06.07 229
13712 글좀 남기거라 가오파 2016.05.02 173
13711 쿄우 가오파 2016.04.01 169
13710 dd [1] 사자 2016.03.06 182
13709 합니다 [1] 가오파 2016.02.28 207
13708 받으세요 가오파 2016.02.09 192
13707 ^^ [2] 히힛 2016.01.30 197
13706 취업함 [2] 가오파 2016.01.23 216
13705 우와 설마했는데 [5] 열소 2016.01.18 239
13704 병신년! 포쿠테 2016.01.16 139
13703 ㅇㅇ file 사자 2016.01.02 155
13702 병신년 기념 콜옵 file 배삼룡 2016.01.02 204
13701 근하신년 만복이 깃드시길 바랍니다. [2] 가오파 2016.01.01 179
13700 벌써 2015년도 다 지나가네 [2] 가오파 2015.12.11 151
13699 K-ON 사자 2015.12.10 121
13698 SAORIGNAL에 당신을 초대합니다~ [1] 홍맹보 2015.11.19 168
13697 핀디아 [2] 가오파 2015.11.03 174
» zabbix 사자 2015.10.21 287
13695 dd 사자 2015.10.12 160
13694 제라툴 사자 2015.10.07 150