[ZBX-19514] Disk utilization Windows template wrong Created: 2021 Jun 03  Updated: 2022 Nov 22  Resolved: 2021 Nov 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 5.0.11, 5.2.5, 5.4.0
Fix Version/s: 5.0.19rc1, 5.4.9rc1, 6.0.0beta1, 6.0 (plan)

Type: Problem report Priority: Trivial
Reporter: agris Assignee: Andrew Biba
Resolution: Fixed Votes: 1
Labels: disk, template, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows server 2016, agent2


Attachments: PNG File image-2021-06-03-14-04-05-437.png     PNG File image-2021-06-03-14-06-06-211.png    
Issue Links:
Duplicate
duplicates ZBX-18869 Disk is overloaded > Closed
Story Points: 0.5

 Description   

Steps to reproduce

  1. link Windows physical disks by Zabbix agent to Windows host
  2. check graph Disk Utilization

Result:

Expected:
Correct utilization by Disk Idle Time. wrong upside, correct -down.

 

Problem are perf_counter_en"\PhysicalDisk({#DEVNAME})% Disk Time",60
MS explain https://docs.microsoft.com/en-us/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained

%Disk Time (% Disk Read Time, % Disk Write Time)
The “% Disk Time” counter is nothing more than the “Avg. Disk Queue Length” counter multiplied by 100. It is the same value displayed in a different scale.
If the Avg. Disk queue length is equal to 1, the %Disk Time will equal 100. If the Avg. Disk Queue Length is 0.37, then the %Disk Time will be 37.
This is the reason why you can see the % Disk Time being greater than 100%, all it takes is the Avg. Disk Queue length value being greater than 1.

Second graph are with witch seems ok for me and show 1=1 with performance monitor in task manager disk tabs.
perf_counter_en"\PhysicalDisk({#DEVNAME})% Idle Time",60
With java script "return (value - 100) * -1"

this issue can resolv also 18869



 Comments   
Comment by agris [ 2021 Jun 03 ]

this ir related https://support.zabbix.com/browse/ZBX-18869

My  js get minus values, here are some better JS with 2 decimal numbers:
return Math.round((100-value)*100)/100

Comment by Dmitry Krupornitsky [ 2021 Jun 10 ]

Confirmed on Windows Server 2016 with Zabbix 5.0.3

Possibly need to limit the output value of graph or choose another metric.

Comment by Andrew Biba [ 2021 Nov 17 ]

Available in:

Comment by Enachi Sergiu [ 2021 Nov 25 ]

do you know ~ when 5.0.18 will be in stable version?

Comment by Andrew Biba [ 2021 Nov 25 ]

senachi  unfortunately i don't know, but you can download the template already now from git repo 

 

Generated at Sat Apr 19 07:12:35 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.