synology changedetection docker - Synology - ChangeDetection sur votre NAS avec Docker en 5 minutes

Synology – ChangeDetection on your NAS with Docker in 5 minutes – Cachem

change detection.io is a website change tracking system. The tool is free, open source and can even be self-hosted on your NAS. It’s an interesting alternative to Visualping or Watchtower, if you know. Today I offer you this tutorial to install and configure it on your Synology NAS using Docker.

ChangeDetection and Synology

change detection.io is an easy-to-use website change monitoring and detection service. If it detects a change during its monitoring, the tool can notify you via the services of your choice: email, SMS, Discord, Slack, Gotify, Kodi, etc. It is based on the excellent Apprise system! change detection.io is completely free and self-hosted. It works in Python and you can find a lot of information on the official site.

ChangeDetection and Docker

If you use Docker on your NAS, you will find that it is very easy to install and configure. If you have a Synology Docker-enabled box, it’s very simple. It’s operational in 5 minutes!

Install change detection

The first step is to upload the imagegtlmoon/changedetection.io To do this, simply launch the Docker application on the NAS. Then click to register in the left menu. represent in type altered recognition into the search field at the top right (see image below). Then double click on the first link and make sure it is the image dgtlmon/changedetection.io.

ChangeDetection Docker - Synology - ChangeDetection on your NAS with Docker in 5 minutes

As usual, you get the small dialog box to download the latest version of the image (choice Latest).

image Latest Docker Synology - Synology - ChangeDetection on your NAS with Docker in 5 minutes

You wait a few seconds for the image to download. You can check the progress in the left menu picture. Once the download is complete, double click on it to start creating the container. You can leave the default values ​​(bridge as in the image below) and click the button Next

Synology Container Bridge - Synology - ChangeDetection on your NAS with Docker in 5 minutes

In which General Settings, enter a name for your container. You can also set the resources by setting the processor priority to Low (it’s not a critical or important resource) and you can lower the RAM usage (I specified 128MB).

Creation of ChangeDetection 01 1 - Synology - ChangeDetection on your NAS with Docker in 5 minutes

You click the button Next. For the port setting (there is only one here), I recommend choosing an unused port like 5075 as the local port and leaving 5000 for the container port (see image below).

Change Docker Port - Synology - ChangeDetection on your NAS with Docker in 5 minutes

We continue by pressing the button Next. We will now add a working folder for change detection.

ChangeDetection Folder - Synology - ChangeDetection on your NAS with Docker in 5 minutes

We click the button add folder. You go to the Docker folder of your NAS and click on the button Create a folder. Here is my file name change detection (no, it’s not very original). We push the button OK then Choose and finally Next.

datastore - Synology - ChangeDetection on your NAS with Docker in 5 minutes

In the path zone we specify /datastore (see picture above) and press the button Next.

Summary Docker ChangeDetection - Synology - ChangeDetection on your NAS with Docker in 5 minutes

Small summary screen and all you have to do is press the button Carried out. It’s over for the installation part. In the second part of the article we will start our site monitoring, configure the frequency of the check and finally generate an alert as soon as a change is detected by the tool.

Monitor a site with ChangeDetection

In your favorite browser, enter your NAS’s IP address followed by port 5075 (if you did the same as me). You should enter something like 192.168.1.100:5075. Once you have validated you should have this page.

Change detection End - Synology - Change detection on your NAS with Docker in 5 minutes

You will notice that the interface is in English only. To date, it is not possible to switch it to French. By default, there are already 3 monitored sites. The first 2 (on the capture) are used to test the tool and notifications. The latter monitors the changelog on the changetection.io page. It allows to be notified when an update is available.

Docker Synology 100x100 - Synology - ChangeDetection on your NAS with Docker in 5 minutes Upgrade your Docker container to Synology

Adding recognition to a website is easy. In the area “Add a new change detection monitor” They indicate in the left part the name of the site, for example https://www.cert.ssi.gouv.fr/ (once a security breach is detected) and in the right part the group in which the site must be classified (e.g.: Internet security). If the group does not exist, it will be created automatically. This then makes it possible to classify all sites of the same type (tabs) in one view. Once you press the button watchthis page is monitored.

ChangeDetection settings

Now let’s get to the menu THE SETTINGS top right. Make the default settings on the first tab. As you can see here, the tool runs a change analysis every 3 hours. A change is of course possible (weeks, days, hours, minutes, seconds). This setting applies to all websites that you enter. Note that it is possible to change the parameters for each monitored site from the main page (Edit button in front of each site). But here we are at the default settings for the entire system. Be careful not to do too many daily analyzes of the same website, the admin might decide to ban you.

General Change Detection - Synology - Change detection on your NAS with Docker in 5 minutes

There are other parameters here on this page that I’ll let you discover…

Notifications with ChangeDetection

tab Hints allows them to be configured. It’s good to recognize a change on a website… it’s even better to be notified when it does. As already said, change detection embeds Apprise’s notification system. It is absolutely necessary to go through this page to find the necessary information.

Change Detection Notifications - Synology - Change detection on your NAS with Docker in 5 minutes

Since I like using email, I used the expression for Infomaniak here:
mailtos://NomUtilisateur:MotdePasse@ik.me?smtp=mail.infomaniak.com&user=NomUtilisateur@ik.me
If, like me, you use special characters in your password, you must enter them in hexadecimal. It’s not bad, but we have no choice. Some examples :

ASCII characters HEX match
# %23
$ %24
& %26
e %e9
+ %2 B
%2d

If your password is: 4Tynqh+c3# it becomes 4Tynqh%2bc3%23

Don’t forget to save and then press the button Send test notification to test if you get a notification. If you do not receive well, you can view the errors from the button Debug log notification. This was helpful for me to figure out my password isn’t working 😉 Still on the tab Hintsyou can customize the message you receive when a change is detected (notification title, message text, format, etc.).

Well, this tutorial is coming to an end. The tool change detection is simple and effective. If you have any questions or want to share your experience, you can use the comments below.

Thanks Guillaume for the discovery

#Synology #ChangeDetection #NAS #Docker #minutes #Cachem

Leave a Comment

Your email address will not be published.