LoginSignup
0
0

More than 1 year has passed since last update.

CentOS 7 : Zabbix 4.0 LTS インストール時にハマったメモ

Last updated at Posted at 2022-01-02

下記サイトを参考に設定(PHPは7.4使用)

  • PHP 7.4.27
  • mysql Ver 15.1 Distrib 10.2.33-MariaDB
  • Apache/2.4.6 (CentOS)


インストール編

  • yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent 実行後に出力されるエラー(下記「installErr01」参照)はリポジトリ「base」を無効化することで対応可能

    • yum --enablerepo=remi-php74 install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent
  • yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent 実行後に出力されるエラー(下記「installErr02」参照)はパッケージ「OpenIPMI」をインストールすることで対応可能

    • sudo yum install OpenIPMI

セットアップ編

  • mysql -u root -p zabbix < create.sql 実行後に出力されるエラー(下記「setupErr01」参照)は 'Zabbixサーバ データベースデータインポートエラーについて(MariaDB10.2) - Qiita' の記事参考に設定ファイル改修することで対応可能
    • その後データベースのリセットすること
      • mysql -u root -p zabbix
      • drop database zabbix;
      • create database zabbix;
      • grant all privileges on zabbix.* to zabbix@'localhost' identified by 'password';
      • grant all privileges on zabbix.* to zabbix@'%' identified by 'password';
      • flush privileges;

installErr01
Error: Package: php-gd-5.4.16-48.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-48.el7
           Installed: php-common-7.4.13-1.el7.remi.x86_64 (@remi-php74)
               php-common(x86-64) = 7.4.13-1.el7.remi
           Available: php-common-5.4.16-48.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-48.el7
           Available: php73-common-7.3.31-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.3.31-1.el7.ius
           Available: php73-common-7.3.32-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.3.32-1.el7.ius
           Available: php73-common-7.3.33-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.3.33-1.el7.ius
           Available: php74-common-7.4.24-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.4.24-1.el7.ius
           Available: php74-common-7.4.25-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.4.25-1.el7.ius
           Available: php74-common-7.4.26-1.el7.ius.x86_64 (ius)
               php-common(x86-64) = 7.4.26-1.el7.ius
installErr02
Error: Package: zabbix-server-mysql-4.0.37-1.el7.x86_64 (zabbix)
           Requires: libOpenIPMIposix.so.0()(64bit)
Error: Package: zabbix-server-mysql-4.0.37-1.el7.x86_64 (zabbix)
           Requires: libOpenIPMI.so.0()(64bit)
setupErr01
ERROR 1118 (42000) at line 1278: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
setupErr02
Cannot connect to the database.
Unsupported charset or collation for tables: acknowledges, actions, alerts, application_discovery, application_prototype, applications, auditlog, auditlog_details, autoreg_host, conditions, config, corr_condition_tag, corr_condition_tagpair, corr_condition_tagvalue, correlation, dashboard, dchecks, drules, dservices, event_tag, events, expressions, functions, globalmacro, graph_theme, graphs, graphs_items, group_discovery, group_prototype, history_log, history_str, history_text, host_discovery, host_inventory, hostmacro, hosts, housekeeper, hstgrp, httpstep, httpstep_field, httptest, httptest_field, icon_map, icon_mapping, ids, images, interface, item_condition, item_discovery, item_preproc, items, maintenance_tag, maintenances, mappings, media, media_type, opcommand, opconditions, operations, opmessage, problem, problem_tag, profiles, proxy_autoreg_host, proxy_dhistory, proxy_history, regexps, screens, screens_items, scripts, services, services_times, sessions, slides, slideshows, sysmap_element_url, sysmap_shape, sysmap_url, sysmaps, sysmaps_elements, sysmaps_link_triggers, sysmaps_links, tag_filter, task_remote_command, task_remote_command_result, trigger_tag, triggers, users, usrgrp, valuemaps, widget, widget_field.

image.png


CentOS7 の更改先早く決めないと・・・

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0