we are trying to run a Zabbix Proxy in a container (zabbix/zabbix-proxy-sqlite3:6.0-alpine-latest) on a MikroTik CCR2004-1G-12S+2XS.
For simple icmpping checks we get the following error:
Code: Select all
/usr/sbin/fping: can't create socket (must run as root?)
I tried to set the ping group range in the container:
Code: Select all
sysctl -w "net.ipv4.ping_group_range=0 2000"
The device is up, if I ping it as root:
Code: Select all
bash-5.1# fping 192.168.0.28 -s
192.168.0.28 is alive
1 targets
1 alive
0 unreachable
0 unknown addresses
0 timeouts (waiting for response)
1 ICMP Echos sent
1 ICMP Echo Replies received
0 other ICMP received
0.546 ms (min round trip time)
0.546 ms (avg round trip time)
0.546 ms (max round trip time)
0.001 sec (elapsed real time)
But when executing fping as zabbix user (or any other user than root), then the device is reported as down:
Code: Select all
bash-5.1# sudo -u zabbix fping 192.168.0.28 -s
192.168.0.28 is unreachable
1 targets
0 alive
1 unreachable
0 unknown addresses
4 timeouts (waiting for response)
4 ICMP Echos sent
0 ICMP Echo Replies received
0 other ICMP received
0.000 ms (min round trip time)
0.000 ms (avg round trip time)
0.000 ms (max round trip time)
4.067 sec (elapsed real time)
Any other ideas?