-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
5.0.42, 6.0.29, 6.4.14, 7.0.0beta3
-
None
Steps to reproduce:
- install zabbix agent2 on a Kubernetes node
- bind it to the linux or linux_active templates
- watch the zabbix_agent2.log file
Result:
There are a bazillion of log file entries about virtual network interfaces, eg
2024/05/05 22:56:16.002886 check 'vfs.file.contents["/sys/class/net/cali263e45db85f/operstate"]' is not supported: Cannot obtain file /sys/class/net/cali263e45db85f/operstate information: stat /sys/class/net/cali263e45db85f/operstate: no such file or directory 2024/05/05 22:56:16.002942 check 'vfs.file.contents["/sys/class/net/cali9b49f472fc8/operstate"]' is not supported: Cannot obtain file /sys/class/net/cali9b49f472fc8/operstate information: stat /sys/class/net/cali9b49f472fc8/operstate: no such file or directory 2024/05/05 22:56:16.002989 check 'vfs.file.contents["/sys/class/net/calia6097d2c80f/speed"]' is not supported: Cannot obtain file /sys/class/net/calia6097d2c80f/speed information: stat /sys/class/net/calia6097d2c80f/speed: no such file or directory 2024/05/05 22:56:16.003008 check 'vfs.file.contents["/sys/class/net/calid44fc087a99/operstate"]' is not supported: Cannot obtain file /sys/class/net/calid44fc087a99/operstate information: stat /sys/class/net/calid44fc087a99/operstate: no such file or directory 2024/05/05 22:56:16.003023 check 'net.if.in["calibb3787a49e3"]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003105 check 'net.if.out["cali09c552872af",errors]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003164 check 'net.if.out["cali562d8cfea99",errors]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003236 check 'net.if.in["cali24dee70f6df"]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003313 check 'net.if.in["cali9b49f472fc8",dropped]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003372 check 'net.if.in["cali13a95a740a6"]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003404 check 'net.if.out["cali24e9b8dc3bc"]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003430 check 'net.if.out["cali71e218151cc"]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003461 check 'net.if.out["cali17b21183ef7",errors]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003511 check 'net.if.out["cali13ef1ddff12",errors]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:16.003550 check 'net.if.in["cali8bd06e568d8",dropped]' is not supported: Cannot find information for this network interface in /proc/net/dev. 2024/05/05 22:56:17.001851 check 'vfs.file.contents["/sys/class/net/calied69bb58c1d/operstate"]' is not supported: Cannot obtain file /sys/class/net/calied69bb58c1d/operstate information: stat /sys/class/net/calied69bb58c1d/operstate: no such file or directory 2024/05/05 22:56:17.001984 check 'vfs.file.contents["/sys/class/net/cali6cd78d957a7/operstate"]' is not supported: Cannot obtain file /sys/class/net/cali6cd78d957a7/operstate information: stat /sys/class/net/cali6cd78d957a7/operstate: no such file or directory 2024/05/05 22:56:17.002250 check 'vfs.file.contents["/sys/class/net/cali75b1aacedfc/operstate"]' is not supported: Cannot obtain file /sys/class/net/cali75b1aacedfc/operstate information: stat /sys/class/net/cali75b1aacedfc/operstate: no such file or directory 2024/05/05 22:56:17.002301 check 'vfs.file.contents["/sys/class/net/cali6f0f4527cc9/operstate"]' is not supported: Cannot obtain file /sys/class/net/cali6f0f4527cc9/operstate information: stat /sys/class/net/cali6f0f4527cc9/operstate: no such file or directory
Expected:
Zabbix network device discovery should ignore virtual network interfaces of the Kubernetes world (eg Calico) on the nodes, similar to Docker installations. I know this can be configured in the macros, but using the network interface name this is too error-prone. Virtual network interfaces used just within a container, but not on the node have to be ignored altogether.
Zabbix server and agent is version 6.4. The linux and linux_active templates have been updated from git.