[ZBX-16945] Hight swap space usage trigger expression in Template Module Windows memory by Zabbix agent (active) Created: 2019 Nov 19  Updated: 2024 Apr 10  Resolved: 2020 Jun 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 4.4.1
Fix Version/s: 5.0.2rc1, 5.2.0alpha1, 5.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Khatsayuk Alexander Assignee: Maxim Chudinov (Inactive)
Resolution: Fixed Votes: 2
Labels: template, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 4.4.1
Zabbix agent 4.4.1 on Windows Server 2012R2/2016
Templates 0.32


Attachments: PNG File image-2019-11-19-15-19-00-186.png     PNG File image-2019-11-19-15-22-40-316.png    
Team: Team INT
Sprint: Sprint 65 (Jun 2020)
Story Points: 0.125

 Description   

Zabbix agent item 'system.swap.size[,pfree]' mays show wrong value on virtualized Windows hosts (VMWare, Hyper-V etc). Behavior is documented:**

https://www.zabbix.com/documentation/4.4/manual/config/items/itemtypes/zabbix_agent

Note that this key might report incorrect swap space size/percentage on virtualized (VMware ESXi, VirtualBox) Windows platforms. In this case you may use the perf_counter[\700(_Total)\702] key to obtain correct swap space percentage.

So, maybe we should use performance counter in the template instead of system.swap.size item?

 

In my case I've just replace it to 'perf_counter_en["\Paging file(_Total)\ % Usage"]' and change trigger expression as showing below:

E.g. I have VM shv-vexch03 where performance counter returns ~8% page file usage and system.swap.size[,*pfree*] which returns 66% usage (100 - system.swap.size[,pfree]):



 Comments   
Comment by Maxim Chudinov (Inactive) [ 2020 Jun 12 ]

Available in:

Generated at Mon Apr 28 09:37:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.