i would like to check my GPU and fans with NetData.
I am already using GPU in Plex (its activated in Apps/Settings/…) and I was able to read GPU-data in the “old” electric Eel-buildIn NetData.
But if i try to add nvidia-smi to NetData (via /configuations/ NVIDIA SMI collector configuration) i get Error Job initialization failed: error on lookup 'nvidia-smi': exec: "nvidia-smi": executable file not found in $PATH
i i enter NetData via shell and try nvidia-smi
i get # nvidia-smi /bin/sh: 1: nvidia-smi: not found
Still none to help me? I tried it at github but i don’t understand how solve the problem:
Github Truenas NetData App
To access the GPU-Info in the NetData App i converted the app to a custom app (three dots next to “Application Info” and “convert to custom app”).
Then you can edit the App YAML by pressing “edit”. I changed the yaml to:
services:
netdata:
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
- SYS_PTRACE
- SYS_ADMIN
cap_drop:
- ALL
deploy:
resources:
limits:
cpus: '2'
memory: 4096M
environment:
LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/usr/lib/nvidia:/usr/lib
NETDATA_LISTENER_PORT: '20489'
NVIDIA_DRIVER_CAPABILITIES: all
NVIDIA_VISIBLE_DEVICES: all
TZ: Etc/UTC
UMASK: '002'
UMASK_SET: '002'
group_add:
- 568
- 999
healthcheck:
interval: 10s
retries: 30
start_period: 10s
test: /usr/sbin/health.sh
timeout: 5s
image: netdata/netdata:v2.5.0
platform: linux/amd64
ports:
- mode: ingress
protocol: tcp
published: 20489
target: 20489
privileged: False
restart: unless-stopped
security_opt:
- apparmor=unconfined
- seccomp=unconfined
stdin_open: False
tty: False
volumes:
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /dev/nvidia-modeset
target: /dev/nvidia-modeset
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /dev/nvidia-uvm
target: /dev/nvidia-uvm
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /dev/nvidia0
target: /dev/nvidia0
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /dev/nvidiactl
target: /dev/nvidiactl
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /mnt/.ix-apps/app_mounts/netdata/config
target: /etc/netdata
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /etc/group
target: /host/etc/group
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /etc/os-release
target: /host/etc/os-release
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /etc/passwd
target: /host/etc/passwd
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /proc
target: /host/proc
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /sys
target: /host/sys
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /usr/bin/nvidia-smi
target: /usr/bin/nvidia-smi
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so
target: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
target: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.550.142
target: /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.550.142
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /mnt/.ix-apps/app_mounts/netdata/cache
target: /var/cache/netdata
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: False
source: /mnt/.ix-apps/app_mounts/netdata/lib
target: /var/lib/netdata
type: bind
- bind:
create_host_path: False
propagation: rprivate
read_only: True
source: /var/run/docker.sock
target: /var/run/docker.sock
type: bind
volumes: {}
x-notes: >+
# Netdata
## Bug Reports and Feature Requests
If you find a bug in this app or have an idea for a new feature, please file
an issue at
https://github.com/truenas/apps
x-portals:
- host: 0.0.0.0
name: Web UI
path: /v3
port: 20489
scheme: http