Page 1 of 1

Got ping-command to work in Domoticz-Docker on a Synology nas.

Posted: Wednesday 07 December 2022 17:59
by RonkA
Hello,

I wanted to monitor if devices are connected to my LAN.

Via twoenter.nl i found a Ping script to do exactly that but after copy/paste the script was up and running.
Sadly the log states every minute that all pinged devices failed to answer...

After a LONG search i found out the ping-command is not working because it's not included in the docker file.
Maybe i missed the obvious but i couldnt got it to work.
What i found to be te sollution is to add the ping command via bash to the dockerfile.

Open Docker on your Synology, go to the Domoticz container, select Details, Terminal, and open 'bash'.
Copy/paste these 2 lines separatly

Code: Select all

apt-get update -y
apt-get install -y iputils-ping
Now the script succesfully pings the ip adresses! (at least in my setup..)

The only problem with this is that after a update or reinstall these steps have to be redone.

Cheers, Ron.

Re: Got ping-command to work in Domoticz-Docker on a Synology nas.

Posted: Wednesday 07 December 2022 19:26
by waltervl
There is now a custom startup script function in the Domoticz docker environment. https://www.domoticz.com/wiki/Docker#cu ... _container