Ad Widget

Collapse

Не могу подключиться к Zabbix-серверу, используя web-интерфейс

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RedScorpio
    Junior Member
    • Aug 2024
    • 2

    #1

    Не могу подключиться к Zabbix-серверу, используя web-интерфейс

    Добрый день

    Установлены и работают:
    1. Zabbix-server 6.0.39 (ошибок в логах нет)
    zabbix-server-pgsql.service - Zabbix Server with PostgreSQL DB Loaded: loaded (/usr/lib/systemd/system/zabbix-server-pgsql.service; disabled; vendor preset: disabled)
    2. nginx 1.14.1
    3. php-fpn 7.2.24
    4. PostgeSQL 14.12

    Code:
    [root@xxxxxxxxxxx ~]$ cat /etc/zabbix/web/zabbix.conf.php
    <?php
    // Zabbix GUI configuration file.
    
    $DB['TYPE']                             = 'POSTGRESQL';
    $DB['SERVER']                   = 'localhost';
    $DB['PORT']                             = '0';
    $DB['DATABASE']                 = 'zabbix';
    $DB['USER']                             = 'zabbix';
    $DB['PASSWORD']                 = 'zabbix';
    
    // Schema name. Used for PostgreSQL.
    $DB['SCHEMA']                   = '';
    
    // Used for TLS connection.
    $DB['ENCRYPTION']               = false;
    $DB['KEY_FILE']                 = '';
    $DB['CERT_FILE']                = '';
    $DB['CA_FILE']                  = '';
    $DB['VERIFY_HOST']              = false;
    $DB['CIPHER_LIST']              = '';
    
    // Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
    // This option is enabled by default for new Zabbix installations.
    // For upgraded installations, please read database upgrade notes before enabling this option.
    $DB['DOUBLE_IEEE754']   = true;
    
    $ZBX_SERVER                             = 'localhost';
    $ZBX_SERVER_PORT                = '10051';
    $ZBX_SERVER_NAME                = 'xxxxxxxxxxx';
    
    $IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
    <...>
    Но при попытке подключиться с помощью web-интерфейса возникает ошибка

    DB type "POSTGRESQL" is not supported by current setup. Possible values MYSQL.

    О каком сетапе (current setup) идет речь? Что-где править?

    PS. При первом включении web-интерфейса не было выбора PostgreSQL, /etc/zabbix/web/zabbix.conf.php создавался вручную, по аналогии с другими серверами Zabbix, где все работает
  • Answer selected by RedScorpio at 07-08-2025, 09:43.
    RedScorpio
    Junior Member
    • Aug 2024
    • 2

    Originally posted by RedScorpio
    DB type "POSTGRESQL" is not supported by current setup. Possible values MYSQL.
    Решение:
    yum install php-pgsql
    systemctl restart php-fpm


    Т.е. в php добавляем поддержку PostgreSQL

    Comment

    • RedScorpio
      Junior Member
      • Aug 2024
      • 2

      #2
      Originally posted by RedScorpio
      DB type "POSTGRESQL" is not supported by current setup. Possible values MYSQL.
      Решение:
      yum install php-pgsql
      systemctl restart php-fpm


      Т.е. в php добавляем поддержку PostgreSQL

      Comment

      Working...