{"id":763,"date":"2022-10-01T00:48:13","date_gmt":"2022-09-30T15:48:13","guid":{"rendered":"https:\/\/blog.mamimu.me\/fishblue\/?p=763"},"modified":"2023-10-25T17:24:23","modified_gmt":"2023-10-25T08:24:23","slug":"zabbix-6-0%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.mamimu.me\/fishblue\/?p=763","title":{"rendered":"Zabbix 6.0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Rocky Linux 8.6\u306bZabbix 6.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002<\/p>\n<p>\u25a0Zabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0<br \/>\n# rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/6.0\/rhel\/8\/x86_64\/zabbix-release-6.0-4.el8.noarch.rpm<br \/>\n# dnf clean all<\/p>\n<p>\u25a0Zabbix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent<\/p>\n<p>\u25a0MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# yum install mariadb-server.x86_64<\/p>\n<p>\u25a0MariaDB\u306e\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5\u5316<br \/>\n# systemctl start mariadb<br \/>\n# systemctl enable mariadb<\/p>\n<p>\u25a0database\u306e\u4f5c\u6210<br \/>\n# mysql -uroot -p<br \/>\nEnter password:\u3000\u3000\u3000\u2190\u2605root\u30e6\u30fc\u30b6\u30fc\u306e\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30d6\u30e9\u30f3\u30af\u3067\u3059<br \/>\nmysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;<br \/>\nmysql> create user zabbix@localhost identified by &#8216;password&#8217;;\u3000\u3000\u3000\u2190\u2605zabbix@localhost\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u9069\u5b9c\u5909\u66f4\u3059\u308b<br \/>\nmysql> grant all privileges on zabbix.* to zabbix@localhost;<br \/>\nmysql> quit;<\/p>\n<p>\u25a0\u30b9\u30ad\u30fc\u30de\u3068\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<br \/>\n# zcat \/usr\/share\/zabbix-sql-scripts\/mysql\/server.sql.gz | mysql &#8211;default-character-set=utf8mb4 -uzabbix -p zabbix<br \/>\nEnter password:\u3000\u3000\u3000\u2190\u2605\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b<\/p>\n<p>\u25a0zabbix_server.conf\u306e\u4fee\u6b63<br \/>\n# vi \/etc\/zabbix\/zabbix_server.conf<br \/>\n\u4fee\u6b63\u524d\uff09# DBPassword=<br \/>\n\u4fee\u6b63\u5f8c\uff09DBPassword=password\u3000\u3000\u3000\u2190\u2605MariaDB\u306ezabbix@localhost\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059<\/p>\n<p>\u25a0Zabbix\u306e\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5\u5316<br \/>\n# systemctl restart zabbix-server zabbix-agent httpd php-fpm<br \/>\n# systemctl enable zabbix-server zabbix-agent httpd php-fpm<br \/>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:468px;height:60px\"\n     data-ad-client=\"ca-pub-9128529039742412\"\n     data-ad-slot=\"0240515414\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p>\u25a0firewalld\u306bhttp\u3092\u30a2\u30af\u30bb\u30b9\u8a31\u53ef<br \/>\n# firewall-cmd &#8211;add-service=http &#8211;zone=public &#8211;permanent<br \/>\n# firewall-cmd &#8211;reload<\/p>\n<p>\u25a0WEB\u30d6\u30e9\u30a6\u30b6\u3067zabbix\u306b\u30a2\u30af\u30bb\u30b9<br \/>\nhttp:\/\/[zabbix\u30b5\u30fc\u30d0\u30fc\u306eIP]\/zabbix\/<br \/>\n\u21d2\u521d\u671f\u8a2d\u5b9a\u753b\u9762\u306b\u79fb\u308b\u306e\u3067\u5185\u5bb9\u3092\u78ba\u8a8d\u53ca\u3073\u9069\u5b9c\u5165\u529b\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fc5\u9808\uff09<br \/>\n\u21d2\u521d\u671f\u8a2d\u5b9a\u304c\u7d42\u308f\u308b\u3068\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u5909\u308f\u308b\u3002\u30e6\u30fc\u30b6\u30fc\u540d\/\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u521d\u671f\u8a2d\u5b9a\u306f Admin\/zabbix \u3067\u3059\u3002<\/p>\n<p>\u25a0MariaDB\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<br \/>\nWEB\u30d6\u30e9\u30a6\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u30b7\u30b9\u30c6\u30e0\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u305d\u3053\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\/\/\/\/<br \/>\nZabbix\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\t\u3044\u3044\u3048<br \/>\nMariaDB\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 10.03.35\t\u30a8\u30e9\u30fc\u767a\u751f\uff01Zabbix\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093\u3002 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3MariaDB\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u300210.05.00\u4ee5\u4e0a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\/\/\/\/<\/p>\n<p>MairaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u305f\u3081Zabbix\u3092\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3057\u304b\u3057\u3001 yum update mariadb-server.x86_64\u3092\u5b9f\u884c\u3057\u3066\u308210.5\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u4ee5\u4e0b\u306e\u624b\u9806\u306710.5\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n# systemctl stop mariadb.service<br \/>\n# yum distro-sync<br \/>\n# yum module reset mariadb<br \/>\n# yum module enable mariadb:10.5<br \/>\n# yum distro-sync<br \/>\n# systemctl start mariadb.service<br \/>\n# mariadb-upgrade<\/p>\n<p>\u25a0\u518d\u5ea6WEB\u30d6\u30e9\u30a6\u30b6\u3067zabbix\u306b\u30ed\u30b0\u30a4\u30f3<br \/>\n\u21d2\u30a8\u30e9\u30fc\u304c\u89e3\u6d88\u3057\u3066\u3044\u308b\u3053\u3068<\/p>\n<p>\u6ce8\uff09MariaDB\u306eroot\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30d6\u30e9\u30f3\u30af\u306e\u307e\u307e\u306a\u306e\u3067\u8a2d\u5b9a\u3059\u308b<\/p>\n<p>\u25a0\u53c2\u8003URL<br \/>\nhttps:\/\/www.zabbix.com\/jp\/download<br \/>\nhttps:\/\/access.redhat.com\/documentation\/ja-jp\/red_hat_enterprise_linux\/8\/html\/deploying_different_types_of_servers\/upgrading_from_a_rhel_8_version_of_mariadb_10_3_to_mariadb_10_5<\/p>\n<p><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:468px;height:60px\"\n     data-ad-client=\"ca-pub-9128529039742412\"\n     data-ad-slot=\"0240515414\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 8.6\u306bZabbix 6.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002 \u25a0Zabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0 # rpm -Uvh https:\/\/repo.zabbix.com\/zabbi<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-linux","category-4"],"_links":{"self":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=763"}],"version-history":[{"count":0,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mamimu.me\/fishblue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}