Zabbix Appliance 3.0 TLS(3.0.16)をVMware ESXi 6.7で勉強を兼ねて運用しています。
Zabbix 4.0がリリースされたのアップグレードしてみようと思ったら、どうも3.0 -> 3.2 -> 3.4 -> 4.0のアップグレード手順が必要そうです。
https://www.zabbix.com/documentation/4.0/manual/installation/upgrade/packages/debian_ubuntu
試しに3.2へアップグレードしてみました。
- ESXiスナップショット作成
- Zabbixにログイン
- Zabbixサービスの停止
- /etc/apt/sources.listの編集
- apt update
- apt upgrade
- Zabbixサービスの起動
- Zabbix Webログイン
コンソールかsshでログインします。
1 2 |
$ sudo service zabbix-server stop $ sudo service zabbix-agent stop |
/etc/apt/sources.listにzabbixのリポジトリURLが記述されていますので、ここを3.2に変更します。
1 2 3 4 |
#deb http://repo.zabbix.com/zabbix/3.0/ubuntu xenial main #deb-src http://repo.zabbix.com/zabbix/3.0/ubuntu xenial main deb http://repo.zabbix.com/zabbix/3.2/ubuntu xenial main deb-src http://repo.zabbix.com/zabbix/3.2/ubuntu xenial main |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$ sudo apt update Get:1 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial InRelease [7089 B] Get:2 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main Sources [875 B] Get:3 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 Packages [2426 B] Get:4 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main i386 Packages [2432 B] Hit:5 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [856 kB] Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [767 kB] Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [690 kB] Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [632 kB] Fetched 3282 kB in 3s (1053 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 6 packages can be upgraded. Run 'apt list --upgradable' to see them. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: linux-headers-4.4.0-127 linux-headers-4.4.0-127-generic linux-headers-4.4.0-128 linux-headers-4.4.0-128-generic linux-headers-4.4.0-130 linux-headers-4.4.0-130-generic linux-headers-4.4.0-131 linux-headers-4.4.0-131-generic linux-headers-4.4.0-133 linux-headers-4.4.0-133-generic linux-headers-4.4.0-134 linux-headers-4.4.0-134-generic linux-image-4.4.0-127-generic linux-image-4.4.0-128-generic linux-image-4.4.0-130-generic linux-image-4.4.0-131-generic linux-image-4.4.0-133-generic linux-image-4.4.0-134-generic linux-image-extra-4.4.0-127-generic linux-image-extra-4.4.0-128-generic linux-image-extra-4.4.0-130-generic linux-image-extra-4.4.0-131-generic linux-image-extra-4.4.0-133-generic linux-image-extra-4.4.0-134-generic Use 'sudo apt autoremove' to remove them. The following packages will be upgraded: zabbix-agent zabbix-frontend-php zabbix-get zabbix-java-gateway zabbix-sender zabbix-server-mysql 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 4362 kB of archives. After this operation, 655 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-server-mysql amd64 1:3.2.11-1+xenial [1637 kB] Get:2 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-agent amd64 1:3.2.11-1+xenial [159 kB] Get:3 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-frontend-php all 1:3.2.11-1+xenial [1877 kB] Get:4 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-get amd64 1:3.2.11-1+xenial [59.5 kB] Get:5 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-java-gateway all 1:3.2.11-1+xenial [559 kB] Get:6 http://repo.zabbix.com/zabbix/3.2/ubuntu xenial/main amd64 zabbix-sender amd64 1:3.2.11-1+xenial [69.3 kB] Fetched 4362 kB in 2s (1792 kB/s) Reading changelogs... Done (Reading database ... 285208 files and directories currently installed.) Preparing to unpack .../zabbix-server-mysql_1%3a3.2.11-1+xenial_amd64.deb ... Unpacking zabbix-server-mysql (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Preparing to unpack .../zabbix-agent_1%3a3.2.11-1+xenial_amd64.deb ... Unpacking zabbix-agent (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Preparing to unpack .../zabbix-frontend-php_1%3a3.2.11-1+xenial_all.deb ... Unpacking zabbix-frontend-php (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Preparing to unpack .../zabbix-get_1%3a3.2.11-1+xenial_amd64.deb ... Unpacking zabbix-get (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Preparing to unpack .../zabbix-java-gateway_1%3a3.2.11-1+xenial_all.deb ... Unpacking zabbix-java-gateway (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Preparing to unpack .../zabbix-sender_1%3a3.2.11-1+xenial_amd64.deb ... Unpacking zabbix-sender (1:3.2.11-1+xenial) over (1:3.0.22-1+xenial) ... Processing triggers for systemd (229-4ubuntu21.4) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up zabbix-server-mysql (1:3.2.11-1+xenial) ... Setting up zabbix-agent (1:3.2.11-1+xenial) ... Installing new version of config file /etc/zabbix/zabbix_agentd.conf ... Setting up zabbix-frontend-php (1:3.2.11-1+xenial) ... Installing new version of config file /etc/zabbix/apache.conf ... Setting up zabbix-get (1:3.2.11-1+xenial) ... Setting up zabbix-java-gateway (1:3.2.11-1+xenial) ... Setting up zabbix-sender (1:3.2.11-1+xenial) ... |
1 2 |
$ sudo service zabbix-server start $ sudo service zabbix-agent start |
問題が無さそうならスナップショットを削除してコミットします。