이 저작물은 아래 조건 만족 시
별도 허가 없이 사용 가능합니다
- 저작자 명시 필수
- 영리적 사용 불가
- 내용 변경 불가
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 | 6333 |
공지 | 주소 복구했습니다. - 수정 | 가오파 | 2019.01.20 | 10209 |
공지 | 채팅 IRC말고 DISCORD로 넘어감 | 사자 | 2016.08.19 | 9495 |
공지 | 자유게시판 [127] | 배삼룡 | 2004.11.11 | 18105 |
13715 | 2016년도 절반 지나감 [1] | 가오파 | 2016.07.01 | 355 |
13714 | 와 대박... [6] | 개굴개굴 | 2016.06.30 | 491 |
13713 | 오바와치 합시다 [4] | 가오파 | 2016.06.07 | 470 |
13712 | 글좀 남기거라 | 가오파 | 2016.05.02 | 285 |
13711 | 쿄우 | 가오파 | 2016.04.01 | 262 |
13710 | dd [1] | 사자 | 2016.03.06 | 381 |
13709 | 합니다 [1] | 가오파 | 2016.02.28 | 478 |
13708 | 받으세요 | 가오파 | 2016.02.09 | 307 |
13707 | ^^ [2] | 히힛 | 2016.01.30 | 414 |
13706 | 취업함 [2] | 가오파 | 2016.01.23 | 447 |
13705 | 우와 설마했는데 [5] | 열소 | 2016.01.18 | 475 |
13704 | 병신년! | 포쿠테 | 2016.01.16 | 236 |
13703 |
ㅇㅇ
![]() | 사자 | 2016.01.02 | 238 |
13702 |
병신년 기념 콜옵
![]() | 배삼룡 | 2016.01.02 | 340 |
13701 | 근하신년 만복이 깃드시길 바랍니다. [2] | 가오파 | 2016.01.01 | 461 |
13700 | 벌써 2015년도 다 지나가네 [2] | 가오파 | 2015.12.11 | 303 |
13699 | K-ON | 사자 | 2015.12.10 | 200 |
13698 | SAORIGNAL에 당신을 초대합니다~ [1] | 홍맹보 | 2015.11.19 | 426 |
13697 | 핀디아 [2] | 가오파 | 2015.11.03 | 392 |
» | zabbix | 사자 | 2015.10.21 | 436 |