ZABBIX 4.0 → 5.0へのアップデート
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
目次~
#contents
*概要 [#qb16ffb1]
Zabbix 4.0から5.0へのバージョンアップ手順。
*手順 [#p6562b4e]
** Zabbix Server [#saaf5983]
-1. リポジトリの更新~
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_6...
~
-2. リポジトリのキャッシュをクリア
yum clean all
-3. サービスの停止
systemctl stop zabbix-server
systemctl stop httpd
-4. アップデートの実行
yum install zabbix-server-mysql zabbix-agent
-5. ミドルウェアパッケージの更新
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install centos-release-scl
-6. Web UIパッケージの削除~
環境依存によると思われるが、Web UIのパッケージがアップデ...
rpm -e --nodeps zabbix-web zabbix-web-mysql zabbix-web-j...
yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
-7. サービスの自動起動設定
systemctl enable zabbix-server zabbix-agent httpd rh-php...
-8. データベースの変換~
Zabbix 5.0ではデータベースの文字コードがutf8_binとなった...
変換を行うには、alter tableを使用するか、DBダンプを作成し...
今回は後者の方式で対応した。~
~
mysqldump -u zabbix -p zabbix > zabbix_db.YYYYMMDD.dump
sed "s/CHARSET=utf8/CHARSET=utf8 COLLATE=utf8_bin/" zabb...
cat zabbix_db.YYYYMMDD_conv.dump | mysql -u zabbix -p za...
-8. アップデート状況の確認~
サービスの初回起動時にDBのアップデートが行われる。~
アップデートの進捗状況はログ(zabbix_server.log)に出力さ...
~
1787:20200706:135257.772 Starting Zabbix Server. Zabbix...
1787:20200706:135257.773 ****** Enabled features ******
1787:20200706:135257.773 SNMP monitoring: YES
1787:20200706:135257.773 IPMI monitoring: YES
1787:20200706:135257.773 Web monitoring: YES
1787:20200706:135257.773 VMware monitoring: YES
1787:20200706:135257.773 SMTP authentication: YES
1787:20200706:135257.773 ODBC: YES
1787:20200706:135257.773 SSH support: YES
1787:20200706:135257.773 IPv6 support: YES
1787:20200706:135257.773 TLS support: YES
1787:20200706:135257.773 ******************************
1787:20200706:135257.773 using configuration file: /etc...
1787:20200706:135257.781 lldp_get module: loaded by ser...
1787:20200706:135257.796 loaded modules: lldp_get.so
1787:20200706:135258.005 database is not upgraded to us...
1787:20200706:135258.005 completed 0% of database upgrade
【中略】
1787:20200706:135258.005 completed 100% of database upg...
1787:20200706:135258.009 server #0 started [main process]
1792:20200706:135258.009 server #1 started [configurati...
1793:20200706:135259.233 server #2 started [ipmi manage...
1797:20200706:135259.234 server #5 started [http poller...
1802:20200706:135259.234 server #10 started [discoverer...
-9. 設定ファイルの更新~
5.0の新機能に伴い設定項目が増加しているため、5.0用の設定...
RPMのインストール時に以下の名称で4.0用の設定ファイルが保...
/etc/zabbix/zabbix_server.conf.rpmnew
** Zabbix Agent [#qc232090]
-1. リポジトリの更新~
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_6...
-2. リポジトリのキャッシュをクリア
yum clean all
-3. サービスの停止
systemctl stop zabbix-agent
-4. アップデートの実行
yum update zabbix-get zabbix-sender zabbix-agent
-5. サービスのリロード
systemctl start zabbix-agent
-6. アップデートの確認~
/usr/sbin/zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 5.0.1
Revision c2a0b03480 25 May 2020, compilation time: May 2...
Copyright (C) 2020 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.o...
This is free software: you are free to change and redist...
the license. There is NO WARRANTY, to the extent permitt...
This product includes software developed by the OpenSSL ...
for use in the OpenSSL Toolkit (http://www.openssl.org/).
Compiled with OpenSSL 1.0.1e-fips 11 Feb 2013
Running with OpenSSL 1.0.1e-fips 11 Feb 2013
終了行:
目次~
#contents
*概要 [#qb16ffb1]
Zabbix 4.0から5.0へのバージョンアップ手順。
*手順 [#p6562b4e]
** Zabbix Server [#saaf5983]
-1. リポジトリの更新~
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_6...
~
-2. リポジトリのキャッシュをクリア
yum clean all
-3. サービスの停止
systemctl stop zabbix-server
systemctl stop httpd
-4. アップデートの実行
yum install zabbix-server-mysql zabbix-agent
-5. ミドルウェアパッケージの更新
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install centos-release-scl
-6. Web UIパッケージの削除~
環境依存によると思われるが、Web UIのパッケージがアップデ...
rpm -e --nodeps zabbix-web zabbix-web-mysql zabbix-web-j...
yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
-7. サービスの自動起動設定
systemctl enable zabbix-server zabbix-agent httpd rh-php...
-8. データベースの変換~
Zabbix 5.0ではデータベースの文字コードがutf8_binとなった...
変換を行うには、alter tableを使用するか、DBダンプを作成し...
今回は後者の方式で対応した。~
~
mysqldump -u zabbix -p zabbix > zabbix_db.YYYYMMDD.dump
sed "s/CHARSET=utf8/CHARSET=utf8 COLLATE=utf8_bin/" zabb...
cat zabbix_db.YYYYMMDD_conv.dump | mysql -u zabbix -p za...
-8. アップデート状況の確認~
サービスの初回起動時にDBのアップデートが行われる。~
アップデートの進捗状況はログ(zabbix_server.log)に出力さ...
~
1787:20200706:135257.772 Starting Zabbix Server. Zabbix...
1787:20200706:135257.773 ****** Enabled features ******
1787:20200706:135257.773 SNMP monitoring: YES
1787:20200706:135257.773 IPMI monitoring: YES
1787:20200706:135257.773 Web monitoring: YES
1787:20200706:135257.773 VMware monitoring: YES
1787:20200706:135257.773 SMTP authentication: YES
1787:20200706:135257.773 ODBC: YES
1787:20200706:135257.773 SSH support: YES
1787:20200706:135257.773 IPv6 support: YES
1787:20200706:135257.773 TLS support: YES
1787:20200706:135257.773 ******************************
1787:20200706:135257.773 using configuration file: /etc...
1787:20200706:135257.781 lldp_get module: loaded by ser...
1787:20200706:135257.796 loaded modules: lldp_get.so
1787:20200706:135258.005 database is not upgraded to us...
1787:20200706:135258.005 completed 0% of database upgrade
【中略】
1787:20200706:135258.005 completed 100% of database upg...
1787:20200706:135258.009 server #0 started [main process]
1792:20200706:135258.009 server #1 started [configurati...
1793:20200706:135259.233 server #2 started [ipmi manage...
1797:20200706:135259.234 server #5 started [http poller...
1802:20200706:135259.234 server #10 started [discoverer...
-9. 設定ファイルの更新~
5.0の新機能に伴い設定項目が増加しているため、5.0用の設定...
RPMのインストール時に以下の名称で4.0用の設定ファイルが保...
/etc/zabbix/zabbix_server.conf.rpmnew
** Zabbix Agent [#qc232090]
-1. リポジトリの更新~
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_6...
-2. リポジトリのキャッシュをクリア
yum clean all
-3. サービスの停止
systemctl stop zabbix-agent
-4. アップデートの実行
yum update zabbix-get zabbix-sender zabbix-agent
-5. サービスのリロード
systemctl start zabbix-agent
-6. アップデートの確認~
/usr/sbin/zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 5.0.1
Revision c2a0b03480 25 May 2020, compilation time: May 2...
Copyright (C) 2020 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.o...
This is free software: you are free to change and redist...
the license. There is NO WARRANTY, to the extent permitt...
This product includes software developed by the OpenSSL ...
for use in the OpenSSL Toolkit (http://www.openssl.org/).
Compiled with OpenSSL 1.0.1e-fips 11 Feb 2013
Running with OpenSSL 1.0.1e-fips 11 Feb 2013
ページ名: