[ZBX-13092] Swap on Solaris Reports incorrectly Created: 2017 Nov 24 Updated: 2024 Apr 10 Resolved: 2018 Apr 27 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Agent (G) |
| Affects Version/s: | 3.4.4 |
| Fix Version/s: | 4.0 (plan) |
| Type: | Problem report | Priority: | Major |
| Reporter: | David Angelovich | Assignee: | Viktors Tjarve |
| Resolution: | Won't fix | Votes: | 0 |
| Labels: | solaris | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Oracle Solaris 10 8/11 s10x_u10wos_17b X86 |
||
| Attachments: |
|
| Team: | |
| Sprint: | Sprint 30, Sprint 31, Sprint 32 |
| Story Points: | 1 |
| Description |
|
Values reported by Zabbix agent don't match reality: $ zabbix_get -s localhost -k system.swap.size[,pfree] 100.000000 $ zabbix_get -s localhost -k system.swap.size[,free] 34359734272 $ zabbix_get -s localhost -k system.swap.size[,total] 34359734272 $ zabbix_get -s localhost -k system.swap.size[,used] 0 $ zabbix_get -s localhost -k system.swap.size[,pused] 0.000000 $ memstat RAM Total: 131024 MB RAM Used: 123036 MB RAM Free: 7988 MB --------------------- Swap Total: 71137 MB Swap Used: 69274 MB Swap Free: 1862 MB $ swap -l swapfile dev swaplo blocks free /dev/swap 4294967295,4294967295 8 67108856 67108856 Looking at previous data, this issue has existed for quite some time. Possibly before our 3.0 migration. |
| Comments |
| Comment by Aleksejs Petrovs [ 2017 Nov 30 ] |
|
Hello David, I'm trying to reproduce this issue. Could you please share the screenshot of top command and values from Zabbix frontend for the same period? Regards, |
| Comment by David Angelovich [ 2017 Nov 30 ] |
|
top isn't installed on our Solaris, prstat output supplied instead. |
| Comment by Aleksejs Petrovs [ 2017 Dec 04 ] |
|
David, sorry for the delay. Could you please show the item config? Regards, |
| Comment by David Angelovich [ 2017 Dec 04 ] |
|
Item config: |
| Comment by Aleksejs Petrovs [ 2017 Dec 05 ] |
|
Does this affect only one host or it is a global issue? Could you please attach the Template you are using and the agent you are using? Did you've modified the Agent source code? Thanks! |
| Comment by David Angelovich [ 2017 Dec 05 ] |
|
Zabbix Agent binary. |
| Comment by David Angelovich [ 2017 Dec 05 ] |
|
Zabbix Solaris Template |
| Comment by David Angelovich [ 2017 Dec 05 ] |
|
The agent source code isn't modified, but the install paths are specific for our environment. |
| Comment by Aleksejs Petrovs [ 2017 Dec 11 ] |
|
Sorry for delay, Could you please double-check with the one we have on the download page(pre-compiled 3.2.0)? Do counters still false or no? |
| Comment by David Angelovich [ 2017 Dec 13 ] |
|
I get the same incorrect information using the pre-compiled 3.2.0 binary: $ zabbix-agent/bin/zabbix_get -s localhost -k system.swap.size[,pfree] 100.000000 $ zabbix-agent/bin/zabbix_get -s localhost -k system.swap.size[,free] 34359734272 $ zabbix-agent/bin/zabbix_get -s localhost -k system.swap.size[,total] 34359734272 $ zabbix-agent/bin/zabbix_get -s localhost -k system.swap.size[,used] 0 $ zabbix-agent/bin/zabbix_get -s localhost -k system.swap.size[,pused] 0.000000 $ zabbix-agent/bin/zabbix_get -s localhost -k agent.version 3.2.0 $ memstat RAM Total: 131024 MB RAM Used: 121712 MB RAM Free: 9312 MB --------------------- Swap Total: 70711 MB Swap Used: 67418 MB Swap Free: 3292 MB |
| Comment by Viktors Tjarve [ 2018 Apr 26 ] |
|
In the documentation it is stated that
In the description example I can see that the value for the area (blocks) and area that is not currently allocated (free) are the same - the whole swap area is free (not allocated). Note that these values are the number of 512-byte blocks. So if we do the calculations: From all that I can conclude that swap reports on Solaris are working correctly. WON'T FIX |