ioBroker / ioBroker.ping

Pings configured IPs for ioBroker
MIT License
21 stars 17 forks source link

Ping adapter only ever outputs false #127

Open Mitch187 opened 8 months ago

Mitch187 commented 8 months ago

Unfortunately I can't get the ping adapter to work. I have installed the IoBroker on an LXC-Debian which can also ping (normally with the call ping 192.168.15.1)

But it always shows false.

root@iobroker:~# ping 192.168.15.1 PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data. 64 bytes from 192.168.15.1: icmp_seq=1 ttl=64 time=1.45 ms 64 bytes from 192.168.15.1: icmp_seq=2 ttl=64 time=0.380 ms

2023-11-21 20_35_51-objects - mm-iobroker

Apollon77 commented 8 months ago

Yey This seems to be something because of LXC ... we did not found the reason so far :-(

Mitch187 commented 8 months ago

This console-commandos brings the solution:

chmod 4755 /bin/ping reboot

Apollon77 commented 8 months ago

I would reopen it becuas question is if we can fix that somehow automatically

Mitch187 commented 8 months ago

Nice, thank you!

mcm1957 commented 6 months ago

@Apollon77 I suggest to label as enhancement

mcm1957 commented 2 months ago

4755 sets the SUID bit. ping requires root rights, either by SUID bit or by setting cap_net_raw