…added now the script like described. My Interface i have to compare is eth0 so i changed comparision to it:
if [[ $6 == "eth0" ]];then
In Dockerfile added line to copy the script into container:
COPY ./myarping /usr/bin/myarping
Changed the reference in Config File openhab_conf/services/network.cfg to
binding.network:arpPingToolPath=/usr/bin/myarping
The result is, that CPU is not going up visible in my node-exporter graph to before when disabled all pings. Thats really nice. On my site running successfully about 42 container on a raspi4 (with zram and ssd)