-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.4.1
-
Zabbix 4.4.1
Zabbix agent 4.4.1 on Windows Server 2012R2/2016
Templates 0.32
-
Sprint 65 (Jun 2020)
-
0.125
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]):