Zabbix 2.2.1 の Redhat用RPMが出たので
早速バージョンアップをやってみた。
以下手順メモ
まずは、現状を確認
1 2 3 4 5 6 7 8 9 10 11 |
[root@zabbix2 ~]# rpm -qa | grep zabbix zabbix-web-mysql-2.2.0-1.el6.noarch zabbix-get-2.2.0-1.el6.i386 zabbix-release-2.2-1.el6.noarch zabbix-2.2.0-1.el6.i386 zabbix-web-2.2.0-1.el6.noarch zabbix-server-mysql-2.2.0-1.el6.i386 zabbix-agent-2.2.0-1.el6.i386 zabbix-web-japanese-2.2.0-1.el6.noarch zabbix-sender-2.2.0-1.el6.i386 zabbix-server-2.2.0-1.el6.i386 |
yumでダウンロード&アップデート
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
[root@zabbix2 ~]# yum update zabbix zabbix-web zabbix-web-japanese zabbix-get zabbix-sender Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.riken.jp * extras: ftp.riken.jp * updates: ftp.riken.jp Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package zabbix.i386 0:2.2.0-1.el6 will be updated --> Processing Dependency: zabbix = 2.2.0-1.el6 for package: zabbix-agent-2.2.0-1.el6.i386 --> Processing Dependency: zabbix = 2.2.0-1.el6 for package: zabbix-server-mysql-2.2.0-1.el6.i386 --> Processing Dependency: zabbix = 2.2.0-1.el6 for package: zabbix-server-2.2.0-1.el6.i386 ---> Package zabbix.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-get.i386 0:2.2.0-1.el6 will be updated ---> Package zabbix-get.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-sender.i386 0:2.2.0-1.el6 will be updated ---> Package zabbix-sender.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-web.noarch 0:2.2.0-1.el6 will be updated --> Processing Dependency: zabbix-web = 2.2.0-1.el6 for package: zabbix-web-mysql-2.2.0-1.el6.noarch ---> Package zabbix-web.noarch 0:2.2.1-1.el6 will be an update ---> Package zabbix-web-japanese.noarch 0:2.2.0-1.el6 will be updated ---> Package zabbix-web-japanese.noarch 0:2.2.1-1.el6 will be an update --> Running transaction check ---> Package zabbix-agent.i386 0:2.2.0-1.el6 will be updated ---> Package zabbix-agent.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-server.i386 0:2.2.0-1.el6 will be updated ---> Package zabbix-server.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-server-mysql.i386 0:2.2.0-1.el6 will be updated ---> Package zabbix-server-mysql.i386 0:2.2.1-1.el6 will be an update ---> Package zabbix-web-mysql.noarch 0:2.2.0-1.el6 will be updated ---> Package zabbix-web-mysql.noarch 0:2.2.1-1.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: zabbix i386 2.2.1-1.el6 zabbix 136 k zabbix-get i386 2.2.1-1.el6 zabbix 52 k zabbix-sender i386 2.2.1-1.el6 zabbix 61 k zabbix-web noarch 2.2.1-1.el6 zabbix 2.4 M zabbix-web-japanese noarch 2.2.1-1.el6 zabbix 13 k Updating for dependencies: zabbix-agent i386 2.2.1-1.el6 zabbix 151 k zabbix-server i386 2.2.1-1.el6 zabbix 19 k zabbix-server-mysql i386 2.2.1-1.el6 zabbix 1.5 M zabbix-web-mysql noarch 2.2.1-1.el6 zabbix 12 k Transaction Summary ================================================================================ Upgrade 9 Package(s) Total download size: 4.3 M Is this ok [y/N]: y Downloading Packages: (1/9): zabbix-2.2.1-1.el6.i386.rpm | 136 kB 00:02 (2/9): zabbix-agent-2.2.1-1.el6.i386.rpm | 151 kB 00:00 (3/9): zabbix-get-2.2.1-1.el6.i386.rpm | 52 kB 00:00 (4/9): zabbix-sender-2.2.1-1.el6.i386.rpm | 61 kB 00:00 (5/9): zabbix-server-2.2.1-1.el6.i386.rpm | 19 kB 00:02 (6/9): zabbix-server-mysql-2.2.1-1.el6.i386.rpm | 1.5 MB 00:07 (7/9): zabbix-web-2.2.1-1.el6.noarch.rpm | 2.4 MB 00:06 (8/9): zabbix-web-japanese-2.2.1-1.el6.noarch.rpm | 13 kB 00:00 (9/9): zabbix-web-mysql-2.2.1-1.el6.noarch.rpm | 12 kB 00:00 -------------------------------------------------------------------------------- Total 182 kB/s | 4.3 MB 00:24 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : zabbix-2.2.1-1.el6.i386 1/18 Updating : zabbix-web-mysql-2.2.1-1.el6.noarch 2/18 Updating : zabbix-web-2.2.1-1.el6.noarch 3/18 Updating : zabbix-server-2.2.1-1.el6.i386 4/18 Updating : zabbix-server-mysql-2.2.1-1.el6.i386 5/18 Updating : zabbix-web-japanese-2.2.1-1.el6.noarch 6/18 Updating : zabbix-agent-2.2.1-1.el6.i386 7/18 warning: /etc/zabbix/zabbix_agentd.conf created as /etc/zabbix/zabbix_agentd.conf.rpmnew Updating : zabbix-get-2.2.1-1.el6.i386 8/18 Updating : zabbix-sender-2.2.1-1.el6.i386 9/18 Cleanup : zabbix-server-2.2.0-1.el6.i386 10/18 Cleanup : zabbix-server-mysql-2.2.0-1.el6.i386 11/18 Cleanup : zabbix-agent-2.2.0-1.el6.i386 12/18 Cleanup : zabbix-web-japanese-2.2.0-1.el6.noarch 13/18 Cleanup : zabbix-web-mysql-2.2.0-1.el6.noarch 14/18 Cleanup : zabbix-web-2.2.0-1.el6.noarch 15/18 Cleanup : zabbix-2.2.0-1.el6.i386 16/18 Cleanup : zabbix-get-2.2.0-1.el6.i386 17/18 Cleanup : zabbix-sender-2.2.0-1.el6.i386 18/18 Verifying : zabbix-web-japanese-2.2.1-1.el6.noarch 1/18 Verifying : zabbix-sender-2.2.1-1.el6.i386 2/18 Verifying : zabbix-agent-2.2.1-1.el6.i386 3/18 Verifying : zabbix-get-2.2.1-1.el6.i386 4/18 Verifying : zabbix-server-mysql-2.2.1-1.el6.i386 5/18 Verifying : zabbix-2.2.1-1.el6.i386 6/18 Verifying : zabbix-server-2.2.1-1.el6.i386 7/18 Verifying : zabbix-web-2.2.1-1.el6.noarch 8/18 Verifying : zabbix-web-mysql-2.2.1-1.el6.noarch 9/18 Verifying : zabbix-server-2.2.0-1.el6.i386 10/18 Verifying : zabbix-sender-2.2.0-1.el6.i386 11/18 Verifying : zabbix-web-japanese-2.2.0-1.el6.noarch 12/18 Verifying : zabbix-agent-2.2.0-1.el6.i386 13/18 Verifying : zabbix-server-mysql-2.2.0-1.el6.i386 14/18 Verifying : zabbix-web-mysql-2.2.0-1.el6.noarch 15/18 Verifying : zabbix-2.2.0-1.el6.i386 16/18 Verifying : zabbix-web-2.2.0-1.el6.noarch 17/18 Verifying : zabbix-get-2.2.0-1.el6.i386 18/18 Updated: zabbix.i386 0:2.2.1-1.el6 zabbix-get.i386 0:2.2.1-1.el6 zabbix-sender.i386 0:2.2.1-1.el6 zabbix-web.noarch 0:2.2.1-1.el6 zabbix-web-japanese.noarch 0:2.2.1-1.el6 Dependency Updated: zabbix-agent.i386 0:2.2.1-1.el6 zabbix-server.i386 0:2.2.1-1.el6 zabbix-server-mysql.i386 0:2.2.1-1.el6 zabbix-web-mysql.noarch 0:2.2.1-1.el6 Complete! [root@zabbix2 ~]# |
アップデート結果を確認
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@zabbix2 ~]# rpm -qa | grep zabbix zabbix-2.2.1-1.el6.i386 zabbix-server-mysql-2.2.1-1.el6.i386 zabbix-sender-2.2.1-1.el6.i386 zabbix-release-2.2-1.el6.noarch zabbix-web-mysql-2.2.1-1.el6.noarch zabbix-server-2.2.1-1.el6.i386 zabbix-web-japanese-2.2.1-1.el6.noarch zabbix-get-2.2.1-1.el6.i386 zabbix-web-2.2.1-1.el6.noarch zabbix-agent-2.2.1-1.el6.i386 [root@zabbix2 ~]# |
すべてのパッケージが、2.2.1になっていることを確認。
ただ、アップデート中に、zabbix-agentパッケージでwarningが出てるので
こちらも確認
warning: /etc/zabbix/zabbix_agentd.conf created as /etc/zabbix/zabbix_agentd.conf.rpmnew
差分を取ってみる。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@zabbix2 ~]# diff /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.rpmnew 85c85 < Server=127.0.0.1,192.168.29.153 --- > Server=127.0.0.1 208c208,214 < # Sets an alias for parameter. It can be useful to substitute long and complex parameter name with a smaller and simpler one. --- > # Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one. > # Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed. > # Different Alias keys may reference the same item key. > # For example, to retrieve the ID of user 'zabbix': > # Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1] > # Now shorthand key zabbix.userid may be used to retrieve data. > # Aliases can be used in HostMetadataItem but not in HostnameItem parameters. [root@zabbix2 ~]# |
############ ADVANCED PARAMETERS #################
### Option: Alias
のコメントが追加されてるだけみたいだけど、念のため、最新版に更新して
デフォルトから、変更していた部分を反映。
1 2 3 4 5 6 7 |
[root@zabbix2 ~]# cd /etc/zabbix/ [root@zabbix2 zabbix]# mv zabbix_agentd.conf zabbix_agentd.conf.20131212 [root@zabbix2 zabbix]# mv zabbix_agentd.conf.rpmnew zabbix_agentd.conf [root@zabbix2 zabbix]# vi zabbix_agentd.conf Server=127.0.0.1 ↓ Server=127.0.0.1,192.168.29.153 |
更新が終わったらリブート
1 |
[root@zabbix2 zabbix]# reboot |
バージョンアップ後の動作についても、今のところ問題なし。
ただ、「スクリーン」で該当データが存在しないときに
メッセージが文字化けするのは治んなかった。残念。
しかしRPMパッケージの更新は簡単ですね。