{"id":915,"date":"2020-10-10T23:05:43","date_gmt":"2020-10-10T14:05:43","guid":{"rendered":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=915"},"modified":"2022-05-25T01:27:25","modified_gmt":"2022-05-24T16:27:25","slug":"centos8%e3%81%abzabbix5%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/915","title":{"rendered":"CentOS8\u306bZabbix5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"\n<p>OS: CentOS Linux release 8.2.2004 (Core)<br>Zabbix 5.0 LTS<br>MySQL: 8.0.21<\/p>\n\n\n\n<p>CentOS8.2\u306bZabbix5.0\u3092\u5c0e\u5165\u3057\u3088\u3046\u3068\u601d\u3044\u7acb\u3063\u3066<a href=\"https:\/\/www.zabbix.com\/jp\/download?zabbix=5.0&amp;os_distribution=centos&amp;os_version=8&amp;db=mysql&amp;ws=apache\">\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u624b\u9806<\/a>\u306b\u5f93\u3044\u306a\u304c\u3089\u4f5c\u696d\u3092\u3053\u306a\u3057\u3066\u3044\u305f\u306e\u3067\u3042\u308b\u304c\u3001\u8a18\u8f09\u3057\u3066\u3042\u308b\u5185\u5bb9\u3060\u3051\u3067\u306f\u76ee\u7684\u304c\u9054\u6210\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u6b64\u308c\u304c\u305f\u3081\u306b\u3001\u5e7e\u3089\u304b\u306e\u30e1\u30e2\u3092\u4ed8\u3051\u52a0\u3048\u306a\u304c\u3089\u624b\u9806\u306b\u8d77\u3053\u3057\u306a\u304a\u305d\u3046\u3068\u3044\u3046\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1-1024x419.png\" alt=\"\" class=\"wp-image-917\" width=\"512\" height=\"210\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1-1024x419.png 1024w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1-300x123.png 300w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1-768x315.png 768w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-1.png 1233w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><figcaption>\u56f31. Zabbix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u30b5\u30fc\u30d0\u306eOS\u3068\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u9078\u629e<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n\n\n\n<p>Zabbix\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b\u3001\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4e88\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002MySQL\u3092\u4f7f\u7528\u3059\u308b\u5fc3\u3065\u3082\u308a\u3067\u3044\u305f\u304b\u3089\u305d\u306e\u3088\u3046\u306b\u6bb5\u53d6\u308a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf install mysql-server\n$ sudo systemctl enable mysqld.service\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/mysqld.service \u2192 \/usr\/lib\/systemd\/system\/mysqld.service.\n$ sudo systemctl start mysqld.service<\/pre>\n\n\n\n<p>root\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30bb\u30c3\u30c8\u3057\u305f\u308a\u4e0d\u8981\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u524a\u9664\u3092\u7c21\u4fbf\u306b\u3053\u306a\u3059\u305f\u3081\u306b <code>mysql_secure_installation<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3002\u6700\u521d\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u5f37\u5ea6\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u59cb\u307e\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo mysql_secure_installation\n(snip)\nVALIDATE PASSWORD COMPONENT can be used to test passwords\nand improve security. It checks the strength of password\nand allows the users to set only those passwords which are\nsecure enough. Would you like to setup VALIDATE PASSWORD component?\n\n<strong class=\"orange\">Press y|Y for Yes, any other key for No: y<\/strong><\/pre>\n\n\n\n<p>\u5f37\u5ea6\u3092\u691c\u8a3c\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u3068\u3057\u3066\u9078\u629e\u3067\u304d\u308b\u306e\u306fLOW\u30fbMEDIUM\u30fbSTRONG\u306e3\u7a2e\u985e\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u305e\u308c\u306f\u6b21\u306e\u3088\u3046\u306a\u6761\u4ef6\u3092\u8981\u6c42\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\" style=\"font-size:14px\"><table><thead><tr><th>\u30dd\u30ea\u30b7\u30fc<\/th><th>\u6761\u4ef6<\/th><\/tr><\/thead><tbody><tr><td>LOW<\/td><td>8\u6587\u5b57\u4ee5\u4e0a<\/td><\/tr><tr><td>MEDIUM<\/td><td>LOW\u306e\u6761\u4ef6\u306b\u52a0\u3048\u3066\u6570\u5b57\u3068\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3068\u8a18\u53f7\u304c\u5fc5\u8981<\/td><\/tr><tr><td>STRONG<\/td><td>MEDIUM\u306e\u6761\u4ef6\u306b\u52a0\u3048\u8f9e\u66f8\u30d5\u30a1\u30a4\u30eb\u306e\u5358\u8a9e\u306b\u30de\u30c3\u30c1\u3057\u3066\u306f\u306a\u3089\u306a\u3044<\/td><\/tr><\/tbody><\/table><figcaption>\u88681. \u30dd\u30ea\u30b7\u30fc\u3068\u6761\u4ef6<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">There are three levels of password validation policy:\n\nLOW    Length &gt;= 8\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary file\n<strong class=\"orange\">\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0\nPlease set the password for root here.<\/strong>\n(snip)<\/pre>\n\n\n\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30bb\u30c3\u30c8\u3057\u305f\u3089\u6b21\u3078\u79fb\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067MySQL\u306f\u8ab0\u3082\u304c\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u533f\u540d\u30e6\u30fc\u30b6\u304c\u4f5c\u6210\u3055\u308c\u308b\u304b\u3089\u672c\u756a\u74b0\u5883\u3067\u306f\u524a\u9664\u3059\u3079\u304d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3051\u308c\u3069\u3082\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fMySQL\u306b\u306f\u305d\u306e\u3088\u3046\u306a\u30e6\u30fc\u30b6\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u7136\u3057\u4e4d\u3089\u5ff5\u306e\u70ba\u3001\u524a\u9664\u3059\u308b\u3088\u3046\u8981\u8acb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">By default, a MySQL installation has an anonymous user,\nallowing anyone to log into MySQL without having to have\na user account created for them. This is intended only for\ntesting, and to make the installation go a bit smoother.\nYou should remove them before moving into a production\nenvironment.\n\n<strong class=\"orange\">Remove anonymous users? (Press y|Y for Yes, any other key for No) : y<\/strong><\/pre>\n\n\n\n<p>\u6b21\u3044\u3067\u3001root\u30e6\u30fc\u30b6\u304c\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u63a5\u7d9a\u3059\u308b\u6a29\u5229\u3092\u5265\u596a\u3059\u308b\u304b\u805e\u304b\u308c\u308b\u3002\u6b64\u308c\u3082\u5148\u3068\u540c\u69d8\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306eMySQL\u306b\u306f\u898b\u5f53\u305f\u3089\u306a\u3044\u3051\u308c\u3069\u3082\u4e00\u5fdc\u3001Yes\u3068\u5fdc\u3058\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Normally, root should only be allowed to connect from\n'localhost'. This ensures that someone cannot guess at\nthe root password from the network.\n\n<strong class=\"orange\">Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y<\/strong><\/pre>\n\n\n\n<p>test\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u305d\u308c\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3082\u3084\u306f\u308a\u5b58\u5728\u3057\u306a\u3044\u3051\u308c\u3069\u524a\u9664\u3059\u308b\u3088\u3046\u9078\u629e\u80a2\u306b\u7b54\u3048\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">By default, MySQL comes with a database named 'test' that\nanyone can access. This is also intended only for testing,\nand should be removed before moving into a production\nenvironment.\n\n<strong class=\"orange\">Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y<\/strong><\/pre>\n\n\n\n<p>\u6700\u5f8c\u306b\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(snip)\n<strong class=\"orange\">Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y<\/strong><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Zabbix\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u3089Zabbix\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u624b\u5f152\u756a\u76ee\u306b\u3042\u308b\u4f5c\u696d\u3092\u57f7\u308a\u884c\u3046\u3002Zabbix\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\u3057\u3001Zabbix\u30b5\u30fc\u30d0\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3001Zabbix\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/8\/x86_64\/zabbix-release-5.0-1.el8.noarch.rpm\n$ sudo dnf clean all\n$ sudo dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent<\/pre>\n\n\n\n<p>\u7d9a\u3044\u3066zabbix\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002\u6587\u5b57\u30b3\u30fc\u30c9\u3084\u7167\u5408\u9806\u5e8f\u306e\u6307\u5b9a\u304cUTF8MB3\u3067\u3042\u308b\u305f\u3081\u306b\u8b66\u544a\u304c\u51fa\u3066\u3044\u308b\u3051\u308c\u3069\u3082\u3001\u6b64\u308c\u3092\u4fee\u6b63\u3059\u308b\u306b\u306f\u30b9\u30ad\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u306b\u624b\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u751f\u3058\u305d\u3046\u3067\u3042\u308b\u3057\u3001\u305d\u3082\u7d75\u6587\u5b57\u3092\u4f7f\u7528\u3059\u308b\u8a08\u753b\u304c\u306a\u3044\u304b\u3089\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u3044\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ mysql -uroot -p\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\nQuery OK, 1 row affected, 2 warnings (0.00 sec)\n\nmysql&gt; show warnings;\n+---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| Level   | Code | Message                                                                                                                                                                     |\n+---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| Warning | 3719 | 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. |\n| Warning | 3778 | 'utf8_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.                                     |\n+---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n2 rows in set (0.00 sec)<\/pre>\n\n\n\n<p>\u5f15\u304d\u7d9a\u304dzabbix\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u6a29\u9650\u306e\u8a2d\u5b9a\u3092\u5b9f\u65bd\u3057\u3066MySQL\u306b\u307e\u3064\u308f\u308b\u8a2d\u5b9a\u306f\u7d42\u3044\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; create user zabbix@localhost identified by 'p@ssw0rd';\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost;\nmysql&gt; quit;<\/pre>\n\n\n\n<p>\u305d\u308c\u304b\u3089\u30b9\u30ad\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u307e\u3064\u308f\u308b\u8af8\u3005\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -uzabbix -p zabbix\nEnter password:<\/pre>\n\n\n\n<p>Zabbix\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u624b\u3092\u5165\u308c\u308b\u3002\u6700\u4f4e\u9650\u3001\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u7b87\u6240\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/zabbix\/zabbix_server.conf\n# DBPassword=\nDBPassword=p@ssw0rd<\/pre>\n\n\n\n<p>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3092\u3088\u3057\u306a\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/php-fpm.d\/zabbix.conf\n; php_value[date.timezone] = Europe\/Riga\nphp_value[date.timezone] = Asia\/Tokyo<\/pre>\n\n\n\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u624b\u5f15\u3067\u306f\u3053\u306e\u3042\u3068\u3044\u3088\u3044\u3088Zabbix\u30b5\u30fc\u30d0\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306a\u3069\u306e\u8d77\u52d5\u3092\u624b\u639b\u3051\u308b\u3051\u308c\u3069\u3082\u3001zabbix-server\u3060\u3051\u304c\u8d77\u52d5\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070SELinux\u304c\u6709\u52b9\u3067\u4e14\u3064\u3001\u9069\u5f53\u306a\u8a2d\u5b9a\u304c\u65bd\u3055\u308c\u3066\u3044\u306a\u3044\u7591\u3044\u304c\u3064\u3088\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/github.com\/SELinuxProject\/selinux\"><img decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/selinux-logo.png\" alt=\"\" class=\"wp-image-924\"\/><\/a><figcaption>\u56f32. SELinux\u306e\u30ed\u30b4<\/figcaption><\/figure><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm\nJob for zabbix-server.service failed because the control process exited with error code.\nSee \"systemctl status zabbix-server.service\" and \"journalctl -xe\" for details.<\/pre>\n\n\n\n<p>\u3055\u308a\u3068\u3066SELinux\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306fZabbix\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u89e6\u308c\u3089\u308c\u3066\u3044\u306a\u3044\u3002SELinux\u306f\u307e\u3063\u305f\u304f\u306e\u9580\u5916\u6f22\u3067\u3042\u308b\u304b\u3089\u8a2d\u5b9a\u3092\u7121\u52b9\u306b\u3059\u308b\u3088\u308a\u624b\u7acb\u3066\u304c\u306a\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/sysconfig\/selinux\n#SELINUX=enforcing\nSELINUX=disabled\n$ sudo reboot\n\n$ getenforce\nDisabled<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u3088\u3046\u3084\u3063\u3068zabbix-server\u3082\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm\n$ sudo systemctl enable zabbix-server zabbix-agent httpd php-fpm\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/zabbix-server.service \u2192 \/usr\/lib\/systemd\/system\/zabbix-server.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/zabbix-agent.service \u2192 \/usr\/lib\/systemd\/system\/zabbix-agent.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/httpd.service \u2192 \/usr\/lib\/systemd\/system\/httpd.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/php-fpm.service \u2192 \/usr\/lib\/systemd\/system\/php-fpm.service.<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u5b89\u5fc3\u3057\u304d\u3063\u3066\u30d6\u30e9\u30a6\u30b6\u304b\u3089 http:\/\/server_ip_or_name\/zabbix \u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3089\u3001\u3061\u3063\u3068\u3082\u7e4b\u304c\u3089\u306a\u304f\u3066\u80a9\u3092\u843d\u3068\u3059\u4e8b\u4f8b\u3092\u5e7e\u3089\u304b\u898b\u805e\u3057\u305f\u3002\u305d\u3046\u3044\u3046\u5834\u5408\u306ffirewalld\u304c80\u756a\u308410051\u756a\u30dd\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u906e\u65ad\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u6b86\u3069\u3067\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u524d\u6bb5\u306b\u8a2d\u7f6e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u3088\u3063\u3066Zabbix\u30b5\u30fc\u30d0\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u304b\u3089firewalld\u306f\u4e0d\u8981\u3001\u3068\u3044\u3046\u5834\u5408\u306a\u3089\u307e\u3063\u305f\u304f\u6b62\u3081\u3066\u3057\u307e\u3063\u3066\u3082\u3088\u3044\u304b\u3089\u3053\u3046\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl disable firewalld.service\n$ sudo systemctl stop firewalld.service<\/pre>\n\n\n\n<p>\u4e00\u65b9\u3067firewalld\u3092\u304a\u3044\u305d\u308c\u3068\u7121\u52b9\u306b\u306f\u3067\u304d\u306a\u3044\u74b0\u5883\u3067\u3042\u308c\u3070\u3001\u3072\u3068\u307e\u305a\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092\u6295\u5165\u3059\u308b\u3053\u3068\u3067Zabbix\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3078\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo firewall-cmd --zone=public --add-service=http --permanent\n$ sudo firewall-cmd --zone=public --add-port=10051\/tcp --permanent\n$ sudo firewall-cmd --reload\n$ sudo firewall-cmd --list-all<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-2.png\" alt=\"\" class=\"wp-image-918\" width=\"652\" height=\"413\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-2.png 869w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-2-300x190.png 300w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-2-768x486.png 768w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><figcaption>\u56f33. \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u521d\u671f\u753b\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<p>PHP\u74b0\u5883\u306e\u30c1\u30a7\u30c3\u30af\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u306a\u3069\u3092\u7d4c\u3066\u9042\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-3.png\" alt=\"\" class=\"wp-image-919\" width=\"647\" height=\"407\"\/><\/a><figcaption>\u56f34. Zabbix\u30b5\u30fc\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u69d8\u5b50<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-4.1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-4.1-1024x422.png\" alt=\"\" class=\"wp-image-923\" width=\"768\" height=\"317\"\/><\/a><figcaption>\u56f35. \u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u753b\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u521d\u671f\u72b6\u614b\u3067\u306fAdmin\u30e6\u30fc\u30b6\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u300czabbix\u300d \u3067\u30ed\u30b0\u30a4\u30f3\u304c\u53ef\u80fd\u3067\u3042\u308b\u3002\u4e8b\u3053\u3053\u306b\u81f3\u3063\u3066\u3088\u3046\u3084\u304fzabbix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3042\u308b\u3051\u308c\u3069\u3082\u3001\u8a00\u8a9e\u8a2d\u5b9a\u3092\u65e5\u672c\u8a9e\u306b\u3059\u308b\u3068\u3055\u3089\u306a\u308b\u554f\u984c\u306b\u898b\u821e\u308f\u308c\u308b\u3002\u3059\u306a\u308f\u3061\u30b0\u30e9\u30d5\u306e\u6587\u5b57\u5316\u3051\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-5-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-5-1.png\" alt=\"\" class=\"wp-image-922\" width=\"404\" height=\"304\"\/><\/a><figcaption>\u56f36. \u65e5\u672c\u8a9e\u304c\u6587\u5b57\u5316\u3051\u3057\u3066\u3044\u308b\u69d8\u5b50<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3053\u308c\u306f\u5bb9\u6613\u306b\u89e3\u6c7a\u3067\u304d\u3066\u3001zabbix-web-japanese\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3088\u308d\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf install zabbix-web-japanese<\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u6642\u70b9\u3067\u6587\u5b57\u5316\u3051\u306f\u89e3\u6d88\u3055\u308c\u308b\u304b\u3089zabbix-server\u306e\u518d\u8d77\u52d5\u306a\u3069\u306f\u4e0d\u8981\u3067\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2020\/10\/zabbix5-on-centos8-6.png\" alt=\"\" class=\"wp-image-921\" width=\"406\" height=\"304\"\/><\/a><figcaption>\u56f37. \u6587\u5b57\u5316\u3051\u304c\u89e3\u6d88\u3055\u308c\u305f\u69d8\u5b50<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OS: CentOS Linux release 8.2.2004 (Core)Zabbix 5.0 LTSMySQL: 8.0.21 CentOS8.2\u306bZabbix5.0\u3092\u5c0e\u5165\u3057\u3088\u3046\u3068\u601d\u3044\u7acb\u3063\u3066\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u624b\u9806\u306b\u5f93\u3044\u306a\u304c\u3089\u4f5c\u696d\u3092\u3053\u306a\u3057\u3066\u3044\u305f\u306e\u3067\u3042\u308b\u304c\u3001\u8a18\u8f09\u3057\u3066\u3042\u308b\u5185\u5bb9\u3060\u3051\u3067\u306f\u76ee\u7684\u304c\u9054\u6210\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u6b64\u308c\u304c\u305f\u3081\u306b\u3001\u5e7e\u3089\u304b\u306e\u30e1\u30e2\u3092\u4ed8\u3051\u52a0\u3048\u306a\u304c\u3089\u624b\u9806\u306b\u8d77\u3053\u3057\u306a\u304a\u305d\u3046\u3068\u3044\u3046\u3082\u306e\u3067\u3042\u308b\u3002 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e &#8230; <a title=\"CentOS8\u306bZabbix5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/915\" aria-label=\"CentOS8\u306bZabbix5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1237,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157],"tags":[199,204,165],"class_list":["post-915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos","tag-zabbix","tag-165"],"views":3474,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=915"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media\/1237"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}