We have: a bunch of Linux servers with zabbix-agents and different number and speed of interfaces (eth, bond, aggi, agge, br, etc.)
Task: to receive a relative network load of the interface 100 * (in + out) / speed
Where to dig ..
1) Got the interface speed through vfs.file.contents [/ sys / class / net / {# IFNAME} / speed (excluding bond)
2) Got the total speed in + out via net.if.out [{# IFNAME}] + net.if.in [{# IFNAME}]
The question is: since the #IFNAME variables are obtained from "Item prototypes" and their really different number and quality is on many hosts, how to screw the "calculated item" by substituting the simple formula 100 * (in + out) speed ???
Py.Sy. - Do not advise to get it via snmp.
Task: to receive a relative network load of the interface 100 * (in + out) / speed
Where to dig ..
1) Got the interface speed through vfs.file.contents [/ sys / class / net / {# IFNAME} / speed (excluding bond)
2) Got the total speed in + out via net.if.out [{# IFNAME}] + net.if.in [{# IFNAME}]
The question is: since the #IFNAME variables are obtained from "Item prototypes" and their really different number and quality is on many hosts, how to screw the "calculated item" by substituting the simple formula 100 * (in + out) speed ???
Py.Sy. - Do not advise to get it via snmp.