[ZBXNEXT-5367] Extend net.if metrics on Linux using sysfs net Created: 2019 Aug 13  Updated: 2025 Jul 23

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Medium
Reporter: Vitaly Zhuravlev Assignee: Michael Veksler
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to ZBXNEXT-2286 net.if.discovery filtration Open
related to ZBXNEXT-7502 Add new network discovery item net.if... Closed
related to ZBX-21697 Linux reports wrong speed for vnet de... Confirmed
related to ZBX-24442 zabbix agent overwhelms its log file ... Confirmed
related to ZBX-20869 Item: vfs.file.contents["/sys/class/n... Confirmed
related to ZBX-24057 Reporting speed for wlanX fails Confirmed
related to ZBX-25960 Interface speeds for down interface n... Confirmed

 Description   

Please extend net.if metrics and net.if.discovery on Linux using sysfs net

https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt

At least the following macros should be added into net.if.discovery in addition to {#IFNAME}:
{#IFOPERSTATUS}
{#IFALIAS}
{#IFTYPE}
 
At least metrics such as:
"speed", "duplex", "type", "ifalias", "operstate", "carrier" as well as probably many others, must be added and should be accessible under net.if.* metrics branch. 
Lists should be finalized in the spec.



 Comments   
Comment by XinWang [ 2022 Jun 09 ]

agree, like prometheus node exporter

node_network_info{address="",broadcast="",device="wg0",duplex="",ifalias="",operstate="unknown"} 1
node_network_info{address="",broadcast="",device="wg1",duplex="",ifalias="",operstate="unknown"} 1
node_network_info{address="00:00:00:00:00:00",broadcast="00:00:00:00:00:00",device="lo",duplex="",ifalias="",operstate="unknown"} 1
node_network_info{address="3c:ec:ef:45:14:84",broadcast="ff:ff:ff:ff:ff:ff",device="eno5",duplex="unknown",ifalias="",operstate="down"} 1
node_network_info{address="3c:ec:ef:45:14:85",broadcast="ff:ff:ff:ff:ff:ff",device="eno6",duplex="unknown",ifalias="",operstate="down"} 1
node_network_info{address="3c:ec:ef:45:14:86",broadcast="ff:ff:ff:ff:ff:ff",device="eno7",duplex="unknown",ifalias="",operstate="down"} 1
node_network_info{address="3c:ec:ef:45:14:87",broadcast="ff:ff:ff:ff:ff:ff",device="eno8",duplex="unknown",ifalias="",operstate="down"} 1
node_network_info{address="3c:ec:ef:45:1c:38",broadcast="ff:ff:ff:ff:ff:ff",device="eno1",duplex="full",ifalias="",operstate="up"} 1
node_network_info{address="3c:ec:ef:45:1c:39",broadcast="ff:ff:ff:ff:ff:ff",device="eno2",duplex="full",ifalias="",operstate="up"} 1
node_network_info{address="3c:ec:ef:45:1c:3a",broadcast="ff:ff:ff:ff:ff:ff",device="eno3",duplex="unknown",ifalias="",operstate="down"} 1
node_network_info{address="3c:ec:ef:45:1c:3b",broadcast="ff:ff:ff:ff:ff:ff",device="eno4",duplex="unknown",ifalias="",operstate="down"} 1

Generated at Thu Jun 11 05:53:22 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.