CentOS 자빅스 서버 2.2 설치

Jmnote (토론 | 기여)님의 2015년 12월 27일 (일) 14:53 판 (→‎자동시작 설정)
CentOS 자빅스 서버 설치

1 설치

Copy
[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
Copy
... (생략)
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 서비스 시작

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

3 자동시작 설정

Copy
[root@zetawiki ~]# chkconfig --list zabbix-server
zabbix-server  	0:off	1:off	2:off	3:off	4:off	5:off	6:off
Copy
[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

4 zabbix DB 생성

Copy
[root@zetawiki ~]# ll /usr/share/zabbix-mysql/*.sql
-rw-r--r-- 1 root root  968922 Nov 13 00:33 /usr/share/zabbix-mysql/data.sql
-rw-r--r-- 1 root root 1978341 Nov 12 19:11 /usr/share/zabbix-mysql/images.sql
-rw-r--r-- 1 root root  106560 Nov 12 19:15 /usr/share/zabbix-mysql/schema.sql

5 같이 보기