[ZBX-20163] vfs.file.contents["/sys/class/net/vnet8/operstate"]" became not supported: Value "Problem parsing interface operstate in JS" of type "string" is not suitable for value type "Numeric (unsigned)" Created: 2021 Nov 02  Updated: 2022 Feb 22  Resolved: 2022 Feb 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 5.0.17
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Orion Poplawski Assignee: Aigars Kadikis
Resolution: Duplicate Votes: 0
Labels: patch, template, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7/8


Attachments: File linux-template-typo.patch    
Issue Links:
Duplicate
duplicates ZBX-20479 Template module Linux interface javas... Closed

 Description   

Steps to reproduce:

  1. Use linux agent active template
  2. Target vmhost machine with vnet* interfaces

Result:
In zabbix_server.log:

item "HOSTNAME:vfs.file.contents["/sys/class/net/vnet8/operstate"]" became not supported: Value "Problem parsing interface operstate in JS" of type "string" is not suitable for value type "Numeric (unsigned)"

Expected:
No error message

 

On target machine:

cat /sys/class/net/*/operstate
up
up
unknown
up
up
up
up
up
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown

 


Generated at Thu Apr 24 08:04:26 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.