I decided to do it a little differently. With Raspberry (Orange Pi).
If I use it as a probe, everything is ok, no problems. But if I add it to the link label, Dude sends 324 requests/port per each update!!!.
?!?!?!
I have 1 switch x8 ports and 5 switches x24 ports.
Link label code:
[snmp_wireless_link_info()]Rx: [Interface.InBitRate][snmp_wireless_link_rx_rate()]
Tx: [Interface.OutBitRate][snmp_wireless_link_tx_rate()]
[if(string_find(device_property("FirstAddress"),"192.168.3.235")=0,sfp_ddm_link_rx_rate(),"")]
sfp_ddm_link_rx_rate() code:
if(
string_find(link_index(),"49153")=0,
if(
string_size(oid(concatenate("1.3.6.1.4.1.11863.6.96.1.7.1.1.6.","[Interface.Index]"), 300, 600))>4,
oid("1.3.6.1.4.1.8072.1.3.2.4.1.2.4.116.119.109.49.1",5,300,"192.168.3.233"),
""),
"")
Update interval is set for 5 sec.
And if I add code for all ports and switches, Dude sends 500,000 requests per minute......