[ZBX-6046] net.if doesn't work on solaris 11 zones Created: 2013 Jan 02 Updated: 2024 Apr 10 Resolved: 2018 Jun 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.4 |
Fix Version/s: | 3.0.19rc1, 3.4.11rc1, 4.0.0alpha8, 4.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Andrew Howell | Assignee: | Michael Veksler |
Resolution: | Fixed | Votes: | 2 |
Labels: | solaris | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Solaris 11 non global zone |
Attachments: | fixed_net_c-fix_network_statistics_solaris_11.diff net_c-fix_network_statistics_solaris_11.diff zonecfg.txt | ||||||||
Issue Links: |
|
||||||||
Team: | Team C | ||||||||
Sprint: | Sprint 18, Sprint 19, Sprint 20, Sprint 21, Sprint 22, Sprint 23, Sprint 33, Sprint 34, Sprint 35, Sprint 36 | ||||||||
Story Points: | 0.5 |
Description |
On solaris 11 non global zones net.if.in/out/total all return 0 for packets and bytes. It does work for the global zone. net.if.discovery does return the correct interface name. dlstat does show stats for the interface |
Comments |
Comment by Jairo Eduardo Lopez Fuentes Nacarino [ 2013 Feb 12 ] |
Hello! Can you post how your zone is configured? It is entirely possible for dlstat to show the data you require, while the Zabbix agent not to show it because they are using 2 completely different libraries to obtain the data. |
Comment by Andrew Howell [ 2013 Feb 12 ] |
zonecfg -z <zone> info output |
Comment by Andrew Howell [ 2013 Feb 12 ] |
Hi, I've attached the configuration of the zone in question. |
Comment by richlv [ 2013 Dec 04 ] |
confirming with 2.2.1rc1 agent on SunOS 5.11 11.1 sun4v |
Comment by Andrew Howell [ 2014 Apr 02 ] |
Also noticed today that it doesn't work on the global zone for vlan interfaces |
Comment by Rostislav Palivoda [ 2017 Nov 03 ] |
Could you help us with environment to reproduce the problem and test fix patch? ahowell |
Comment by Vladislavs Sokurenko [ 2017 Dec 05 ] |
Could you please be so kind and provide full dlstat command ? Thanks ! kstat link:0:net0 |
Comment by Andrea Biscuola (Inactive) [ 2017 Dec 15 ] |
The problem rely on the fact we don't check properly what There are three possible cases how those fields are when
If both the field are set, they MUST have the same value, but I would go for a solution as proposed by vso |
Comment by Andrea Biscuola (Inactive) [ 2017 Dec 15 ] |
Hi ahowell I attached a patch to test. can you apply it to the zabbix agent Regards The file is: net_c-fix_network_statistics_solaris_11.diff Forgot to mention: The patch is for the zabbix agent 3.0 (currently |
Comment by Andrea Biscuola (Inactive) [ 2017 Dec 15 ] |
Oh, well, if one of our customers can test this, much appreciated! Thanks! |
Comment by Andrea Biscuola (Inactive) [ 2017 Dec 19 ] |
Corrected patch attached |
Comment by Viktors Tjarve [ 2017 Dec 19 ] |
Would it be possible to get log files from our customer who is having this issue? Specially interested if there has been any "Something impossible has just happened." entries in logs. |
Comment by Viktors Tjarve [ 2018 Apr 27 ] |
Added a fixed version of the patch that was added to this ticket previously. |
Comment by Sergejs Paskevics [ 2018 Jun 11 ] |
Successfully tested |