{"id":365675,"date":"2024-05-21T02:43:09","date_gmt":"2024-05-21T02:43:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=365675"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T02:43:09","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=365675","title":{"rendered":"<span>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix 6.0 \u043d\u0430 Almalinux 9.3<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0441\u0442\u0435\u043a<\/h2>\n<ul>\n<li>\n<p>Almalinux 9.3 (4 \u044f\u0434\u0440\u0430 \u0426\u041f, 6 \u0413\u0411 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438)<\/p>\n<\/li>\n<li>\n<p>Zabbix 6.0<\/p>\n<\/li>\n<li>\n<p>PostgreSQL 15.5<\/p>\n<\/li>\n<li>\n<p>TimescaleDB 2.13.1<\/p>\n<\/li>\n<\/ul>\n<h2>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0435\u043a\u0430<\/h2>\n<p><strong>Almalinux<\/strong>\u00a0\u2014 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Linux \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u043e\u0432 Red Hat Enterprise Linux. Almalinux &#8212; \u0437\u0430\u043c\u0435\u043d\u0430 CentOS 7.<\/p>\n<p><strong>Zabbix\u00a0<\/strong>\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0418\u0422-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p><strong>PostgreSQL\u00a0<\/strong>\u2014\u00a0\u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0423\u0411\u0414.<\/p>\n<p><strong>TimescaleDB\u00a0<\/strong>\u2014 \u041f\u041e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f PostgreSQL, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u00a0<strong><em>\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0440\u044f\u0434\u0430\u043c\u0438<\/em><\/strong>\u00a0\u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 PostgreSQL.<\/p>\n<p><strong>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u044f\u0434\u044b<\/strong>\u00a0(<em>time series<\/em>) \u2014 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<br \/>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u044f\u0434\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<br \/>1. \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043a\u0430;<br \/>2. \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0440\u044f\u0434\u0430.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PostgreSQL \u0438\u00a0TimescaleDB<\/h3>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 PostgreSQL:<\/p>\n<pre><code>dnf install -y https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-9-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c PostgreSQL:  <\/p>\n<pre><code>dnf -qy module disable PostgreSQL<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 PostgreSQL:  <\/p>\n<pre><code>dnf install -y postgresql15-server<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 TimescaleDB (<strong><em>\u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 CLI<\/em><\/strong>):  <\/p>\n<pre><code>tee \/etc\/yum.repos.d\/timescale_timescaledb.repo &lt;&lt;EOL [timescale_timescaledb] name=timescale_timescaledb baseurl=https:\/\/packagecloud.io\/timescale\/timescaledb\/el\/$(rpm -E %{rhel})\/\\$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https:\/\/packagecloud.io\/timescale\/timescaledb\/gpgkey sslverify=1 sslcacert=\/etc\/pki\/tls\/certs\/ca-bundle.crt metadata_expire=300 EOL<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432:  <\/p>\n<pre><code>dnf -y update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 TimescaleDB \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0442\u044e\u043d\u0438\u043d\u0433\u0430:  <\/p>\n<pre><code>dnf -y install timescaledb-2-postgresql-15 timescaledb-tools<\/code><\/pre>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430 PostgreSQL:  <\/p>\n<pre><code>\/usr\/pgsql-15\/bin\/postgresql-15-setup initdb systemctl enable postgresql-15 &amp;&amp; systemctl start postgresql-15<\/code><\/pre>\n<p>\u0422\u044e\u043d\u0438\u043d\u0433 postgresql \u0447\u0435\u0440\u0435\u0437 timescaledb:<br \/>-cpus &#8212; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0434\u043b\u044f PostgreSQL.<br \/>-memory &#8212; \u043e\u0431\u044a\u0435\u043c \u041e\u041f, \u0434\u043b\u044f PostgreSQL.<br \/>-dry-run &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b (<em>\u043f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440<\/em>).<br \/>-quiet &#8212; \u0442\u0438\u0445\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.<br \/>-yes &#8212; \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c &#171;\u0434\u0430&#187; \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441.<br \/>\u041f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440:<\/p>\n<pre><code>timescaledb-tune --pg-config=\/usr\/pgsql-15\/bin\/pg_config -cpus 2 -memory 2GB -dry-run -quiet -yes<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/p>\n<pre><code>timescaledb-tune --pg-config=\/usr\/pgsql-15\/bin\/pg_config -cpus 2 -memory 2GB -quiet -yes<\/code><\/pre>\n<p>\u0415\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 postgresql:<br \/>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/var\/lib\/pgsql\/15\/data\/postgresql.conf<\/p>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<pre><code>max_connections = 100<\/code><\/pre>\n<p>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u0430 WAL=minimal, \u0442.\u043a. \u0436\u0443\u0440\u043d\u0430\u043b WAL \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u0411\u0414 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<\/p>\n<pre><code>wal_level = minimal<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 WAL.<\/p>\n<pre><code>synchronous_commit = off<\/code><\/pre>\n<p>\u0421 \u043a\u0430\u043a\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b WAL (\u0421 \u041e\u041f \u043d\u0430 \u0434\u0438\u0441\u043a(\u0440\u0430\u0437 \u0432 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b)).<\/p>\n<pre><code>wal_writer_delay = 2000ms<\/code><\/pre>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a.<\/p>\n<pre><code>max_wal_senders = 0<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430. \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u044e.<\/p>\n<pre><code>timescaledb.telemetry_level = off<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c postgresql, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443.<\/p>\n<pre><code>systemctl restart postgresql-15<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix<\/h2>\n<p>\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442\u044b Zabbix \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 EPEL,<br \/>\u0435\u0441\u043b\u0438 \u043e\u043d \u0443 \u0412\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \/etc\/yum.repos.d\/epel.repo \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443:<\/p>\n<pre><code>[epel] ... excludepkgs=zabbix*<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435. \u041a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f, 11-\u044f \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/75a\/1dd\/39d\/75a1dd39ddc733c5fa4694ed27647a53.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430\" width=\"490\" height=\"258\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/75a\/1dd\/39d\/75a1dd39ddc733c5fa4694ed27647a53.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Zabbix.<\/p>\n<pre><code>rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/6.0\/rhel\/9\/x86_64\/zabbix-release-6.0-4.el9.noarch.rpm; dnf clean all<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, Nginx, Zabbix-\u0430\u0433\u0435\u043d\u0442\u0430.<\/p>\n<pre><code>dnf install -y zabbix-server-pgsql zabbix-web-pgsql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent2<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0420\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0438 \u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0434\u043b\u044f Zabbix.<\/p>\n<pre><code>dnf install -y glibc-langpack-ru glibc-langpack-en<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &#171;zabbix&#187; \u0432 \u0411\u0414 PostgreSQL \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<pre><code>sudo -u postgres createuser --pwprompt zabbix<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 PostgreSQL \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &#171;zabbix&#187; \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c &#171;zabbix&#187;.<\/p>\n<pre><code>sudo -u postgres createdb -O zabbix zabbix<\/code><\/pre>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0411\u0414 &#171;zabbix&#187;.<\/p>\n<pre><code>zcat \/usr\/share\/zabbix-sql-scripts\/postgresql\/server.sql.gz | sudo -u zabbix psql zabbix<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f TimescaleDB.<\/p>\n<pre><code>echo \"CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;\" | sudo -u postgres psql zabbix<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0411\u0414 \u043f\u043e\u0434 timescaledb.<\/p>\n<pre><code>cat \/usr\/share\/zabbix-sql-scripts\/postgresql\/timescaledb.sql | sudo -u zabbix psql zabbix<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0411\u0414, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 TimescaleDB \u0431\u044b\u043b\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.<\/p>\n<pre><code>sudo -u postgres psql zabbix<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f PostgreSQL<\/p>\n<pre><code>\\dx<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<pre><code>\\q<\/code><\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \/etc\/zabbix\/zabbix_server.conf.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 &#171;zabbix&#187; \u0432 \u0411\u0414 PostgreSQL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438.<\/p>\n<pre><code>DBPassword=password<\/code><\/pre>\n<p>Poller &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441 \u0445\u043e\u0441\u0442\u043e\u0432. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPollers=100<\/code><\/pre>\n<p>PollersUnreachable &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPollersUnreachable=75<\/code><\/pre>\n<p>Pingers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u0445\u043e\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPingers=5<\/code><\/pre>\n<p>Discoverers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432.<\/p>\n<pre><code>StartDiscoverers=5<\/code><\/pre>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 Zabbix. \u0420\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (shared memory) \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u0441\u0435\u0442\u0438, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432.<\/p>\n<pre><code>CacheSize=2G<\/code><\/pre>\n<p>DBSyncers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e \u0437\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414.<\/p>\n<pre><code>StartDBSyncers=5<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>HistoryCacheSize=256M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>HistoryIndexCacheSize=128M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.  <\/p>\n<pre><code>TrendCacheSize=512M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>ValueCacheSize=1G<\/code><\/pre>\n<p>\u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0430\u0433\u0435\u043d\u0442\u0430, SNMP-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a (\u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445).<\/p>\n<pre><code>Timeout=3<\/code><\/pre>\n<p>\u041f\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0445\u043e\u0441\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c.<\/p>\n<pre><code>UnreachablePeriod=15<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0445\u043e\u0441\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.<\/p>\n<pre><code>UnavailableDelay=180<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0445\u043e\u0441\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438, \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445<\/p>\n<pre><code>UnreachableDelay=5<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Nginx \u0438 PHP<\/h2>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PHP. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/etc\/php.ini<br \/>\u0417\u0430\u043a\u0440\u043e\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c .php (\u0434\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438)<\/p>\n<pre><code>cgi.fix_pathinfo=0<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441<\/p>\n<pre><code>date.timezone = \"Asia\/Irkutsk\"<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Nginx<br \/>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/nginx\/conf.d\/zabbix.conf, \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b &#8216;listen&#8217; \u0438 &#8216;server_name&#8217;.<\/p>\n<pre><code>listen 80; server_name zabbix.lan;<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430<\/h2>\n<p>\u041f\u043e\u0440\u0442 TCP 80 \u2014 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0432\u0435\u0431 zabbix \u043f\u043e HTTP.<br \/>\u041f\u043e\u0440\u0442 TCP 10050 \u2014 \u043f\u043e\u0440\u0442 \u0430\u0433\u0435\u043d\u0442\u0430, \u043f\u043e \u043d\u0435\u043c\u0443 zabbix \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/>\u041f\u043e\u0440\u0442 TCP 10051 \u2014 \u043f\u043e\u0440\u0442, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c zabbix \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u043f\u043e\u0440\u0442\u044b 80, 10050, 10051 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c:<\/p>\n<pre><code>firewall-cmd --permanent --add-port={80\/tcp,10050\/tcp,10051\/tcp}; firewall-cmd --reload; firewall-cmd --list-all<\/code><\/pre>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b Zabbix \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430\u0433\u0435\u043d\u0442\u0430, nginx, php \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u041e\u0421.  <\/p>\n<pre><code>systemctl restart zabbix-server zabbix-agent2 nginx php-fpm &amp;&amp; systemctl enable zabbix-server zabbix-agent2 nginx php-fpm<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 Zabbix<br \/><a href=\"http:\/\/zabbix.lan\/\" rel=\"noopener noreferrer nofollow\"><em>http:\/\/zabbix.lan\/<\/em><\/a> \u0438\u043b\u0438 <a href=\"http:\/\/xn--ip--8cdug0fj\/\" rel=\"noopener noreferrer nofollow\"><em>http:\/\/ip-\u0430\u0434\u0440\u0435\u0441\/<\/em><\/a><br \/>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, <em>\u043b\u043e\u0433\u0438\u043d: Admin<\/em>, <em>\u043f\u0430\u0440\u043e\u043b\u044c: zabbix<\/em><\/p>\n<h2>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h2>\n<ol>\n<li>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/linux\/redhat\/\" rel=\"noopener noreferrer nofollow\">https:\/\/www.postgresql.org\/download\/linux\/redhat\/<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.zabbix.com\/ru\/download?zabbix=6.0&amp;os_distribution=alma_linux&amp;os_version=9&amp;components=server_frontend_agent&amp;db=pgsql&amp;ws=nginx\" rel=\"noopener noreferrer nofollow\">https:\/\/www.zabbix.com\/ru\/download?zabbix=6.0&amp;os_distribution=alma_linux&amp;os_version=9&amp;components=server_frontend_agent&amp;db=pgsql&amp;ws=nginx<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=7y2UtSoS3Xo\" rel=\"noopener noreferrer nofollow\">https:\/\/www.youtube.com\/watch?v=7y2UtSoS3Xo<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/docs.timescale.com\/self-hosted\/latest\/install\/installation-linux\/\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.timescale.com\/self-hosted\/latest\/install\/installation-linux\/<\/a><\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/787310\/\"> https:\/\/habr.com\/ru\/articles\/787310\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0441\u0442\u0435\u043a<\/h2>\n<ul>\n<li>\n<p>Almalinux 9.3 (4 \u044f\u0434\u0440\u0430 \u0426\u041f, 6 \u0413\u0411 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438)<\/p>\n<\/li>\n<li>\n<p>Zabbix 6.0<\/p>\n<\/li>\n<li>\n<p>PostgreSQL 15.5<\/p>\n<\/li>\n<li>\n<p>TimescaleDB 2.13.1<\/p>\n<\/li>\n<\/ul>\n<h2>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0435\u043a\u0430<\/h2>\n<p><strong>Almalinux<\/strong>\u00a0\u2014 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Linux \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u043e\u0432 Red Hat Enterprise Linux. Almalinux &#8212; \u0437\u0430\u043c\u0435\u043d\u0430 CentOS 7.<\/p>\n<p><strong>Zabbix\u00a0<\/strong>\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0418\u0422-\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p><strong>PostgreSQL\u00a0<\/strong>\u2014\u00a0\u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0423\u0411\u0414.<\/p>\n<p><strong>TimescaleDB\u00a0<\/strong>\u2014 \u041f\u041e \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f PostgreSQL, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u00a0<strong><em>\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0440\u044f\u0434\u0430\u043c\u0438<\/em><\/strong>\u00a0\u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 PostgreSQL.<\/p>\n<p><strong>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u044f\u0434\u044b<\/strong>\u00a0(<em>time series<\/em>) \u2014 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<br \/>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u044f\u0434\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<br \/>1. \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043a\u0430;<br \/>2. \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0440\u044f\u0434\u0430.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PostgreSQL \u0438\u00a0TimescaleDB<\/h3>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 PostgreSQL:<\/p>\n<pre><code>dnf install -y https:\/\/download.postgresql.org\/pub\/repos\/yum\/reporpms\/EL-9-x86_64\/pgdg-redhat-repo-latest.noarch.rpm<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c PostgreSQL:  <\/p>\n<pre><code>dnf -qy module disable PostgreSQL<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 PostgreSQL:  <\/p>\n<pre><code>dnf install -y postgresql15-server<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 TimescaleDB (<strong><em>\u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 CLI<\/em><\/strong>):  <\/p>\n<pre><code>tee \/etc\/yum.repos.d\/timescale_timescaledb.repo &lt;&lt;EOL [timescale_timescaledb] name=timescale_timescaledb baseurl=https:\/\/packagecloud.io\/timescale\/timescaledb\/el\/$(rpm -E %{rhel})\/\\$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https:\/\/packagecloud.io\/timescale\/timescaledb\/gpgkey sslverify=1 sslcacert=\/etc\/pki\/tls\/certs\/ca-bundle.crt metadata_expire=300 EOL<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432:  <\/p>\n<pre><code>dnf -y update<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 TimescaleDB \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0442\u044e\u043d\u0438\u043d\u0433\u0430:  <\/p>\n<pre><code>dnf -y install timescaledb-2-postgresql-15 timescaledb-tools<\/code><\/pre>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430 PostgreSQL:  <\/p>\n<pre><code>\/usr\/pgsql-15\/bin\/postgresql-15-setup initdb systemctl enable postgresql-15 &amp;&amp; systemctl start postgresql-15<\/code><\/pre>\n<p>\u0422\u044e\u043d\u0438\u043d\u0433 postgresql \u0447\u0435\u0440\u0435\u0437 timescaledb:<br \/>-cpus &#8212; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0434\u043b\u044f PostgreSQL.<br \/>-memory &#8212; \u043e\u0431\u044a\u0435\u043c \u041e\u041f, \u0434\u043b\u044f PostgreSQL.<br \/>-dry-run &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b (<em>\u043f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440<\/em>).<br \/>-quiet &#8212; \u0442\u0438\u0445\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.<br \/>-yes &#8212; \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c &#171;\u0434\u0430&#187; \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441.<br \/>\u041f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440:<\/p>\n<pre><code>timescaledb-tune --pg-config=\/usr\/pgsql-15\/bin\/pg_config -cpus 2 -memory 2GB -dry-run -quiet -yes<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/p>\n<pre><code>timescaledb-tune --pg-config=\/usr\/pgsql-15\/bin\/pg_config -cpus 2 -memory 2GB -quiet -yes<\/code><\/pre>\n<p>\u0415\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 postgresql:<br \/>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/var\/lib\/pgsql\/15\/data\/postgresql.conf<\/p>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<pre><code>max_connections = 100<\/code><\/pre>\n<p>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u0430 WAL=minimal, \u0442.\u043a. \u0436\u0443\u0440\u043d\u0430\u043b WAL \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u0411\u0414 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<\/p>\n<pre><code>wal_level = minimal<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 WAL.<\/p>\n<pre><code>synchronous_commit = off<\/code><\/pre>\n<p>\u0421 \u043a\u0430\u043a\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b WAL (\u0421 \u041e\u041f \u043d\u0430 \u0434\u0438\u0441\u043a(\u0440\u0430\u0437 \u0432 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b)).<\/p>\n<pre><code>wal_writer_delay = 2000ms<\/code><\/pre>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a.<\/p>\n<pre><code>max_wal_senders = 0<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430. \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u044e.<\/p>\n<pre><code>timescaledb.telemetry_level = off<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c postgresql, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443.<\/p>\n<pre><code>systemctl restart postgresql-15<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix<\/h2>\n<p>\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442\u044b Zabbix \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 EPEL,<br \/>\u0435\u0441\u043b\u0438 \u043e\u043d \u0443 \u0412\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \/etc\/yum.repos.d\/epel.repo \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443:<\/p>\n<pre><code>[epel] ... excludepkgs=zabbix*<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435. \u041a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f, 11-\u044f \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<figure class=\"\">\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f Zabbix.<\/p>\n<pre><code>rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/6.0\/rhel\/9\/x86_64\/zabbix-release-6.0-4.el9.noarch.rpm; dnf clean all<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, Nginx, Zabbix-\u0430\u0433\u0435\u043d\u0442\u0430.<\/p>\n<pre><code>dnf install -y zabbix-server-pgsql zabbix-web-pgsql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent2<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0420\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0438 \u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0434\u043b\u044f Zabbix.<\/p>\n<pre><code>dnf install -y glibc-langpack-ru glibc-langpack-en<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &#171;zabbix&#187; \u0432 \u0411\u0414 PostgreSQL \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<pre><code>sudo -u postgres createuser --pwprompt zabbix<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 PostgreSQL \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &#171;zabbix&#187; \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c &#171;zabbix&#187;.<\/p>\n<pre><code>sudo -u postgres createdb -O zabbix zabbix<\/code><\/pre>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0411\u0414 &#171;zabbix&#187;.<\/p>\n<pre><code>zcat \/usr\/share\/zabbix-sql-scripts\/postgresql\/server.sql.gz | sudo -u zabbix psql zabbix<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f TimescaleDB.<\/p>\n<pre><code>echo \"CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;\" | sudo -u postgres psql zabbix<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0411\u0414 \u043f\u043e\u0434 timescaledb.<\/p>\n<pre><code>cat \/usr\/share\/zabbix-sql-scripts\/postgresql\/timescaledb.sql | sudo -u zabbix psql zabbix<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0411\u0414, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 TimescaleDB \u0431\u044b\u043b\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.<\/p>\n<pre><code>sudo -u postgres psql zabbix<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f PostgreSQL<\/p>\n<pre><code>\\dx<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<pre><code>\\q<\/code><\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \/etc\/zabbix\/zabbix_server.conf.<\/p>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 &#171;zabbix&#187; \u0432 \u0411\u0414 PostgreSQL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438.<\/p>\n<pre><code>DBPassword=password<\/code><\/pre>\n<p>Poller &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441 \u0445\u043e\u0441\u0442\u043e\u0432. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPollers=100<\/code><\/pre>\n<p>PollersUnreachable &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPollersUnreachable=75<\/code><\/pre>\n<p>Pingers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u0445\u043e\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438. (\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e).<\/p>\n<pre><code>StartPingers=5<\/code><\/pre>\n<p>Discoverers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432.<\/p>\n<pre><code>StartDiscoverers=5<\/code><\/pre>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 Zabbix. \u0420\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (shared memory) \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u0441\u0435\u0442\u0438, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432.<\/p>\n<pre><code>CacheSize=2G<\/code><\/pre>\n<p>DBSyncers &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e \u0437\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414.<\/p>\n<pre><code>StartDBSyncers=5<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>HistoryCacheSize=256M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>HistoryIndexCacheSize=128M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.  <\/p>\n<pre><code>TrendCacheSize=512M<\/code><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u044d\u0448\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438.<\/p>\n<pre><code>ValueCacheSize=1G<\/code><\/pre>\n<p>\u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0430\u0433\u0435\u043d\u0442\u0430, SNMP-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a (\u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445).<\/p>\n<pre><code>Timeout=3<\/code><\/pre>\n<p>\u041f\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0445\u043e\u0441\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c.<\/p>\n<pre><code>UnreachablePeriod=15<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0445\u043e\u0441\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.<\/p>\n<pre><code>UnavailableDelay=180<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u0442\u043e \u0445\u043e\u0441\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u043e\u0441\u0442\u0438, \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445<\/p>\n<pre><code>UnreachableDelay=5<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Nginx \u0438 PHP<\/h2>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 PHP. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/etc\/php.ini<br \/>\u0417\u0430\u043a\u0440\u043e\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0444\u0430\u0439\u043b\u0430\u043c .php (\u0434\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438)<\/p>\n<pre><code>cgi.fix_pathinfo=0<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441<\/p>\n<pre><code>date.timezone = \"Asia\/Irkutsk\"<\/code><\/pre>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Nginx<br \/>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/nginx\/conf.d\/zabbix.conf, \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b &#8216;listen&#8217; \u0438 &#8216;server_name&#8217;.<\/p>\n<pre><code>listen 80; server_name zabbix.lan;<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0430<\/h2>\n<p>\u041f\u043e\u0440\u0442 TCP 80 \u2014 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0432\u0435\u0431 zabbix \u043f\u043e HTTP.<br \/>\u041f\u043e\u0440\u0442 TCP 10050 \u2014 \u043f\u043e\u0440\u0442 \u0430\u0433\u0435\u043d\u0442\u0430, \u043f\u043e \u043d\u0435\u043c\u0443 zabbix \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/>\u041f\u043e\u0440\u0442 TCP 10051 \u2014 \u043f\u043e\u0440\u0442, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c zabbix \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<br \/>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u043f\u043e\u0440\u0442\u044b 80, 10050, 10051 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c:<\/p>\n<pre><code>firewall-cmd --permanent --add-port={80\/tcp,10050\/tcp,10051\/tcp}; firewall-cmd --reload; firewall-cmd --list-all<\/code><\/pre>\n<h3>\u0417\u0430\u043f\u0443\u0441\u043a Zabbix-\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b Zabbix \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430\u0433\u0435\u043d\u0442\u0430, nginx, php \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u041e\u0421.  <\/p>\n<pre><code>systemctl restart zabbix-server zabbix-agent2 nginx php-fpm &amp;&amp; systemctl enable zabbix-server zabbix-agent2 nginx php-fpm<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 Zabbix<br \/><a href=\"http:\/\/zabbix.lan\/\" rel=\"noopener noreferrer nofollow\"><em>http:\/\/zabbix.lan\/<\/em><\/a> \u0438\u043b\u0438 <a href=\"http:\/\/xn--ip--8cdug0fj\/\" rel=\"noopener noreferrer nofollow\"><em>http:\/\/ip-\u0430\u0434\u0440\u0435\u0441\/<\/em><\/a><br \/>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, <em>\u043b\u043e\u0433\u0438\u043d: Admin<\/em>, <em>\u043f\u0430\u0440\u043e\u043b\u044c: zabbix<\/em><\/p>\n<h2>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h2>\n<ol>\n<li>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/linux\/redhat\/\" rel=\"noopener noreferrer nofollow\">https:\/\/www.postgresql.org\/download\/linux\/redhat\/<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.zabbix.com\/ru\/download?zabbix=6.0&amp;os_distribution=alma_linux&amp;os_version=9&amp;components=server_frontend_agent&amp;db=pgsql&amp;ws=nginx\" rel=\"noopener noreferrer nofollow\">https:\/\/www.zabbix.com\/ru\/download?zabbix=6.0&amp;os_distribution=alma_linux&amp;os_version=9&amp;components=server_frontend_agent&amp;db=pgsql&amp;ws=nginx<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=7y2UtSoS3Xo\" rel=\"noopener noreferrer nofollow\">https:\/\/www.youtube.com\/watch?v=7y2UtSoS3Xo<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/docs.timescale.com\/self-hosted\/latest\/install\/installation-linux\/\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.timescale.com\/self-hosted\/latest\/install\/installation-linux\/<\/a><\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/787310\/\"> https:\/\/habr.com\/ru\/articles\/787310\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-365675","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/365675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=365675"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/365675\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=365675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=365675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=365675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}