<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51529</bug_id>
          
          <creation_ts>2024-09-23 09:43:20 +0300</creation_ts>
          <short_desc>Не получает метрики с агента</short_desc>
          <delta_ts>2024-12-26 13:48:02 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>zabbix-agent2-plugin-postgresql</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>glinkinvd</cc>
    
    <cc>urozhaevaoo</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>251930</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-09-23 09:43:20 +0300</bug_when>
    <thetext>Версия пакета: zabbix-agent2-plugin-postgresql-6.0.33-alt1

Воспроизводится только на ALT Workstation K 10.3.

На других дистрибутивах (Workstation, Education, Server), а так же в p11 не воспроизводится.

При попытке получить данные на сервере с агента, который настроен на Workstation K, получаю ошибку:
```
# zabbix_get -s 192.168.1.12 -k pgsql.version
ZBX_NOTSUPPORTED: Timeout 3s reached while waiting for response from plugin: broker timeout.
```

На агенте в этот момент в логах /var/log/zabbix/zabbix_agent2.log (с DebugLevel=5):
```
2024/09/20 15:06:54.745353 received passive check request: &apos;pgsql.version&apos; from &apos;192.168.1.11&apos;
2024/09/20 15:06:54.745760 [1] processing update request (1 requests)
2024/09/20 15:06:54.746010 [1] adding new request for key: &apos;pgsql.version&apos;
2024/09/20 15:06:54.746069 [1] created direct exporter task for plugin &apos;PostgreSQL&apos; itemid:0 key &apos;pgsql.version&apos;
2024/09/20 15:06:54.746545 executing direct exporter task for key &apos;pgsql.version&apos;
2024/09/20 15:06:57.747522 failed to execute direct exporter task for key &apos;pgsql.version&apos; error: &apos;Timeout 3s reached while waiting for response from plugin: broker timeout.&apos;
2024/09/20 15:06:57.749698 sending passive check response: ZBX_NOTSUPPORTED: &apos;Timeout 3s reached while waiting for response from plugin: broker timeout.&apos; to &apos;10.88.10.95&apos;
```
В логах postgresql в момент попытки подключения вообще ничего не пишет (включено log_min_messages = debug5).

Проверено с postgresql 15 и 16.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254078</commentid>
    <comment_count>1</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2024-11-07 13:58:29 +0300</bug_when>
    <thetext>На версии zabbix-agent2-plugin-postgresql-6.0.34-alt0.p10.1 данная ошибка воспроизвелась только на Server 10.2

На системах:
Workstation K 10.4
Workstaion 10.2
Education XFCE 10.2
Education KDE 10.2

данная проблема не воспроизвелась.

Со сборочным заданием 360318 (zabbix-agent2-plugin-postgresql-6.0.35-alt0.p10.1) то же самое.
Проверил воспроизведение в минимальном профиле Server 10.2 - воспроизвелось.
Локализовать проблему не получилось. Логи агента идентичны указанным выше.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256650</commentid>
    <comment_count>2</comment_count>
    <who name="Olga">urozhaevaoo</who>
    <bug_when>2024-12-26 13:48:02 +0300</bug_when>
    <thetext>Ошибка не воспроизводится в версии zabbix-7.0.6-alt0.p10.1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>