[ZBX-19116] system.cpu.util for agent2 not working in non english windows Created: 2021 Mar 12 Updated: 2024 Apr 10 Resolved: 2021 Aug 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 5.2.5 |
Fix Version/s: | 5.0.15rc1, 5.4.4rc1, 6.0.0alpha1, 6.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Valentin Tumanov | Assignee: | Artjoms Rimdjonoks |
Resolution: | Fixed | Votes: | 6 |
Labels: | agent, items | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Windows non english locale(russian in my case)(2012R2, 20H2(19042.804) |
Attachments: |
![]() ![]() ![]() ![]() ![]() |
Team: | |
Sprint: | Sprint 78 (Jul 2021) |
Story Points: | 1 |
Description |
Steps to reproduce:
Result: [Cpu] cannot add performance counter for total CPU utilization: Указанные объекты не найдены на этом компьютере. system.cpu.util returned always 0% Expected: (in Zabbix Agent1(5.2.5) all working.
A colleague from the telegram chat Zabbix Russian Community (Alexander Khatsayuk) reproduced the problem and looked at the source code - the system counters are requested in English. At the same time, there is no problem on the agent of the first version. |
Comments |
Comment by Alexey Pustovalov [ 2021 Mar 15 ] |
Hello! Is it possible to attach Zabbix agent log with enabled debug mode? DebugLevel = 5 Kind regards, |
Comment by Valentin Tumanov [ 2021 Mar 16 ] |
Hi! Added file zabbix_agent2_debug_5.log. I replace server ip and name. |
Comment by Valentin Tumanov [ 2021 Mar 19 ] |
Added file zabbix_agent2_debug_5.log. I replace server ip and name. |
Comment by Alexey Pustovalov [ 2021 Mar 21 ] |
it is strange, because then I see eng naming in performance counters. Could you try manually check "Processor%Processor Time - Total" ? |
Comment by Ulrich Müller [ 2021 Apr 20 ] |
Hi. I have a virtualized Windows 2019 Server 1809 german edition: [Cpu] cannot add performance counter for CPU#0,0 utilization: Das angegebene Objekt wurde nicht auf dem Computer gefunden. Using Version 5.2.3
|
Comment by Maksim Strekalovskikh [ 2021 May 27 ] |
Hello, colleagues!
I'm also confirm this problem on this moment (Zabbix Agent 5.0.12) We starting moving from Zabbix Agent 1 to 2 due to improved functionality and modern operational systems allow us. But when validating item data, this problem manifested itself. We decided to stay on Zabbix Agent 1 on Windows systems for now because of this problem. This metric is critical for us.
"[Cpu] cannot add performance counter for CPU#, utilization: Указанные объекты не найдены на этом компьютере." Yes, it is displayed in the logs. We didn't even know that this error was part of the problem. "system.cpu.util returned always 0%" Yes. No errors from Zabbix Frontend. But if test this item on problem machine, it output this:
C:\zabbix\bin>zabbix_agent2.exe -c c:\zabbix\conf\zabbix_agent2.conf -t "system.cpu.util" system.cpu.util [m|ZBX_NOTSUPPORTED] [Timeout occurred while gathering data.]
Timeout in Zabbix agent config set to 30 seconds (max value). "Normal working check in non english windows. (in Zabbix Agent1(5.2.5) all working." "At the same time, there is no problem on the agent of the first version." Yes. In our case version 5.0.11 and 5.0.12 is working with no problems.
Problem starts in versions Zabbix Agent 2 5.0.8, ending current version 5.0.12. Windows systems tested on: Windows: All version of Windows with Russian language.
On English language of Windows Server 2016 Standard (64-bit), this key Zabbix Agent 2 (5.0.9 and 5.0.12) is works normally.
Workaround in Zabbix Agent 2:
perf_counter["\Процессор(_Total)\% загруженности процессора"]
But we would like to work with a standard key.
@dotneft We are ready to assist you in the tests. ??it is strange, because then I see eng naming in performance counters. Could you try manually check "Processor%Processor Time - Total" ??? In registry contains information about performance counters in English in the Russian version of Windows 10 (21H1) in my work computer. File with counters include in attachments. In my case search "Processor Time" i see 4 counters: 6 - % Processor Time
typeperf \2\6 Error: No counters.
typeperf \238(_Total)\240
Error: No counters.
typeperf \3518(_Total)\3520
Works! In command typeperf not works with English counters, only Russian. Key from Zabbix works on machine with Windows Server 2008 R2 Standard (Zabbix Agent 2 - 5.0.12):
perf_counter_en["\Processor(_Total)\% Processor Time"]
If more tests are required, we'll try.
We will be very happy if the problem is solved. Thank you! |
Comment by Artjoms Rimdjonoks [ 2021 Jul 29 ] |
Available in versions:
Unfortunately 5.2 support period has come to an end |