[ZBX-6902] system.swap.size broken on Solaris Created: 2013 Aug 16 Updated: 2017 May 30 Resolved: 2013 Sep 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.7 |
Fix Version/s: | 2.0.9rc1, 2.1.5 |
Type: | Incident report | Priority: | Major |
Reporter: | Andrew Howell | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | regression, solaris, swap | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Solaris 10 & 11 on sparc and x86 |
Issue Links: |
|
Description |
Since 2.0.7 system.swap.size is reporting wrong values for total and free. A sol11 x86 server with 4 GB of swap is reporting it has 48 GB |
Comments |
Comment by Andrew Howell [ 2013 Aug 16 ] |
I'm assuming |
Comment by Andris Mednis [ 2013 Aug 20 ] |
Could you please check is Zabbix agent compiled as 64-bit binary ? For example, by running "file sbin/zabbix_agentd". |
Comment by Andrew Howell [ 2013 Aug 21 ] |
Solaris 11 x86 (X4270 M3) is 64 bit (compiled with Solaris Studio 12.3) |
Comment by Andris Mednis [ 2013 Aug 22 ] |
Hi, Andrew! I think nothing is broken, it was just changed in Zabbix 2.0.7. In Zabbix 2.0.6 system.swap.size[,total], system.swap.size[,pused], system.swap.size[,pfree] are calculated like in "swap -l".
In Zabbix 2.0.7 system.swap.size[,total], system.swap.size[,pused], system.swap.size[,pfree] are calculated like in "swap -s".
Is Solaris swap reporting better in Zabbix v.2.0.6 than in v.2.0.7 ? To explain your 4 cases, can you check what "swap -s" and "swap -l" show on these servers ? |
Comment by Andrew Howell [ 2013 Aug 22 ] |
Yes the swap -s vs swap -l explains the results. I think this was a retrograde step. It now doesn't match how swap is reported on linux. Plus as you say yourself it's extremely confusing to users. Plus this behavior change wasn't mentioned at all in the what's new or release notes. It's broken triggers and items update intervals need changing. I would like to request that it's reversed. Total swap space should report that, not swap + memory. |
Comment by Andris Mednis [ 2013 Aug 23 ] |
It was decided to revert changes in Solaris swap reporting which were made in |
Comment by Andris Mednis [ 2013 Sep 02 ] |
Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-6902, tested on Solaris 10 x86. |
Comment by Andrew Howell [ 2013 Sep 03 ] |
Will this make it into 2.0.9? |
Comment by Andris Mednis [ 2013 Sep 03 ] |
Most likely, yes. |
Comment by Alexander Vladishev [ 2013 Sep 03 ] |
Successfully tested! Please review my changes in r38289:38292. andris Thanks! Changes accepted. |
Comment by Andris Mednis [ 2013 Sep 03 ] |
Fixed in versions pre-2.0.9 rev. 38294 and pre-2.1.5 rev. 38426. |