[ZBX-20869] Item: vfs.file.contents["/sys/class/net/IF/speed"] unsupported on some systems Created: 2022 Apr 08  Updated: 2025 Feb 25

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Nathan Liefting Assignee: Zabbix Integration Team
Resolution: Unresolved Votes: 8
Labels: preprocessing, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-04-08-10-11-56-423.png    

 Description   

Hi Zabbix support,

 

Seems like the default Linux interface discovery template has a small issue. Some systems might give back their interface speed item as a negative value. Seems like this means it cannot be detected and it throws an error:

I think it's a discussion wether or not the unsupported item is fine like this, but it seems cleaner to use a pre-processing step "Check for not supported values"

Related ticket: ZBXNEXT-6784

Regards,
Nathan

 



 Comments   
Comment by Ignacio Facundo Aguirre [ 2022 Nov 09 ]

Hi, I'm having the same issue, the content of the file /sys/class/net/eth0/speed is -1 in all the VMs. Some short and good info about it.

Comment by Orion Poplawski [ 2025 Feb 21 ]

Similar issue, with the status toggling:

{{389222:20250221:082312.593 item "HOST:vfs.file.contents["/sys/class/net/enp1s0/speed"]" became not supported: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "-1000000" }}
{{389222:20250221:082658.569 item "HOST:vfs.file.contents["/sys/class/net/enp1s0/speed"]" became supported }}
389222:20250221:092657.787 item "HOST:vfs.file.contents["/sys/class/net/enp1s0/speed"]" became not supported: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "-1000000"

Comment by Tristis Oris [ 2025 Feb 25 ]

got this on every ubuntu 18-24.

check 'vfs.file.contents["/sys/class/net/enX0/speed"]' is not supported: Cannot read from file: read /sys/class/net/enX0/speed: invalid argument

Generated at Tue May 06 07:54:34 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.