


事前準備を終わりましたのでZabbixをZabbix repoを使用してインストールします。
Install Zabbix on CentOS 7 with yum(Apache,php,mariaDB)
https://www.rootlinks.net/2016/01/04/install-zabbix-on-centos-7-with-yumapachephpmariadb/
参考にしたサイトです。
Zabbix Documentation 2.4
1 Database creation scripts
https://www.zabbix.com/documentation/2.4/manual/appendix/install/db_scripts
3 Installation from packages From distribution packages
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages#red_hat_enterprise_linux_centos
- Zabbix Repoインストール
- Zabbixインストール
- Zabbix DBの作成
- Zabbix DB初期設定
- zabbix_server.confを設定
- zabbix serverの自動起動設定
- zabbix server起動
- Zabbix用Apache, phpの設定
- Apache reload
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
[root@host01 ~]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm を取得中 警告: /var/tmp/rpm-tmp.YjLqEB: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 79ea5ed4: NOKEY 準備しています... ################################# [100%] 更新中 / インストール中... 1:zabbix-release-2.4-1.el7 ################################# [100%] [root@host01 ~]# cat /etc/yum.repos.d/zabbix.repo [zabbix] name=Zabbix Official Repository - $basearch baseurl=http://repo.zabbix.com/zabbix/2.4/rhel/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX [zabbix-non-supported] name=Zabbix Official Repository non-supported - $basearch baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 |
zabbix-server-mysql, zabbix-web-mysql, zabbix-web-japaneseをインストールします。
zabbix-web-japaneseをインストールしないと日本語表示にした場合、正常に表示されないようです。
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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
[root@host01 ~]# yum info zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese 読み込んだプラグイン:fastestmirror zabbix | 951 B 00:00 zabbix-non-supported | 951 B 00:00 (1/2): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00 (2/2): zabbix/x86_64/primary | 16 kB 00:01 Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp zabbix 113/113 zabbix-non-supported 4/4 利用可能なパッケージ 名前 : zabbix-server-mysql アーキテクチャー : x86_64 バージョン : 2.4.7 リリース : 1.el7 容量 : 1.5 M リポジトリー : zabbix/x86_64 要約 : Zabbix server compiled to use MySQL database URL : http://www.zabbix.com/ ライセンス : GPLv2+ 説明 : Zabbix server compiled with MySQL database support. 名前 : zabbix-web-japanese アーキテクチャー : noarch バージョン : 2.4.7 リリース : 1.el7 容量 : 15 k リポジトリー : zabbix/x86_64 要約 : Japanese font for Zabbix web frontend URL : http://www.zabbix.com/ ライセンス : GPLv2+ 説明 : Japanese font for Zabbix web frontend 名前 : zabbix-web-mysql アーキテクチャー : noarch バージョン : 2.4.7 リリース : 1.el7 容量 : 15 k リポジトリー : zabbix/x86_64 要約 : Zabbix web frontend for MySQL URL : http://www.zabbix.com/ ライセンス : GPLv2+ 説明 : Zabbix web frontend for MySQL [root@host01 ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ zabbix-server-mysql.x86_64 0:2.4.7-1.el7 を インストール --> 依存性の処理をしています: zabbix-server = 2.4.7-1.el7 のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: libiksemel.so.3()(64bit) のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: libnetsnmp.so.31()(64bit) のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: libOpenIPMIposix.so.0()(64bit) のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: libodbc.so.2()(64bit) のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: libOpenIPMI.so.0()(64bit) のパッケージ: zabbix-server-mysql-2.4.7-1.el7.x86_64 ---> パッケージ zabbix-web-japanese.noarch 0:2.4.7-1.el7 を インストール --> 依存性の処理をしています: zabbix-web = 2.4.7-1.el7 のパッケージ: zabbix-web-japanese-2.4.7-1.el7.noarch --> 依存性の処理をしています: vlgothic-p-fonts のパッケージ: zabbix-web-japanese-2.4.7-1.el7.noarch ---> パッケージ zabbix-web-mysql.noarch 0:2.4.7-1.el7 を インストール --> 依存性の処理をしています: php-mysql のパッケージ: zabbix-web-mysql-2.4.7-1.el7.noarch --> トランザクションの確認を実行しています。 ---> パッケージ OpenIPMI-libs.x86_64 0:2.0.19-11.el7 を インストール --> 依存性の処理をしています: OpenIPMI-modalias = 2.0.19-11.el7 のパッケージ: OpenIPMI-libs-2.0.19-11.el7.x86_64 ---> パッケージ iksemel.x86_64 0:1.4-2.el7.centos を インストール ---> パッケージ net-snmp-libs.x86_64 1:5.7.2-24.el7 を インストール ---> パッケージ php-mysql.x86_64 0:5.4.16-36.el7_1 を インストール --> 依存性の処理をしています: php-pdo(x86-64) = 5.4.16-36.el7_1 のパッケージ: php-mysql-5.4.16-36.el7_1.x86_64 ---> パッケージ unixODBC.x86_64 0:2.3.1-11.el7 を インストール --> 依存性の処理をしています: libltdl.so.7()(64bit) のパッケージ: unixODBC-2.3.1-11.el7.x86_64 ---> パッケージ vlgothic-p-fonts.noarch 0:20130607-2.el7 を インストール --> 依存性の処理をしています: fontpackages-filesystem のパッケージ: vlgothic-p-fonts-20130607-2.el7.noarch ---> パッケージ zabbix-server.x86_64 0:2.4.7-1.el7 を インストール --> 依存性の処理をしています: fping >= 3 のパッケージ: zabbix-server-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: zabbix のパッケージ: zabbix-server-2.4.7-1.el7.x86_64 --> 依存性の処理をしています: net-snmp のパッケージ: zabbix-server-2.4.7-1.el7.x86_64 ---> パッケージ zabbix-web.noarch 0:2.4.7-1.el7 を インストール --> 依存性の処理をしています: php-mbstring のパッケージ: zabbix-web-2.4.7-1.el7.noarch --> 依存性の処理をしています: dejavu-sans-fonts のパッケージ: zabbix-web-2.4.7-1.el7.noarch --> 依存性の処理をしています: php-gd のパッケージ: zabbix-web-2.4.7-1.el7.noarch --> 依存性の処理をしています: php-bcmath のパッケージ: zabbix-web-2.4.7-1.el7.noarch --> 依存性の処理をしています: php-xml のパッケージ: zabbix-web-2.4.7-1.el7.noarch --> トランザクションの確認を実行しています。 ---> パッケージ OpenIPMI-modalias.x86_64 0:2.0.19-11.el7 を インストール ---> パッケージ dejavu-sans-fonts.noarch 0:2.33-6.el7 を インストール --> 依存性の処理をしています: dejavu-fonts-common = 2.33-6.el7 のパッケージ: dejavu-sans-fonts-2.33-6.el7.noarch ---> パッケージ fontpackages-filesystem.noarch 0:1.44-8.el7 を インストール ---> パッケージ fping.x86_64 0:3.10-1.el7 を インストール ---> パッケージ libtool-ltdl.x86_64 0:2.4.2-20.el7 を インストール ---> パッケージ net-snmp.x86_64 1:5.7.2-24.el7 を インストール --> 依存性の処理をしています: net-snmp-agent-libs = 1:5.7.2-24.el7 のパッケージ: 1:net-snmp-5.7.2-24.el7.x86_64 --> 依存性の処理をしています: libsensors.so.4()(64bit) のパッケージ: 1:net-snmp-5.7.2-24.el7.x86_64 --> 依存性の処理をしています: libnetsnmptrapd.so.31()(64bit) のパッケージ: 1:net-snmp-5.7.2-24.el7.x86_64 --> 依存性の処理をしています: libnetsnmpmibs.so.31()(64bit) のパッケージ: 1:net-snmp-5.7.2-24.el7.x86_64 --> 依存性の処理をしています: libnetsnmpagent.so.31()(64bit) のパッケージ: 1:net-snmp-5.7.2-24.el7.x86_64 ---> パッケージ php-bcmath.x86_64 0:5.4.16-36.el7_1 を インストール ---> パッケージ php-gd.x86_64 0:5.4.16-36.el7_1 を インストール --> 依存性の処理をしています: libpng15.so.15(PNG15_0)(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libjpeg.so.62(LIBJPEG_6.2)(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libt1.so.5()(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libpng15.so.15()(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libjpeg.so.62()(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libXpm.so.4()(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libX11.so.6()(64bit) のパッケージ: php-gd-5.4.16-36.el7_1.x86_64 ---> パッケージ php-mbstring.x86_64 0:5.4.16-36.el7_1 を インストール ---> パッケージ php-pdo.x86_64 0:5.4.16-36.el7_1 を インストール ---> パッケージ php-xml.x86_64 0:5.4.16-36.el7_1 を インストール --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.24)(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.22)(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.18)(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.13)(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libxslt.so.1(LIBXML2_1.0.11)(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libxslt.so.1()(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 --> 依存性の処理をしています: libexslt.so.0()(64bit) のパッケージ: php-xml-5.4.16-36.el7_1.x86_64 ---> パッケージ zabbix.x86_64 0:2.4.7-1.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ dejavu-fonts-common.noarch 0:2.33-6.el7 を インストール ---> パッケージ libX11.x86_64 0:1.6.3-2.el7 を インストール --> 依存性の処理をしています: libX11-common >= 1.6.3-2.el7 のパッケージ: libX11-1.6.3-2.el7.x86_64 --> 依存性の処理をしています: libxcb.so.1()(64bit) のパッケージ: libX11-1.6.3-2.el7.x86_64 ---> パッケージ libXpm.x86_64 0:3.5.11-3.el7 を インストール ---> パッケージ libjpeg-turbo.x86_64 0:1.2.90-5.el7 を インストール ---> パッケージ libpng.x86_64 2:1.5.13-7.el7_2 を インストール ---> パッケージ libxslt.x86_64 0:1.1.28-5.el7 を インストール ---> パッケージ lm_sensors-libs.x86_64 0:3.3.4-11.el7 を インストール ---> パッケージ net-snmp-agent-libs.x86_64 1:5.7.2-24.el7 を インストール ---> パッケージ t1lib.x86_64 0:5.1.2-14.el7 を インストール --> トランザクションの確認を実行しています。 ---> パッケージ libX11-common.noarch 0:1.6.3-2.el7 を インストール ---> パッケージ libxcb.x86_64 0:1.11-4.el7 を インストール --> 依存性の処理をしています: libXau.so.6()(64bit) のパッケージ: libxcb-1.11-4.el7.x86_64 --> トランザクションの確認を実行しています。 ---> パッケージ libXau.x86_64 0:1.0.8-2.1.el7 を インストール --> 依存性解決を終了しました。 依存性を解決しました ================================================================================ Package アーキテクチャー バージョン リポジトリー 容量 ================================================================================ インストール中: zabbix-server-mysql x86_64 2.4.7-1.el7 zabbix 1.5 M zabbix-web-japanese noarch 2.4.7-1.el7 zabbix 15 k zabbix-web-mysql noarch 2.4.7-1.el7 zabbix 15 k 依存性関連でのインストールをします: OpenIPMI-libs x86_64 2.0.19-11.el7 base 501 k OpenIPMI-modalias x86_64 2.0.19-11.el7 base 15 k dejavu-fonts-common noarch 2.33-6.el7 base 64 k dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k fping x86_64 3.10-1.el7 zabbix-non-supported 40 k iksemel x86_64 1.4-2.el7.centos zabbix-non-supported 49 k libX11 x86_64 1.6.3-2.el7 base 605 k libX11-common noarch 1.6.3-2.el7 base 162 k libXau x86_64 1.0.8-2.1.el7 base 29 k libXpm x86_64 3.5.11-3.el7 base 54 k libjpeg-turbo x86_64 1.2.90-5.el7 base 134 k libpng x86_64 2:1.5.13-7.el7_2 updates 213 k libtool-ltdl x86_64 2.4.2-20.el7 base 49 k libxcb x86_64 1.11-4.el7 base 189 k libxslt x86_64 1.1.28-5.el7 base 242 k lm_sensors-libs x86_64 3.3.4-11.el7 base 40 k net-snmp x86_64 1:5.7.2-24.el7 base 321 k net-snmp-agent-libs x86_64 1:5.7.2-24.el7 base 702 k net-snmp-libs x86_64 1:5.7.2-24.el7 base 747 k php-bcmath x86_64 5.4.16-36.el7_1 base 56 k php-gd x86_64 5.4.16-36.el7_1 base 126 k php-mbstring x86_64 5.4.16-36.el7_1 base 503 k php-mysql x86_64 5.4.16-36.el7_1 base 99 k php-pdo x86_64 5.4.16-36.el7_1 base 97 k php-xml x86_64 5.4.16-36.el7_1 base 124 k t1lib x86_64 5.1.2-14.el7 base 166 k unixODBC x86_64 2.3.1-11.el7 base 413 k vlgothic-p-fonts noarch 20130607-2.el7 base 2.2 M zabbix x86_64 2.4.7-1.el7 zabbix 161 k zabbix-server x86_64 2.4.7-1.el7 zabbix 22 k zabbix-web noarch 2.4.7-1.el7 zabbix 3.4 M トランザクションの要約 ================================================================================ インストール 3 パッケージ (+32 個の依存関係のパッケージ) 総ダウンロード容量: 14 M インストール容量: 57 M Downloading packages: (1/35): OpenIPMI-modalias-2.0.19-11.el7.x86_64.rpm | 15 kB 00:00 (2/35): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00 (3/35): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00 (4/35): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00 (5/35): libX11-1.6.3-2.el7.x86_64.rpm | 605 kB 00:00 (6/35): libX11-common-1.6.3-2.el7.noarch.rpm | 162 kB 00:00 (7/35): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00 (8/35): libXpm-3.5.11-3.el7.x86_64.rpm | 54 kB 00:00 (9/35): libjpeg-turbo-1.2.90-5.el7.x86_64.rpm | 134 kB 00:00 (10/35): libtool-ltdl-2.4.2-20.el7.x86_64.rpm | 49 kB 00:00 (11/35): libxcb-1.11-4.el7.x86_64.rpm | 189 kB 00:00 (12/35): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00 (13/35): lm_sensors-libs-3.3.4-11.el7.x86_64.rpm | 40 kB 00:00 (14/35): net-snmp-5.7.2-24.el7.x86_64.rpm | 321 kB 00:00 (15/35): libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00 (16/35): net-snmp-agent-libs-5.7.2-24.el7.x86_64.rpm | 702 kB 00:00 (17/35): net-snmp-libs-5.7.2-24.el7.x86_64.rpm | 747 kB 00:00 (18/35): php-bcmath-5.4.16-36.el7_1.x86_64.rpm | 56 kB 00:00 (19/35): php-gd-5.4.16-36.el7_1.x86_64.rpm | 126 kB 00:00 (20/35): php-mbstring-5.4.16-36.el7_1.x86_64.rpm | 503 kB 00:00 (21/35): php-mysql-5.4.16-36.el7_1.x86_64.rpm | 99 kB 00:00 (22/35): php-pdo-5.4.16-36.el7_1.x86_64.rpm | 97 kB 00:00 (23/35): php-xml-5.4.16-36.el7_1.x86_64.rpm | 124 kB 00:00 (24/35): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00 (25/35): unixODBC-2.3.1-11.el7.x86_64.rpm | 413 kB 00:00 (26/35): vlgothic-p-fonts-20130607-2.el7.noarch.rpm | 2.2 MB 00:00 warning: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/fping-3.10-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY fping-3.10-1.el7.x86_64.rpm の公開鍵がインストールされていません (27/35): fping-3.10-1.el7.x86_64.rpm | 40 kB 00:01 (28/35): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:01 zabbix-server-2.4.7-1.el7.x86_64.rpm の公開鍵がインストールされていません06 ETA (29/35): zabbix-server-2.4.7-1.el7.x86_64.rpm | 22 kB 00:01 (30/35): zabbix-2.4.7-1.el7.x86_64.rpm | 161 kB 00:02 (31/35): OpenIPMI-libs-2.0.19-11.el7.x86_64.rpm | 501 kB 00:05 (32/35): zabbix-web-2.4.7-1.el7.noarch.rpm | 3.4 MB 00:03 (33/35): zabbix-web-japanese-2.4.7-1.el7.noarch.rpm | 15 kB 00:00 (34/35): zabbix-web-mysql-2.4.7-1.el7.noarch.rpm | 15 kB 00:01 (35/35): zabbix-server-mysql-2.4.7-1.el7.x86_64.rpm | 1.5 MB 00:07 -------------------------------------------------------------------------------- 合計 1.3 MB/s | 14 MB 00:10 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX から鍵を取得中です。 Importing GPG key 0x79EA5ED4: Userid : "Zabbix SIA <packager@zabbix.com>" Fingerprint: fbab d5fb 2025 5eca b22e e194 d13d 58e4 79ea 5ed4 Package : zabbix-release-2.4-1.el7.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX Running transaction check Running transaction test Transaction test succeeded Running transaction 警告: RPMDB は yum 以外で変更されました。 インストール中 : 1:net-snmp-libs-5.7.2-24.el7.x86_64 1/35 インストール中 : iksemel-1.4-2.el7.centos.x86_64 2/35 インストール中 : lm_sensors-libs-3.3.4-11.el7.x86_64 3/35 インストール中 : fontpackages-filesystem-1.44-8.el7.noarch 4/35 インストール中 : dejavu-fonts-common-2.33-6.el7.noarch 5/35 インストール中 : dejavu-sans-fonts-2.33-6.el7.noarch 6/35 インストール中 : vlgothic-p-fonts-20130607-2.el7.noarch 7/35 インストール中 : 1:net-snmp-agent-libs-5.7.2-24.el7.x86_64 8/35 インストール中 : 1:net-snmp-5.7.2-24.el7.x86_64 9/35 インストール中 : php-bcmath-5.4.16-36.el7_1.x86_64 10/35 インストール中 : php-mbstring-5.4.16-36.el7_1.x86_64 11/35 インストール中 : php-pdo-5.4.16-36.el7_1.x86_64 12/35 インストール中 : php-mysql-5.4.16-36.el7_1.x86_64 13/35 インストール中 : libXau-1.0.8-2.1.el7.x86_64 14/35 インストール中 : libxcb-1.11-4.el7.x86_64 15/35 インストール中 : libxslt-1.1.28-5.el7.x86_64 16/35 インストール中 : php-xml-5.4.16-36.el7_1.x86_64 17/35 インストール中 : libX11-common-1.6.3-2.el7.noarch 18/35 インストール中 : libX11-1.6.3-2.el7.x86_64 19/35 インストール中 : t1lib-5.1.2-14.el7.x86_64 20/35 インストール中 : libXpm-3.5.11-3.el7.x86_64 21/35 インストール中 : OpenIPMI-modalias-2.0.19-11.el7.x86_64 22/35 インストール中 : OpenIPMI-libs-2.0.19-11.el7.x86_64 23/35 インストール中 : zabbix-2.4.7-1.el7.x86_64 24/35 インストール中 : 2:libpng-1.5.13-7.el7_2.x86_64 25/35 インストール中 : libtool-ltdl-2.4.2-20.el7.x86_64 26/35 インストール中 : unixODBC-2.3.1-11.el7.x86_64 27/35 インストール中 : libjpeg-turbo-1.2.90-5.el7.x86_64 28/35 インストール中 : php-gd-5.4.16-36.el7_1.x86_64 29/35 インストール中 : zabbix-web-mysql-2.4.7-1.el7.noarch 30/35 インストール中 : zabbix-web-2.4.7-1.el7.noarch 31/35 インストール中 : fping-3.10-1.el7.x86_64 32/35 インストール中 : zabbix-server-mysql-2.4.7-1.el7.x86_64 33/35 インストール中 : zabbix-server-2.4.7-1.el7.x86_64 34/35 インストール中 : zabbix-web-japanese-2.4.7-1.el7.noarch 35/35 検証中 : fping-3.10-1.el7.x86_64 1/35 検証中 : libjpeg-turbo-1.2.90-5.el7.x86_64 2/35 検証中 : libtool-ltdl-2.4.2-20.el7.x86_64 3/35 検証中 : libxcb-1.11-4.el7.x86_64 4/35 検証中 : 2:libpng-1.5.13-7.el7_2.x86_64 5/35 検証中 : dejavu-fonts-common-2.33-6.el7.noarch 6/35 検証中 : fontpackages-filesystem-1.44-8.el7.noarch 7/35 検証中 : OpenIPMI-libs-2.0.19-11.el7.x86_64 8/35 検証中 : libX11-1.6.3-2.el7.x86_64 9/35 検証中 : lm_sensors-libs-3.3.4-11.el7.x86_64 10/35 検証中 : zabbix-2.4.7-1.el7.x86_64 11/35 検証中 : 1:net-snmp-agent-libs-5.7.2-24.el7.x86_64 12/35 検証中 : OpenIPMI-modalias-2.0.19-11.el7.x86_64 13/35 検証中 : php-xml-5.4.16-36.el7_1.x86_64 14/35 検証中 : php-mysql-5.4.16-36.el7_1.x86_64 15/35 検証中 : zabbix-web-mysql-2.4.7-1.el7.noarch 16/35 検証中 : libX11-common-1.6.3-2.el7.noarch 17/35 検証中 : t1lib-5.1.2-14.el7.x86_64 18/35 検証中 : libxslt-1.1.28-5.el7.x86_64 19/35 検証中 : unixODBC-2.3.1-11.el7.x86_64 20/35 検証中 : zabbix-web-2.4.7-1.el7.noarch 21/35 検証中 : libXpm-3.5.11-3.el7.x86_64 22/35 検証中 : dejavu-sans-fonts-2.33-6.el7.noarch 23/35 検証中 : php-gd-5.4.16-36.el7_1.x86_64 24/35 検証中 : zabbix-server-mysql-2.4.7-1.el7.x86_64 25/35 検証中 : zabbix-web-japanese-2.4.7-1.el7.noarch 26/35 検証中 : libXau-1.0.8-2.1.el7.x86_64 27/35 検証中 : php-pdo-5.4.16-36.el7_1.x86_64 28/35 検証中 : 1:net-snmp-5.7.2-24.el7.x86_64 29/35 検証中 : 1:net-snmp-libs-5.7.2-24.el7.x86_64 30/35 検証中 : iksemel-1.4-2.el7.centos.x86_64 31/35 検証中 : vlgothic-p-fonts-20130607-2.el7.noarch 32/35 検証中 : php-mbstring-5.4.16-36.el7_1.x86_64 33/35 検証中 : php-bcmath-5.4.16-36.el7_1.x86_64 34/35 検証中 : zabbix-server-2.4.7-1.el7.x86_64 35/35 インストール: zabbix-server-mysql.x86_64 0:2.4.7-1.el7 zabbix-web-japanese.noarch 0:2.4.7-1.el7 zabbix-web-mysql.noarch 0:2.4.7-1.el7 依存性関連をインストールしました: OpenIPMI-libs.x86_64 0:2.0.19-11.el7 OpenIPMI-modalias.x86_64 0:2.0.19-11.el7 dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 fping.x86_64 0:3.10-1.el7 iksemel.x86_64 0:1.4-2.el7.centos libX11.x86_64 0:1.6.3-2.el7 libX11-common.noarch 0:1.6.3-2.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.11-3.el7 libjpeg-turbo.x86_64 0:1.2.90-5.el7 libpng.x86_64 2:1.5.13-7.el7_2 libtool-ltdl.x86_64 0:2.4.2-20.el7 libxcb.x86_64 0:1.11-4.el7 libxslt.x86_64 0:1.1.28-5.el7 lm_sensors-libs.x86_64 0:3.3.4-11.el7 net-snmp.x86_64 1:5.7.2-24.el7 net-snmp-agent-libs.x86_64 1:5.7.2-24.el7 net-snmp-libs.x86_64 1:5.7.2-24.el7 php-bcmath.x86_64 0:5.4.16-36.el7_1 php-gd.x86_64 0:5.4.16-36.el7_1 php-mbstring.x86_64 0:5.4.16-36.el7_1 php-mysql.x86_64 0:5.4.16-36.el7_1 php-pdo.x86_64 0:5.4.16-36.el7_1 php-xml.x86_64 0:5.4.16-36.el7_1 t1lib.x86_64 0:5.1.2-14.el7 unixODBC.x86_64 0:2.3.1-11.el7 vlgothic-p-fonts.noarch 0:20130607-2.el7 zabbix.x86_64 0:2.4.7-1.el7 zabbix-server.x86_64 0:2.4.7-1.el7 zabbix-web.noarch 0:2.4.7-1.el7 完了しました! |
DB名:zabbix, DBユーザ:zabbix, DBユーザパスワード:zabbixpassで作成しています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[root@host01 ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 5.5.44-MariaDB MariaDB Server Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpass'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> quit Bye |
1 2 3 |
[root@host01 ~]# mysql -uzabbix -pzabbixpass zabbix < /usr/share/doc/zabbix-server-mysql-2.4.7/create/schema.sql [root@host01 ~]# mysql -uzabbix -pzabbixpass zabbix < /usr/share/doc/zabbix-server-mysql-2.4.7/create/images.sql [root@host01 ~]# mysql -uzabbix -pzabbixpass zabbix < /usr/share/doc/zabbix-server-mysql-2.4.7/create/data.sql |
/etc/zabbix/zabbix_server.confを編集してDBHost, DBName,
DBUser, DBPasswordを設定します。
今回は下記の設定を行いました。
1 2 3 4 |
DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbixpass |
1 2 3 4 5 6 |
[root@host01 ~]# systemctl list-unit-files | grep zabbix zabbix-server.service disabled [root@host01 ~]# systemctl enable zabbix-server Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service. [root@host01 ~]# systemctl list-unit-files | grep zabbix zabbix-server.service enabled |
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 |
[root@host01 ~]# systemctl start zabbix-server [root@host01 ~]# systemctl status zabbix-server ● zabbix-server.service - Zabbix Server Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled) Active: active (running) since 土 2016-01-02 15:36:55 JST; 6s ago Process: 42547 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS) Main PID: 42549 (zabbix_server) CGroup: /system.slice/zabbix-server.service tq42549 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf tq42554 /usr/sbin/zabbix_server: configuration syncer [waiting 60 ... tq42555 /usr/sbin/zabbix_server: db watchdog [synced alerts config... tq42556 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.0000... tq42558 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.0000... tq42559 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.0000... tq42560 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.0000... tq42561 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.0000... tq42562 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 valu... tq42563 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.0... tq42564 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.0... tq42565 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.0... tq42566 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.0... tq42567 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.0... tq42568 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0... tq42569 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, ... tq42570 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 ... tq42571 /usr/sbin/zabbix_server: timer #1 [processed 0 triggers, 0... tq42572 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0... tq42573 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules ... tq42574 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items... tq42575 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items... tq42576 /usr/sbin/zabbix_server: history syncer #3 [synced 0 items... tq42577 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items... tq42578 /usr/sbin/zabbix_server: escalator [processed 0 escalation... tq42579 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data w... mq42580 /usr/sbin/zabbix_server: self-monitoring [processed data i... 1月 02 15:36:55 host01.rootlinks.net systemd[1]: Starting Zabbix Server... 1月 02 15:36:55 host01.rootlinks.net systemd[1]: Started Zabbix Server. |
Zabbix用Apache, phpの設定は/etc/httpd/conf.d/zabbix.confに記述されています。
取り敢えずデフォルトのままで大丈夫と思います。
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 |
[root@host01 ~]# cat /etc/httpd/conf.d/zabbix.conf # # Zabbix monitoring system php web frontend # Alias /zabbix /usr/share/zabbix <Directory "/usr/share/zabbix"> Options FollowSymLinks AllowOverride None Require all granted <IfModule mod_php5.c> php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 # php_value date.timezone Europe/Riga </IfModule> </Directory> <Directory "/usr/share/zabbix/conf"> Require all denied </Directory> <Directory "/usr/share/zabbix/include"> Require all denied </Directory> |
Apacheの設定情報を再読み込みします。
1 |
[root@host01 ~]# systemctl reload httpd |
次回はZabbixセットアップウィザードを実行します。