[ZBX-24391] net.tcp.socket.count on Linux with IPv6 disabled in kernel returns error Created: 2024 Apr 24  Updated: 2024 Jul 01  Resolved: 2024 Jul 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 6.4.14, 7.0.0beta3
Fix Version/s: 6.0.32rc1, 6.4.17rc1, 7.0.1rc1, 7.2.0alpha1

Type: Problem report Priority: Trivial
Reporter: Martin Mørch Assignee: Sergejs Boidenko
Resolution: Fixed Votes: 0
Labels: agent, ipv6, linux, net.tcp.socket.count, tcp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: S24-W16/17, S24-W18/19, S24-W24/25
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Set kernel command-line parameter ""ipv6.disable=1", update GRUB config and reboot
    Example:
    1. Edit file "/etc/default/grub"
    2. Append " ipv6.disable=1" to the "GRUB_CMDLINE_LINUX" parameter.
    3. Update GRUB boot config:
      # /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
    4. reboot
  1. Verify that the file "/proc/net/tcp6" no longer exists:
    $ ls /proc/net/tcp6
    ls: cannot access '/proc/net/tcp6': No such file or directory
  2. From Linux CLI, test item key:
    $ zabbix_agentd -t 'net.tcp.socket.count[,,,,established]'

Tested on:

Rocky Linux 8 (4.18.0-513.11.1.el8_9.x86_64)
Ubunt 22.04.4 (5.15.0-101-generic)
Fedora Workstation 39 (6.8.6-200.fc39.x86_64){}

 

Result:

Response returned is:
net.tcp.socket.count[,,,,established]         [m|ZBX_NOTSUPPORTED] [Cannot open /proc/net/tcp6: [2] No such file or directory]

Expected:

Response should return the number of ESTABLISHED TCP connections. Zabbix Agent should be able to return a result with or without IPv6 enabled.



 Comments   
Comment by Martin Mørch [ 2024 Apr 24 ]

I think "Priority" should be something else than "Trivial", since this is not just a cosmetic issue, but means we can't use this item key on a variety of our hosts.

Comment by Sergejs Boidenko [ 2024 Jun 20 ]

Fixed in: 

Generated at Wed Jun 25 07:50:30 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.