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

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

    <bug>
          <bug_id>37264</bug_id>
          
          <creation_ts>2019-09-25 11:16:39 +0300</creation_ts>
          <short_desc>Агент отдает нулевые значения из семейства system.cpu.util[]</short_desc>
          <delta_ts>2019-09-30 06:34:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>zabbix34-agent</component>
          <version>unstable</version>
          <rep_platform>all</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>backport</keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Moskalenko">mav</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>evg</cc>
    
    <cc>snejok</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>184574</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Moskalenko">mav</who>
    <bug_when>2019-09-25 11:16:39 +0300</bug_when>
    <thetext>Текущий zabbix34-agent (3.4.15) отдает нули вместо любого из значений system.cpu.util[]. При этот на той же системе zabbix-agent 3.0.26 из p8 отдает правильные значения.
Пример:
[zabbix@zabbix ~]$ for i in host-34 host-30; do echo -n &quot;$i: version=&quot;; 
zabbix_get -s $i -k &quot;agent.version&quot;; for p in idle user system iowait; 
do echo -n &quot;$i: system.cpu.util.[,$p]=&quot;; zabbix_get -s $i -k 
&quot;system.cpu.util[,$p]&quot;; done; done
host-34: version=3.4.15
host-34: system.cpu.util.[,idle]=0.000000
host-34: system.cpu.util.[,user]=0.000000
host-34: system.cpu.util.[,system]=0.000000
host-34: system.cpu.util.[,iowait]=0.000000
host-30: version=3.0.26
host-30: system.cpu.util.[,idle]=99.216209
host-30: system.cpu.util.[,user]=0.266822
host-30: system.cpu.util.[,system]=0.491954
host-30: system.cpu.util.[,iowait]=0.016676</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184592</commentid>
    <comment_count>1</comment_count>
    <who name="Lenar Shakirov">snejok</who>
    <bug_when>2019-09-26 11:50:31 +0300</bug_when>
    <thetext>ЕМНИП оно на стадии сборки проверяет наличие /proc и отключает этот функционал, если не нашло

а /proc (думаю что по ошибке) убрали тут начиная с версии 3.2.5-alt1:

http://git.altlinux.org/gears/z/zabbix.git?p=zabbix.git;a=commitdiff;h=82f84a6c087147d032a247f3a45b76c58ac212f4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184593</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-09-26 12:19:48 +0300</bug_when>
    <thetext>zabbix34-agent-3.4.15-alt2 -&gt; sisyphus:

Thu Sep 26 2019 Alexei Takaseev &lt;taf@altlinux&gt; 3.4.15-alt2
- Add BR /proc (ALT #37264)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184595</commentid>
    <comment_count>3</comment_count>
    <who name="Lenar Shakirov">snejok</who>
    <bug_when>2019-09-26 13:25:35 +0300</bug_when>
    <thetext>Спасибо за оперативность!

Сюда тоже добавите?
http://git.altlinux.org/gears/z/zabbix.git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184596</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Moskalenko">mav</who>
    <bug_when>2019-09-26 13:46:14 +0300</bug_when>
    <thetext>А до p9 оно дойдет? А то мне негде проверить сизифный...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184599</commentid>
    <comment_count>5</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2019-09-26 14:25:17 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; Спасибо за оперативность!
&gt; 
&gt; Сюда тоже добавите?
&gt; http://git.altlinux.org/gears/z/zabbix.git

При полноценной сборке /proc подтягивается при сборке zabbix-java-gateway. Но на всякий случай добавлю ее явно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184600</commentid>
    <comment_count>6</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2019-09-26 14:56:14 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; А до p9 оно дойдет? А то мне негде проверить сизифный...

http://git.altlinux.org/tasks/238206/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184601</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Moskalenko">mav</who>
    <bug_when>2019-09-26 15:25:49 +0300</bug_when>
    <thetext>Таск проверил, значения появились, спасибо! Ждем в p9. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184655</commentid>
    <comment_count>8</comment_count>
    <who name="Alex Moskalenko">mav</who>
    <bug_when>2019-09-30 06:34:53 +0300</bug_when>
    <thetext>А когда же фикс до P9 доползет?...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>