perf_counter_en do not work with zabbix_agent2 through test item key

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 7.0.26
    • None

      Official Zabbix 7.0 template "Windows by Zabbix agent" contains the performance counter item key:

      perf_counter_en["\System\Threads"]
      

      The agentd can "test" this via the command line, but the counter is not printed back with agent2 "test"

      C:\zabbix>zabbix_agentd -V
      zabbix_agentd Win64 (service) (Zabbix) 7.0.26
      Revision 3832e2a0553 5 May 2026, compilation time: May  5 2026 15:50:18
      
      Copyright (C) 2026 Zabbix SIA
      License AGPLv3: GNU Affero General Public License version 3 <https://www.gnu.org/licenses/>.
      This is free software: you are free to change and redistribute it according to
      the license. There is NO WARRANTY, to the extent permitted by law.
      
      This product includes software developed by the OpenSSL Project
      for use in the OpenSSL Toolkit (http://www.openssl.org/).
      
      Compiled with OpenSSL 3.5.1 1 Jul 2025
      Running with OpenSSL 3.5.1 1 Jul 2025
      
      C:\zabbix>zabbix_agent2 -V
      zabbix_agent2 Win64 (Zabbix) 7.0.26
      Revision 3832e2a0553 5 May 2026, compilation time: 2026-05-05 15:56:08, built with: go1.24.10
      Plugin communication protocol version is 6.4.0
      
      Copyright (C) 2026 Zabbix SIA
      License AGPLv3: GNU Affero General Public License version 3 <https://www.gnu.org/licenses/>.
      This is free software: you are free to change and redistribute it according to
      the license. There is NO WARRANTY, to the extent permitted by law.
      
      This product includes software developed by the OpenSSL Project
      for use in the OpenSSL Toolkit (http://www.openssl.org/).
      
      Compiled with OpenSSL 3.5.1 1 Jul 2025
      Running with OpenSSL 3.5.1 1 Jul 2025
      
      We use the library Eclipse Paho (eclipse/paho.mqtt.golang), which is
      distributed under the terms of the Eclipse Distribution License 1.0 (The 3-Clause BSD License)
      available at https://www.eclipse.org/org/documents/edl-v10.php
      
      We use the library go-modbus (goburrow/modbus), which is
      distributed under the terms of the 3-Clause BSD License
      available at https://github.com/goburrow/modbus/blob/master/LICENSE
      
      
      C:\zabbix>zabbix_agentd -c zabbix_agentd.conf -t perf_counter_en["\System\Threads"]
      perf_counter_en[\System\Threads]              [d|3730]
      
      C:\zabbix>zabbix_agent2 -c zabbix_agent2.conf -t perf_counter_en["\System\Threads"]
      perf_counter_en[\System\Threads]              [-|ZBX_NODATA]
      

      At same time, zabbix_get can report data from agent2:

      C:\zabbix>zabbix_get -s 127.0.0.1 -p 12050 -k agent.variant
      2
      
      C:\zabbix>zabbix_get -s 127.0.0.1 -p 12050 -k agent.version
      7.0.26
      
      C:\zabbix>zabbix_get -s 127.0.0.1 -p 12050 -k perf_counter_en[\System\Threads]
      3638.000000
      

            Assignee:
            Zabbix Development Team
            Reporter:
            Aigars Kadikis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: