I set up a zabbix agent (5.0) on a raspberry pi. The host is configured with the template Template OS Linux by Zabbix Agent, and it contains the Network Interface Discovery.
The interface operational status item (key vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"] ) returns up for the interface wlan0 and down for the interface eth0. But eth0 is up!
Other items are also missing for the eth0 interface (bits received, sent etc.)
I can confirm from the raspberry pi that the interface is up.
Could you help me retrieve the interface data?
The interface operational status item (key vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"] ) returns up for the interface wlan0 and down for the interface eth0. But eth0 is up!
Other items are also missing for the eth0 interface (bits received, sent etc.)
I can confirm from the raspberry pi that the interface is up.
Code:
sudo -u zabbix cat /sys/class/net/eth0/operstate up