CentOS 자빅스 서버 2.2 설치

  다른 뜻에 대해서는 CentOS7 자빅스 서버 3.0 설치 문서를 참조하십시오.
  다른 뜻에 대해서는 우분투 자빅스 서버 설치 문서를 참조하십시오.
CentOS 자빅스 서버 설치

1 설치[ | ]

[root@zetawiki ~]# yum install zabbix22-web zabbix22-server
... (생략)
=============================================================================
 Package                   Arch      Version               Repository   Size
=============================================================================
Installing:
 zabbix22-server           noarch    2.2.11-1.el6          epel         20 k
 zabbix22-web              noarch    2.2.11-1.el6          epel        4.6 M
Installing for dependencies:
 OpenIPMI-libs             x86_64    2.0.16-14.el6         base        473 k
 fping                     x86_64    3.10-1.el6.rf         rpmforge     50 k
 iksemel                   x86_64    1.4-2.el6             epel         48 k
 lm_sensors-libs           x86_64    3.1.1-17.el6          base         38 k
 net-snmp-libs             x86_64    1:5.5-54.el6_7.1      updates     1.5 M
 php55w-ldap               x86_64    5.5.30-2.w6           webtatic     36 k
 unixODBC                  x86_64    2.2.14-14.el6         base        378 k
 zabbix22-dbfiles-pgsql    noarch    2.2.11-1.el6          epel        1.1 M
 zabbix22-server-pgsql     x86_64    2.2.11-1.el6          epel        410 k
 zabbix22-web-mysql        noarch    2.2.11-1.el6          epel        9.8 k

Transaction Summary
=============================================================================
Install      12 Package(s)

Total download size: 8.6 M
Installed size: 39 M
Is this ok [y/N]: y
... (생략)
Installed:
  zabbix22-server.noarch 0:2.2.11-1.el6  zabbix22-web.noarch 0:2.2.11-1.el6 

Dependency Installed:
  OpenIPMI-libs.x86_64 0:2.0.16-14.el6                                       
  fping.x86_64 0:3.10-1.el6.rf                                               
  iksemel.x86_64 0:1.4-2.el6                                                 
  lm_sensors-libs.x86_64 0:3.1.1-17.el6                                      
  net-snmp-libs.x86_64 1:5.5-54.el6_7.1                                      
  php55w-ldap.x86_64 0:5.5.30-2.w6                                           
  unixODBC.x86_64 0:2.2.14-14.el6                                            
  zabbix22-dbfiles-pgsql.noarch 0:2.2.11-1.el6                               
  zabbix22-server-pgsql.x86_64 0:2.2.11-1.el6                                
  zabbix22-web-mysql.noarch 0:2.2.11-1.el6                                   

Complete!

2 zabbix DB 생성[ | ]

[root@zetawiki ~]# cd /usr/share/zabbix-mysql/
[root@zetawiki zabbix-mysql]# ll
total 2992
-rw-r--r-- 1 root root  968922 Nov 13 00:33 data.sql
-rw-r--r-- 1 root root 1978341 Nov 12 19:11 images.sql
-rw-r--r-- 1 root root  106560 Nov 12 19:15 schema.sql
drwxr-xr-x 5 root root    4096 Dec 27 14:50 upgrades
[root@zetaweb zabbix-mysql]# mysql -uroot -pP@ssw0rd zabbix < schema.sql 
[root@zetaweb zabbix-mysql]# mysql -uroot -pP@ssw0rd zabbix < images.sql 
[root@zetaweb zabbix-mysql]# mysql -uroot -pP@ssw0rd zabbix < data.sql

3 서비스 시작[ | ]

[root@zetawiki ~]# service zabbix-server status
zabbix_server is stopped
[root@zetawiki ~]# service zabbix-server start
Starting Zabbix server:                                    [  OK  ]

4 자동시작 설정[ | ]

[root@zetawiki ~]# chkconfig --list zabbix-server
zabbix-server  	0:off	1:off	2:off	3:off	4:off	5:off	6:off
[root@zetawiki ~]# chkconfig zabbix-server on
[root@zetawiki ~]# chkconfig --list zabbix-server
zabbix-server  	0:off	1:off	2:on	3:on	4:on	5:on	6:off

5 아파치 확인, 재시작[ | ]

[root@zetawiki ~]# cat /etc/httpd/conf.d/zabbix.conf | head
#
# Zabbix monitoring system php web frontend
#

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
[root@zetawiki~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

6 자빅스 웹에서 설치[ | ]

7 같이 보기[ | ]

8 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}