이 저작물은 아래 조건 만족 시
별도 허가 없이 사용 가능합니다
- 저작자 명시 필수
- 영리적 사용 불가
- 내용 변경 불가
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 | 18702 |
| 공지 | 주소 복구했습니다. - 수정 | 가오파 | 2019.01.20 | 12876 |
| 공지 | 채팅 IRC말고 DISCORD로 넘어감 | 사자 | 2016.08.19 | 12353 |
| 공지 | 자유게시판 [127] | 배삼룡 | 2004.11.11 | 23193 |
| » | zabbix | 사자 | 2015.10.21 | 500 |
| 13695 | dd | 사자 | 2015.10.12 | 334 |
| 13694 | 제라툴 | 사자 | 2015.10.07 | 340 |
| 13693 | ㄹㄹ님아 embed가 안먹힘 [4] | 사자 | 2015.10.06 | 591 |
| 13692 |
aa
| 사자 | 2015.10.05 | 411 |
| 13691 |
태그 테스트
| 사자 | 2015.09.24 | 324 |
| 13690 | 견적 [4] | 젝스 | 2015.09.07 | 420 |
| 13689 | 갑자기 생각나서 와봤어요 [4] | 얼굴은오크 | 2015.09.05 | 618 |
| 13688 | 8월도 안녕 | 가오파 | 2015.08.31 | 309 |
| 13687 | 뿌아앙 [1] | 사자 | 2015.08.27 | 378 |
| 13686 |
NJF
| 無 | 2015.08.26 | 287 |
| 13685 |
wqd
[2] | 사자 | 2015.08.06 | 561 |
| 13684 |
wwq
| 사자 | 2015.08.02 | 666 |
| 13683 |
1
| 사자 | 2015.08.02 | 715 |
| 13682 |
최근 근황
[2] | 배삼룡 | 2015.07.28 | 561 |
| 13681 | dd | 사자 | 2015.07.19 | 322 |
| 13680 | 코딩 재미있지 않음? [2] | 가오파 | 2015.07.13 | 561 |
| 13679 | 와.. 여기 아직 있어;;; [5] | 깜뒹이 | 2015.07.01 | 732 |
| 13678 |
월투 대박 드퀘 대박.
[1] | 포레 | 2015.06.02 | 562 |
| 13677 | 세에에상에 [3] | 히힛 | 2015.05.30 | 598 |