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

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
RonkA
Posts: 95
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2023.2
Location: Harlingen
Contact:

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

Post 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.
SolarEdge ModbusTCP - Open Weather Map - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

There is now a custom startup script function in the Domoticz docker environment. https://www.domoticz.com/wiki/Docker#cu ... _container
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest