liv@singularity:~$ wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu22.04_all.deb --2022-08-05 07:36:33-- https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu22.04_all.deb Распознаётся repo.zabbix.com (repo.zabbix.com)… 178.128.6.101, 2604:a880:2:d0::2062:d001 Подключение к repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... соединение установлено. HTTP-запрос отправлен. Ожидание ответа… 200 OK Длина: 3656 (3,6K) [application/octet-stream] Сохранение в: ‘zabbix-release_6.2-1+ubuntu22.04_all.deb’ zabbix-release_6.2-1+ubuntu22. 100%[====================================================>] 3,57K --.-KB/s за 0s 2022-08-05 07:36:33 (1,30 GB/s) - ‘zabbix-release_6.2-1+ubuntu22.04_all.deb’ сохранён [3656/3656] liv@singularity:~$ sudo dpkg -i zabbix-release_6.2-1+ubuntu22.04_all.deb (Чтение базы данных … на данный момент установлено 287618 файлов и каталогов.) Подготовка к распаковке zabbix-release_6.2-1+ubuntu22.04_all.deb … Распаковывается zabbix-release (1:6.2-1+ubuntu22.04) на замену (1:6.0-1+ubuntu20.04) … Настраивается пакет zabbix-release (1:6.2-1+ubuntu22.04) … Файл настройки «/etc/apt/sources.list.d/zabbix.list» ==> Удалён с момента установки (вами или сценарием). ==> Автор пакета предоставил обновлённую версию. Что нужно сделать? Есть следующие варианты: Y или I : установить версию, предлагаемую сопровождающим пакета N или O : оставить установленную на данный момент версию D : показать различия между версиями Z : запустить оболочку командной строки для проверки ситуации По умолчанию сохраняется текущая версия файла настройки. *** zabbix.list (Y/I/N/O/D/Z) [по умолчанию N] ? D --- /etc/apt/sources.list.d/zabbix.list 1970-01-01 07:00:00.000000000 +0700 +++ /etc/apt/sources.list.d/zabbix.list.dpkg-new 2022-07-04 15:17:07.000000000 +0700 @@ -0,0 +1,2 @@ +deb https://repo.zabbix.com/zabbix/6.2/ubuntu jammy main +deb-src https://repo.zabbix.com/zabbix/6.2/ubuntu jammy main *** zabbix.list (Y/I/N/O/D/Z) [по умолчанию N] ? Y Устанавливается новая версия файла настройки /etc/apt/sources.list.d/zabbix.list … liv@singularity:~$ sudo apt-get update Сущ:1 http://archive.ubuntu.com/ubuntu jammy InRelease Сущ:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Пол:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB] Пол:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB] Пол:5 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu jammy InRelease [4 946 B] Пол:6 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy InRelease [4 958 B] Пол:7 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu jammy/main Sources [661 B] Пол:8 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu jammy/main amd64 Packages [472 B] Пол:9 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main Sources [1 243 B] Пол:10 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 Packages [5 147 B] Получено 231 kB за 2с (154 kB/s) Чтение списков пакетов… Готово sudo apt-get install --only-upgrade zabbix-server-pgsql zabbix-frontend-php zabbix-agent liv@singularity:~$ sudo apt-get install --only-upgrade zabbix-server-pgsql zabbix-frontend-php zabbix-agent Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово Следующие пакеты устанавливались автоматически и больше не требуются: libodbc1 libodbccr2 Для их удаления используйте «sudo apt autoremove». Предлагаемые пакеты: zabbix-nginx-conf Следующие пакеты будут обновлены: zabbix-agent zabbix-frontend-php zabbix-server-pgsql Обновлено 3 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 6 пакетов не обновлено. Необходимо скачать 8 332 kB архивов. После данной операции объём занятого дискового пространства возрастёт на 1 628 kB. Пол:1 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 zabbix-server-pgsql amd64 1:6.2.1-1+ubuntu22.04 [1 247 kB] Пол:2 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 zabbix-agent amd64 1:6.2.1-1+ubuntu22.04 [234 kB] Пол:3 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 zabbix-frontend-php all 1:6.2.1-1+ubuntu22.04 [6 852 kB] Получено 8 332 kB за 3с (3 051 kB/s) (Чтение базы данных … на данный момент установлено 287619 файлов и каталогов.) Подготовка к распаковке …/zabbix-server-pgsql_1%3a6.2.1-1+ubuntu22.04_amd64.deb … Распаковывается zabbix-server-pgsql (1:6.2.1-1+ubuntu22.04) на замену (1:6.0.5-1+ubuntu20.04) … Подготовка к распаковке …/zabbix-agent_1%3a6.2.1-1+ubuntu22.04_amd64.deb … Распаковывается zabbix-agent (1:6.2.1-1+ubuntu22.04) на замену (1:6.0.5-1+ubuntu20.04) … Подготовка к распаковке …/zabbix-frontend-php_1%3a6.2.1-1+ubuntu22.04_all.deb … Распаковывается zabbix-frontend-php (1:6.2.1-1+ubuntu22.04) на замену (1:6.0.5-1+ubuntu20.04) … Настраивается пакет zabbix-frontend-php (1:6.2.1-1+ubuntu22.04) … Настраивается пакет zabbix-server-pgsql (1:6.2.1-1+ubuntu22.04) … Файл настройки «/etc/zabbix/zabbix_server.conf» ==> Изменён с момента установки (вами или сценарием). ==> Автор пакета предоставил обновлённую версию. Что нужно сделать? Есть следующие варианты: Y или I : установить версию, предлагаемую сопровождающим пакета N или O : оставить установленную на данный момент версию D : показать различия между версиями Z : запустить оболочку командной строки для проверки ситуации По умолчанию сохраняется текущая версия файла настройки. *** zabbix_server.conf (Y/I/N/O/D/Z) [по умолчанию N] ? D --- /etc/zabbix/zabbix_server.conf 2022-06-22 06:24:17.136945049 +0700 +++ /etc/zabbix/zabbix_server.conf.dpkg-new 2022-07-14 18:12:52.000000000 +0700 @@ -60,7 +60,7 @@ # Mandatory: no # Range: 0-5 # Default: -DebugLevel=3 +# DebugLevel=3 ### Option: PidFile # Name of PID file. @@ -126,7 +126,7 @@ # # Mandatory: no # Default: -DBPassword=zabbix +# DBPassword= ### Option: DBSocket # Path to MySQL socket. @@ -211,7 +211,7 @@ # Mandatory: no # Range: 0-1000 # Default: -StartPollers=100 +# StartPollers=5 ### Option: StartIPMIPollers # Number of pre-forked instances of IPMI pollers. @@ -229,7 +229,7 @@ # Mandatory: no # Range: 1-1000 # Default: -StartPreprocessors=15 +# StartPreprocessors=3 ### Option: StartPollersUnreachable # Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java). @@ -239,11 +239,11 @@ # Mandatory: no # Range: 0-1000 # Default: -StartPollersUnreachable=50 +# StartPollersUnreachable=1 ### Option: StartHistoryPollers # Number of pre-forked instances of history pollers. -# Only required for calculated and internal checks. +# Only required for calculated checks. # A database connection is required for each history poller instance. # # Mandatory: no @@ -260,7 +260,7 @@ # Mandatory: no # Range: 0-1000 # Default: -StartTrappers=10 +# StartTrappers=5 ### Option: StartPingers # Number of pre-forked instances of ICMP pingers. @@ -268,7 +268,7 @@ # Mandatory: no # Range: 0-1000 # Default: -StartPingers=50 +# StartPingers=1 ### Option: StartDiscoverers # Number of pre-forked instances of discoverers. @@ -276,7 +276,7 @@ # Mandatory: no # Range: 0-250 # Default: -StartDiscoverers=15 +# StartDiscoverers=1 ### Option: StartHTTPPollers # Number of pre-forked instances of HTTP pollers. @@ -284,7 +284,7 @@ # Mandatory: no # Range: 0-1000 # Default: -StartHTTPPollers=5 +# StartHTTPPollers=1 ### Option: StartTimers # Number of pre-forked instances of timers. @@ -295,7 +295,7 @@ # Mandatory: no # Range: 1-1000 # Default: -StartTimers=2 +# StartTimers=1 ### Option: StartEscalators # Number of pre-forked instances of escalators. @@ -303,7 +303,7 @@ # Mandatory: no # Range: 1-100 # Default: -StartEscalators=2 +# StartEscalators=1 ### Option: StartAlerters # Number of pre-forked instances of alerters. @@ -312,7 +312,7 @@ # Mandatory: no # Range: 1-100 # Default: -StartAlerters=5 +# StartAlerters=3 ### Option: JavaGateway # IP address (or hostname) of Zabbix Java gateway. @@ -440,7 +440,7 @@ # Mandatory: no # Range: 128K-64G # Default: -CacheSize=128M +# CacheSize=32M ### Option: CacheUpdateFrequency # How often Zabbix will perform update of configuration cache, in seconds. @@ -465,7 +465,7 @@ # Mandatory: no # Range: 128K-2G # Default: -HistoryCacheSize=64M +# HistoryCacheSize=16M ### Option: HistoryIndexCacheSize # Size of history index cache, in bytes. @@ -474,7 +474,7 @@ # Mandatory: no # Range: 128K-2G # Default: -HistoryIndexCacheSize=32M +# HistoryIndexCacheSize=4M ### Option: TrendCacheSize # Size of trend write cache, in bytes. @@ -483,7 +483,7 @@ # Mandatory: no # Range: 128K-2G # Default: -TrendCacheSize=32M +# TrendCacheSize=4M ### Option: TrendFunctionCacheSize # Size of trend function cache, in bytes. @@ -502,7 +502,7 @@ # Mandatory: no # Range: 0,128K-64G # Default: -ValueCacheSize=256M +# ValueCacheSize=8M ### Option: Timeout # Specifies how long we wait for agent, SNMP device or external check (in seconds). @@ -626,7 +626,7 @@ # Mandatory: no # Range: 1-3600*24*7 # Default: -# ProxyConfigFrequency=3600 +# ProxyConfigFrequency=300 ### Option: ProxyDataFrequency # How often Zabbix Server requests history data from a Zabbix Proxy in seconds. @@ -897,6 +897,15 @@ # Default: # DBTLSCipher13= +### Option: Vault +# Specifies vault: +# HashiCorp - HashiCorp KV Secrets Engine - Version 2 +# CyberArk - CyberArk Central Credential Provider +# +# Mandatory: no +# Default: +# Vault=HashiCorp + ### Option: VaultToken # Vault authentication token that should have been generated exclusively for Zabbix server with read only permission # to paths specified in Vault macros and read only permission to path specified in optional VaultDBPath @@ -904,6 +913,7 @@ # It is an error if VaultToken and VAULT_TOKEN environment variable are defined at the same time. # # Mandatory: no +# (yes, if Vault is explicitly set to HashiCorp) # Default: # VaultToken= @@ -915,21 +925,43 @@ # VaultURL=https://127.0.0.1:8200 ### Option: VaultDBPath -# Vault path from where credentials for database will be retrieved by keys 'password' and 'username'. -# Example: secret/zabbix/database +# Vault path or query depending on the Vault from where credentials for database will be retrieved by keys. +# Vault path or query depending on the Vault from where credentials for database will be retrieved by keys. +# Keys used for HashiCorp are 'password' and 'username'. +# Example path: +# secret/zabbix/database +# Keys used for CyberArk are 'Content' and 'UserName'. +# Example query: +# AppID=zabbix_server&Query=Safe=passwordSafe;Object=zabbix_server_database # This option can only be used if DBUser and DBPassword are not specified. # # Mandatory: no # Default: # VaultDBPath= +### Option: VaultTLSCertFile +# Name of the SSL certificate file used for client authentication. The certificate file must be in PEM1 format. +# If the certificate file contains also the private key, leave the SSL key file field empty. The directory +# containing this file is specified by configuration parameter SSLCertLocation. +# +# Mandatory: no +# Default: +# VaultTLSCertFile= + +### Option: VaultTLSKeyFile +# Name of the SSL private key file used for client authentication. The private key file must be in PEM1 format. +# The directory containing this file is specified by configuration parameter SSLKeyLocation. +# +# Mandatory: no +# Default: +# VaultTLSKeyFile= + ### Option: StartReportWriters # Number of pre-forked report writer instances. # # Mandatory: no # Range: 0-100 # Default: -StartReportWriters=1 +# StartReportWriters=0 ### Option: WebServiceURL # URL to Zabbix web service, used to perform web related tasks. @@ -937,7 +969,7 @@ # # Mandatory: no # Default: -WebServiceURL=http://localhost:10053/report +# WebServiceURL= ### Option: ServiceManagerSyncFrequency # How often Zabbix will synchronize configuration of a service manager (in seconds). *** zabbix_server.conf (Y/I/N/O/D/Z) [по умолчанию N] ? Y Устанавливается новая версия файла настройки /etc/zabbix/zabbix_server.conf … Настраивается пакет zabbix-agent (1:6.2.1-1+ubuntu22.04) … Файл настройки «/etc/zabbix/zabbix_agentd.conf» ==> Изменён с момента установки (вами или сценарием). ==> Автор пакета предоставил обновлённую версию. Что нужно сделать? Есть следующие варианты: Y или I : установить версию, предлагаемую сопровождающим пакета N или O : оставить установленную на данный момент версию D : показать различия между версиями Z : запустить оболочку командной строки для проверки ситуации По умолчанию сохраняется текущая версия файла настройки. *** zabbix_agentd.conf (Y/I/N/O/D/Z) [по умолчанию N] ? D --- /etc/zabbix/zabbix_agentd.conf 2022-04-13 14:00:53.000000000 +0700 +++ /etc/zabbix/zabbix_agentd.conf.dpkg-new 2022-07-14 18:12:52.000000000 +0700 @@ -40,7 +40,7 @@ # Default: # LogFileSize=1 -LogFileSize=10 +LogFileSize=0 ### Option: DebugLevel # Specifies debug level: @@ -54,7 +54,7 @@ # Mandatory: no # Range: 0-5 # Default: -DebugLevel=3 +# DebugLevel=3 ### Option: SourceIP # Source IP address for outgoing connections. @@ -144,12 +144,18 @@ ##### Active checks related ### Option: ServerActive -# List of comma delimited IP addresses or DNS names (address:port) pairs or clusters (address:port;address2:port) of Zabbix servers and Zabbix proxies for active checks. +# Zabbix server/proxy address or cluster configuration to get active checks from. +# Server/proxy address is IP address or DNS name and optional port separated by colon. +# Cluster configuration is one or more server addresses separated by semicolon. +# Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma. +# More than one Zabbix proxy should not be specified from each Zabbix server/cluster. +# If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified # If port is not specified, default port is used. -# Cluster nodes need be separated by semicolon. # IPv6 addresses must be enclosed in square brackets if port for that host is specified. # If port is not specified, square brackets for IPv6 addresses are optional. # If this parameter is not specified, active checks are disabled. +# Example for Zabbix proxy: +# ServerActive=127.0.0.1:10051 # Example for multiple servers: # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1] # Example for HA: @@ -262,6 +268,16 @@ # Default: # MaxLinesPerSecond=20 +### Option: HeartbeatFrequency +# Frequency of heartbeat messages in seconds. +# Used for monitoring availability of active checks. +# 0 - heartbeat messages disabled. + +# DebugLevel=3 ### Option: SourceIP # Source IP address for outgoing connections. @@ -144,12 +144,18 @@ ##### Active checks related ### Option: ServerActive -# List of comma delimited IP addresses or DNS names (address:port) pairs or clusters (address:port;address2:port) of Zabbix servers and Zabbix proxies for active checks. +# Zabbix server/proxy address or cluster configuration to get active checks from. +# Server/proxy address is IP address or DNS name and optional port separated by colon. +# Cluster configuration is one or more server addresses separated by semicolon. +# Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma. +# More than one Zabbix proxy should not be specified from each Zabbix server/cluster. +# If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified # If port is not specified, default port is used. -# Cluster nodes need be separated by semicolon. # IPv6 addresses must be enclosed in square brackets if port for that host is specified. # If port is not specified, square brackets for IPv6 addresses are optional. # If this parameter is not specified, active checks are disabled. +# Example for Zabbix proxy: +# ServerActive=127.0.0.1:10051 # Example for multiple servers: # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1] # Example for HA: @@ -262,6 +268,16 @@ # Default: # MaxLinesPerSecond=20 +### Option: HeartbeatFrequency +# Frequency of heartbeat messages in seconds. +# Used for monitoring availability of active checks. +# 0 - heartbeat messages disabled. +# +# Mandatory: no +# Range: 0-3600 +# Default: 60 +# HeartbeatFrequency= + ############ ADVANCED PARAMETERS ################# ### Option: Alias @@ -535,6 +551,3 @@ # Range: 0 - INT_MAX (depends on system, too large values may be silently truncated to implementation-specified maximum) # Default: SOMAXCONN (hard-coded constant, depends on system) # ListenBacklog= - -# liv 08.04.2022 -# ForceActiveChecksOnStart=1 \ В конце файла нет новой строки # *** zabbix_agentd.conf (Y/I/N/O/D/Z) [по умолчанию N] ? Y Устанавливается новая версия файла настройки /etc/zabbix/zabbix_agentd.conf … Обрабатываются триггеры для man-db (2.10.2-1) … Scanning processes... Scanning linux images... Running kernel seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. https://singularity.lytkins.ru/zabbix/ Database error • The Zabbix database version does not match current requirements. Your database version: 6000000. Required version: 6020000. Please contact your system administrator.