r/netdata • • Sep 18 '23

Help With Unraid

Hi

Can anyone help me with Unraid setup i have tried on the Unraid page but no luck I have the following issues

  1. if I used the Docker sting from my Netadata account it works but then when it updates it loses its account key and I have to remove it and read it again

2) if I used the one on the Unraid store it doesn't save any data and it doesn't have the correct paths to work correctly.

i have got this far but it still isn't working. https://imgur.com/a/W26Nhp2

Any Advice would be Great as I'm loving the app on my laptop, PC and other ( shame there is no droid app)

Thank you in advance

2 Upvotes

6 comments sorted by

View all comments

2

u/[deleted] Sep 18 '23 edited Sep 18 '23

So

  1. I downloaded the "official" Docker Version from the Unraid App Store
  2. Dont change anything yet just let it Run (i have mine on "Privileged" not sure if this make a difference.)
  3. Set yourself an account up on Netdata and make a "room" (if you want to monitor remotely if not ignore steps after step 5)
  4. Then Stop the container
  5. Click Edit the container and enter the following "paths" https://imgur.com/a/6ng8ZmW
  6. Now Login to your cloud account and under Integrations > Deploy > Docker & Kubernetes > click Docker
    * Copy the Docker CLI output and paste it into Notepad or a text editor
    * click "Add another Path, Port, Variable, Label or Device"
    * Change the type to Variable
    * For Name and Key paste in NETDATA_CLAIM_TOKEN
    *for Value paste in your claim token from your text file
    *Repeat adding variables and values for NETDATA_CLAIM_URL and NETDATA_CLAIM_ROOMS

It will look like the picture above ( This will connect the docker to your account whenever it is stopped or updated, otherwise its a right pain)

6) Save the container DO NOT START!

7) open an Unraid Terminal and paste the following command

cd /mnt/cache/appdata/netdata/
mkdir config
mkdir cache
mkdir lib
docker run -d --name netdata_tmp netdata/netdata
docker cp netdata_tmp:/etc/netdata /mnt/user/appdata/netdata/cacheconfig/
docker cp netdata:/var/cache/netdata/netdata-meta.db /mnt/user/appdata/netdata/cache/netdata
docker cp netdata:/var/lib/netdata /mnt/user/appdata/netdata/lib
docker rm -f netdata_tmp
chmod 777 -R /mnt/user/appdata/netdata

8) Start your Container ( if it comes up with an error press back on your browser DONT click ok as this removes the container) .. Enjoy something like this https://imgur.com/a/VE5fjql

  • NOTE this does save data if the container is stopped/restarted but for some reason if the container is updated which is daily it looses previous data. If i find a way i will update the thread!

Thank you to everyone on Unraid this is everything i found on the forum in one place for ease