netprobe_lite icon indicating copy to clipboard operation
netprobe_lite copied to clipboard

Installation on QNAP

Open stewface opened this issue 9 months ago • 9 comments

I'm trying to get this installed on my qnap server, does it happen to appear in the docker hub?

Usually I can installed docker apps by going through ssh with a command like:

docker run -d
kschovan/netprobelite

Any other tips on getting it installed, looks like the exact thing I have been looking for to keep an eye on my internet (that often seems to perform subpar)

stewface avatar Apr 28 '24 10:04 stewface

Hello,

It is quite likely that your NAS has an ARM CPU architecture. See discussion on #22.

NicolasCARPi avatar Apr 29 '24 22:04 NicolasCARPi

Thanks for coming back! Got a nice x86 one :) so that should be fine.

stewface avatar Apr 29 '24 22:04 stewface

Oh I misread your issue, I thought you had problems running on NAS, but you were just asking for information. Look at the README to get started, it uses docker compose, much better than individual run commands!

NicolasCARPi avatar Apr 29 '24 23:04 NicolasCARPi

Hi,

@stewface I am running it on a QNAP x86 via container station. Creating an application in container station is pretty much docker compose, so no issues there.

suzunov avatar Apr 30 '24 07:04 suzunov

Great to hear! Any tips on how to learn how to get them running in it? I would love to figure it out.

stewface avatar Apr 30 '24 09:04 stewface

The easiest way is to open a terminal, clone the repo in a folder of your choice. CD to the repo folder and then docker compose up -d. I would like to be able to see various container data and statistics hence I an using container station and here is a quick how-to.

  1. Clone the repo in the Container station folder (not 100% sure, but in most of the cases it should be "/share/CACHEDEV1_DATA/Container"). If you do prefer working with the GUI, please download the repo in a zip format open the File Station app go to the "Container folder" and put the unzipped version of the code so you have "Container/netprobe_lite/" structure in your file system and then all the files and folders from the repo inside
  2. Open Container station >> Applications >> Create >> put whatever name you like and use the slightly modified docker-compose file Few notes:
  • please make sure that the paths below correspond to your paths
  • user: "0" is added due to lack of permission to the file system. You need to double check you are running with the same user ID. In case you are using the default "admin" user, this is the correct ID. If you are using the system with a different user in terminal type "id your_username" replacing your_username with what is correct for you and you will get the ID
  • I have changed the grafana port from 3001 to 3000 as I have another container using that port
  • you should be able to access grafana by YOUR_NAS_IP:3000

version: '3.8' # Use the desired Docker Compose version

networks: mynetwork: driver: bridge ipam: config: - subnet: 172.21.0.0/16

services: redis: restart: unless-stopped container_name: netprobe-redis image: "redis:latest" volumes: - /share/CACHEDEV1_DATA/Container/netprobe_lite/config/redis/redis.conf:/etc/redis/redis.conf - /share/CACHEDEV1_DATA/Container/netprobe_lite/redis/data:/data networks: - mynetwork # Attach to the custom network user: "0"

netprobe: restart: unless-stopped container_name: netprobe-probe image: "plaintextpackets/netprobe:latest" volumes: - /share/CACHEDEV1_DATA/Container/netprobe_lite/:/netprobe_lite environment: MODULE: "NETPROBE" networks: - mynetwork # Attach to the custom network user: "0"

presentation: restart: unless-stopped container_name: netprobe-presentation image: "plaintextpackets/netprobe:latest" volumes: - /share/CACHEDEV1_DATA/Container/netprobe_lite/:/netprobe_lite environment: MODULE: "PRESENTATION" networks: - mynetwork # Attach to the custom network user: "0"

prometheus: restart: unless-stopped container_name: netprobe-prometheus image: "prom/prometheus" volumes: - /share/CACHEDEV1_DATA/Container/netprobe_lite/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - /share/CACHEDEV1_DATA/Container/netprobe_lite/prometheus:/prometheus networks: - mynetwork # Attach to the custom network user: "0"

grafana: restart: unless-stopped image: grafana/grafana-enterprise container_name: netprobe-grafana volumes: - /share/CACHEDEV1_DATA/Container/netprobe_lite/config/grafana/datasources/automatic.yml:/etc/grafana/provisioning/datasources/automatic.yml - /share/CACHEDEV1_DATA/Container/netprobe_lite/config/grafana/dashboards/main.yml:/etc/grafana/provisioning/dashboards/main.yml - /share/CACHEDEV1_DATA/Container/netprobe_lite/config/grafana/dashboards/netprobe.json:/var/lib/grafana/dashboards/netprobe.json - /share/CACHEDEV1_DATA/Container/netprobe_lite/grafana:/var/lib/grafana ports: - '3000:3000' networks: - mynetwork # Attach to the custom network user: "0"

Hope that helps!

suzunov avatar Apr 30 '24 12:04 suzunov

Thanks @suzunov

Fantastic documentation, I think I made sense of it all. I gave it the first attempt but haven't got it working yet, but I will give it a few more runs through to see what isn't working.

stewface avatar May 01 '24 12:05 stewface

Any luck

plaintextpackets avatar May 02 '24 16:05 plaintextpackets

@stewface what kind og errors do you get and at what step? Anything I can help with?

suzunov avatar May 03 '24 05:05 suzunov