CentOS 6.3にZabbix 1.8を入れてみた(その1.インストール編)

 CentOS 6.3にZabbix 1.8を入れてみました。
 Zabbixサイトと、寺島広大『Zabbix統合監視「実践」入門 ~障害通知、傾向分析、可視化による省力運用 (Software Design plusシリーズ)』を参照しています。
 
 その1はインストール完了までです。
 コマンド実行結果も取ったので、だいぶ長いです。


◇ZABBIX-JPのyumリポジトリを利用するための設定。Zabbixサイトの通り。
 
[root@localhost ~]# wget http://www.zabbix.jp/binaries/relatedpkgs/rhel6/i386/zabbix-jp-release-6-5.noarch.rpm
–2012-08-11 14:11:56– http://www.zabbix.jp/binaries/relatedpkgs/rhel6/i386/zabbix-jp-release-6-5.noarch.rpm
Resolving www.zabbix.jp… 173.247.250.112
Connecting to www.zabbix.jp|173.247.250.112|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13752 (13K) [text/plain]
Saving to: “zabbix-jp-release-6-5.noarch.rpm”
 
100%[======================================>] 13,752 26.4K/s in 0.5s
 
2012-08-11 14:11:58 (26.4 KB/s) – “zabbix-jp-release-6-5.noarch.rpm” saved [13752/13752]
 
[root@localhost ~]# rpm -ivh zabbix-jp-release-6-5.noarch.rpm
warning: zabbix-jp-release-6-5.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID f32904ff: NOKEY
Preparing… ########################################### [100%]
1:zabbix-jp-release ########################################### [100%]
 
[root@localhost ~]# alternatives –display zabbix-jp-release
zabbix-jp-release – status is auto.
link currently points to /usr/share/zabbix-jp-release/zabbix-jp-1.8.repo
/usr/share/zabbix-jp-release/zabbix-jp-1.1.repo – priority 10
/usr/share/zabbix-jp-release/zabbix-jp-1.4.repo – priority 20
/usr/share/zabbix-jp-release/zabbix-jp-1.6.repo – priority 30
/usr/share/zabbix-jp-release/zabbix-jp-1.8.repo – priority 40
Current `best’ version is /usr/share/zabbix-jp-release/zabbix-jp-1.8.repo.
 
※すでに1.8が選ばれていたので、バージョン変更はしませんでした。
 
[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base extras updates zabbix-jp zabbix-jp-relatedpkgs
Cleaning up Everything
 
[root@localhost ~]# yum search zabbix
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:16
extras | 3.0 kB 00:00
extras/primary_db | 6.3 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 1.3 MB 00:03
zabbix-jp | 951 B 00:00
zabbix-jp/primary | 21 kB 00:00
zabbix-jp 140/140
zabbix-jp-relatedpkgs | 951 B 00:00
zabbix-jp-relatedpkgs/primary | 2.1 kB 00:00
zabbix-jp-relatedpkgs 6/6
============================= N/S Matched: zabbix ==============================
zabbix-agent.x86_64 : Zabbix Agent
zabbix-jp-release.noarch : ZABBIX-JP repository configuration
zabbix-proxy.x86_64 : Zabbix Proxy
zabbix-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix-server.x86_64 : Zabbix server common files
zabbix-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix-server-pgsql.x86_64 : Zabbix server compiled to use PostgresSQL
zabbix-server-sqlite3.x86_64 : Zabbix server compiled to use SQLite
zabbix-web.x86_64 : Zabbix Web Frontend
zabbix-web-mysql.x86_64 : Zabbix web frontend for MySQL
zabbix-web-pgsql.x86_64 : Zabbix web frontend for PostgreSQL
zabbix-web-sqlite3.x86_64 : Zabbix web frontend for SQLite
zabbix.x86_64 : Open-source monitoring solution for your IT infrastructure
 
Name and summary matches only, use “search all” for everything.
 
◇インストール。RPMパッケージをインストールします。ところどころで確認が入るので、yを入れてあげます。
 
[root@localhost ~]# yum install zabbix zabbix-agent zabbix-server zabbix-server-mysql zabbix-web zabbix-web-mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package zabbix.x86_64 0:1.8.14-1.el6.JP will be installed
—> Package zabbix-agent.x86_64 0:1.8.14-1.el6.JP will be installed
—> Package zabbix-server.x86_64 0:1.8.14-1.el6.JP will be installed
–> Processing Dependency: OpenIPMI-libs >= 2.0.14 for package: zabbix-server-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: fping for package: zabbix-server-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: unixODBC for package: zabbix-server-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: iksemel for package: zabbix-server-1.8.14-1.el6.JP.x86_64
—> Package zabbix-server-mysql.x86_64 0:1.8.14-1.el6.JP will be installed
—> Package zabbix-web.x86_64 0:1.8.14-1.el6.JP will be installed
–> Processing Dependency: php >= 5.0 for package: zabbix-web-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: php-bcmath for package: zabbix-web-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: php-xml for package: zabbix-web-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: php-gd for package: zabbix-web-1.8.14-1.el6.JP.x86_64
–> Processing Dependency: php-mbstring for package: zabbix-web-1.8.14-1.el6.JP.x86_64
—> Package zabbix-web-mysql.x86_64 0:1.8.14-1.el6.JP will be installed
–> Processing Dependency: php-mysql for package: zabbix-web-mysql-1.8.14-1.el6.JP.x86_64
–> Running transaction check
—> Package OpenIPMI-libs.x86_64 0:2.0.16-12.el6 will be installed
—> Package fping.x86_64 0:2.4b2-16.el6.JP will be installed
—> Package iksemel.x86_64 0:1.4-2.el6.JP will be installed
—> Package php.x86_64 0:5.3.3-14.el6_3 will be installed
–> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.x86_64
–> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.x86_64
—> Package php-bcmath.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package php-gd.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package php-mbstring.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package php-mysql.x86_64 0:5.3.3-14.el6_3 will be installed
–> Processing Dependency: php-pdo for package: php-mysql-5.3.3-14.el6_3.x86_64
—> Package php-xml.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package unixODBC.x86_64 0:2.2.14-11.el6 will be installed
–> Running transaction check
—> Package php-cli.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package php-common.x86_64 0:5.3.3-14.el6_3 will be installed
—> Package php-pdo.x86_64 0:5.3.3-14.el6_3 will be installed
–> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
zabbix x86_64 1.8.14-1.el6.JP zabbix-jp 14 k
zabbix-agent x86_64 1.8.14-1.el6.JP zabbix-jp 226 k
zabbix-server x86_64 1.8.14-1.el6.JP zabbix-jp 271 k
zabbix-server-mysql x86_64 1.8.14-1.el6.JP zabbix-jp 349 k
zabbix-web x86_64 1.8.14-1.el6.JP zabbix-jp 4.2 M
zabbix-web-mysql x86_64 1.8.14-1.el6.JP zabbix-jp 13 k
Installing for dependencies:
OpenIPMI-libs x86_64 2.0.16-12.el6 base 475 k
fping x86_64 2.4b2-16.el6.JP zabbix-jp-relatedpkgs 31 k
iksemel x86_64 1.4-2.el6.JP zabbix-jp-relatedpkgs 47 k
php x86_64 5.3.3-14.el6_3 updates 1.1 M
php-bcmath x86_64 5.3.3-14.el6_3 updates 33 k
php-cli x86_64 5.3.3-14.el6_3 updates 2.2 M
php-common x86_64 5.3.3-14.el6_3 updates 523 k
php-gd x86_64 5.3.3-14.el6_3 updates 104 k
php-mbstring x86_64 5.3.3-14.el6_3 updates 453 k
php-mysql x86_64 5.3.3-14.el6_3 updates 79 k
php-pdo x86_64 5.3.3-14.el6_3 updates 73 k
php-xml x86_64 5.3.3-14.el6_3 updates 101 k
unixODBC x86_64 2.2.14-11.el6 base 378 k
 
Transaction Summary
================================================================================
Install 19 Package(s)
 
Total download size: 11 M
Installed size: 34 M
Is this ok [y/N]: y
Downloading Packages:
(1/19): OpenIPMI-libs-2.0.16-12.el6.x86_64.rpm | 475 kB 00:01
(2/19): fping-2.4b2-16.el6.JP.x86_64.rpm | 31 kB 00:00
(3/19): iksemel-1.4-2.el6.JP.x86_64.rpm | 47 kB 00:00
(4/19): php-5.3.3-14.el6_3.x86_64.rpm | 1.1 MB 00:03
(5/19): php-bcmath-5.3.3-14.el6_3.x86_64.rpm | 33 kB 00:00
(6/19): php-cli-5.3.3-14.el6_3.x86_64.rpm | 2.2 MB 00:04
(7/19): php-common-5.3.3-14.el6_3.x86_64.rpm | 523 kB 00:01
(8/19): php-gd-5.3.3-14.el6_3.x86_64.rpm | 104 kB 00:00
(9/19): php-mbstring-5.3.3-14.el6_3.x86_64.rpm | 453 kB 00:01
(10/19): php-mysql-5.3.3-14.el6_3.x86_64.rpm | 79 kB 00:00
(11/19): php-pdo-5.3.3-14.el6_3.x86_64.rpm | 73 kB 00:00
(12/19): php-xml-5.3.3-14.el6_3.x86_64.rpm | 101 kB 00:00
(13/19): unixODBC-2.2.14-11.el6.x86_64.rpm | 378 kB 00:00
(14/19): zabbix-1.8.14-1.el6.JP.x86_64.rpm | 14 kB 00:00
(15/19): zabbix-agent-1.8.14-1.el6.JP.x86_64.rpm | 226 kB 00:02
(16/19): zabbix-server-1.8.14-1.el6.JP.x86_64.rpm | 271 kB 00:01
(17/19): zabbix-server-mysql-1.8.14-1.el6.JP.x86_64.rpm | 349 kB 00:02
(18/19): zabbix-web-1.8.14-1.el6.JP.x86_64.rpm | 4.2 MB 00:31
(19/19): zabbix-web-mysql-1.8.14-1.el6.JP.x86_64.rpm | 13 kB 00:00
--------------------------------------------------------------------------------
Total 171 kB/s | 11 MB 01:03
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key)
Package: centos-release-6-3.el6.centos.9.x86_64 (@base/$releasever)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID f32904ff: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP
Importing GPG key 0xF32904FF:
Userid : ZABBIX-JP (Japanese ZABBIX Support Site)
Package: zabbix-jp-release-6-5.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : php-common-5.3.3-14.el6_3.x86_64 1/19
Installing : zabbix-1.8.14-1.el6.JP.x86_64 2/19
Installing : unixODBC-2.2.14-11.el6.x86_64 3/19
Installing : iksemel-1.4-2.el6.JP.x86_64 4/19
Installing : OpenIPMI-libs-2.0.16-12.el6.x86_64 5/19
Installing : php-cli-5.3.3-14.el6_3.x86_64 6/19
Installing : php-5.3.3-14.el6_3.x86_64 7/19
Installing : php-xml-5.3.3-14.el6_3.x86_64 8/19
Installing : php-pdo-5.3.3-14.el6_3.x86_64 9/19
Installing : php-mysql-5.3.3-14.el6_3.x86_64 10/19
Installing : php-gd-5.3.3-14.el6_3.x86_64 11/19
Installing : php-mbstring-5.3.3-14.el6_3.x86_64 12/19
Installing : php-bcmath-5.3.3-14.el6_3.x86_64 13/19
Installing : zabbix-web-mysql-1.8.14-1.el6.JP.x86_64 14/19
Installing : zabbix-web-1.8.14-1.el6.JP.x86_64 15/19
Installing : fping-2.4b2-16.el6.JP.x86_64 16/19
Installing : zabbix-server-1.8.14-1.el6.JP.x86_64 17/19
Installing : zabbix-server-mysql-1.8.14-1.el6.JP.x86_64 18/19
Installing : zabbix-agent-1.8.14-1.el6.JP.x86_64 19/19
Verifying : php-cli-5.3.3-14.el6_3.x86_64 1/19
Verifying : php-common-5.3.3-14.el6_3.x86_64 2/19
Verifying : php-mysql-5.3.3-14.el6_3.x86_64 3/19
Verifying : zabbix-web-mysql-1.8.14-1.el6.JP.x86_64 4/19
Verifying : php-5.3.3-14.el6_3.x86_64 5/19
Verifying : OpenIPMI-libs-2.0.16-12.el6.x86_64 6/19
Verifying : php-xml-5.3.3-14.el6_3.x86_64 7/19
Verifying : zabbix-agent-1.8.14-1.el6.JP.x86_64 8/19
Verifying : iksemel-1.4-2.el6.JP.x86_64 9/19
Verifying : zabbix-web-1.8.14-1.el6.JP.x86_64 10/19
Verifying : php-pdo-5.3.3-14.el6_3.x86_64 11/19
Verifying : zabbix-server-1.8.14-1.el6.JP.x86_64 12/19
Verifying : php-gd-5.3.3-14.el6_3.x86_64 13/19
Verifying : zabbix-server-mysql-1.8.14-1.el6.JP.x86_64 14/19
Verifying : fping-2.4b2-16.el6.JP.x86_64 15/19
Verifying : unixODBC-2.2.14-11.el6.x86_64 16/19
Verifying : zabbix-1.8.14-1.el6.JP.x86_64 17/19
Verifying : php-mbstring-5.3.3-14.el6_3.x86_64 18/19
Verifying : php-bcmath-5.3.3-14.el6_3.x86_64 19/19
 
Installed:
zabbix.x86_64 0:1.8.14-1.el6.JP
zabbix-agent.x86_64 0:1.8.14-1.el6.JP
zabbix-server.x86_64 0:1.8.14-1.el6.JP
zabbix-server-mysql.x86_64 0:1.8.14-1.el6.JP
zabbix-web.x86_64 0:1.8.14-1.el6.JP
zabbix-web-mysql.x86_64 0:1.8.14-1.el6.JP
 
Dependency Installed:
OpenIPMI-libs.x86_64 0:2.0.16-12.el6 fping.x86_64 0:2.4b2-16.el6.JP
iksemel.x86_64 0:1.4-2.el6.JP php.x86_64 0:5.3.3-14.el6_3
php-bcmath.x86_64 0:5.3.3-14.el6_3 php-cli.x86_64 0:5.3.3-14.el6_3
php-common.x86_64 0:5.3.3-14.el6_3 php-gd.x86_64 0:5.3.3-14.el6_3
php-mbstring.x86_64 0:5.3.3-14.el6_3 php-mysql.x86_64 0:5.3.3-14.el6_3
php-pdo.x86_64 0:5.3.3-14.el6_3 php-xml.x86_64 0:5.3.3-14.el6_3
unixODBC.x86_64 0:2.2.14-11.el6
 
Complete!
 
◇Zabbix以外に必要なパッケージが入っているかの確認。最新かどうかはさておき、CentOS入れた時にすべて入ってくるようです。
 
[root@localhost ~]# rpm -q ntp
ntp-4.2.4p8-2.el6.centos.x86_64
[root@localhost ~]# rpm -q fping
fping-2.4b2-16.el6.JP.x86_64
[root@localhost ~]# rpm -q iksemel
iksemel-1.4-2.el6.JP.x86_64
[root@localhost ~]# rpm -q net-snmp-libs
net-snmp-libs-5.5-41.el6.x86_64
[root@localhost ~]# rpm -q openldap
openldap-2.4.23-26.el6.x86_64
[root@localhost ~]# rpm -q curl
curl-7.19.7-26.el6_2.4.x86_64
[root@localhost ~]# rpm -q unixODBC
unixODBC-2.2.14-11.el6.x86_64
[root@localhost ~]# rpm -q OpenIPMI-libs
OpenIPMI-libs-2.0.16-12.el6.x86_64
[root@localhost ~]# rpm -q libssh2
libssh2-1.2.2-7.el6_2.3.x86_64
[root@localhost ~]# rpm -q ntpd
package ntpd is not installed
[root@localhost ~]# rpm -q ntp
ntp-4.2.4p8-2.el6.centos.x86_64
[root@localhost ~]# rpm -q httpd
httpd-2.2.15-15.el6.centos.1.x86_64
[root@localhost ~]# rpm -q php
php-5.3.3-14.el6_3.x86_64
[root@localhost ~]# rpm -q php-gd
php-gd-5.3.3-14.el6_3.x86_64
[root@localhost ~]# rpm -q php-bcmath
php-bcmath-5.3.3-14.el6_3.x86_64
[root@localhost ~]# rpm -q php-mysql
php-mysql-5.3.3-14.el6_3.x86_64
[root@localhost ~]# rpm -q php-mbstring
php-mbstring-5.3.3-14.el6_3.x86_64
[root@localhost ~]# rpm -q php-xml
php-xml-5.3.3-14.el6_3.x86_64
 
以上でインストール自体は終了。設定に行きます。

Leave a Reply

Your email address will not be published. Required fields are marked *