How do I get CPU temp, hdd Temps and Fan speeds, preferably in netdata container

    • OMV 4.x
    • CPU temp, hdd Temps and Fan speeds in netdata container

      Is there a good way to give a docker instance of Netdata access to what it needs to poll CPU temp and maybe some other data that is in lm-sensors, and if so how would I get that to show up in netdata?

      I have re purposed an old PC as my OMV server and I'm looking for a way to monitor(and record)HDD, CPU, other system Temps and in the future possibly adjust fan speeds. I've installed Netdata and really like the interface and I think it has the plugins for CPU temp but it doesn't seem to have access on my system to what it needs for temps and fan speeds.

      I'm starting to get a grasp for docker but I'm barely fluent enough in Linux to copy files and remove programs. I primarily have this OMV server as a fun way to learn linux, I'm looking for something to learn and for a good way to keep an eye on the my hardware. I'm also open to other solutions for monitoring (and recording) system temps and adjusting fan speeds.

      If any one is curious, I'm attempting to make my system a bit quiter when it is idle or at low CPU usage, but mostly I'm a sucker for data and graphs. I've upgraded the CPU cooler and I'm happy with my HDD spin down (for now).
    • you need to have

      Source Code

      1. /proc:/host/proc:ro \
      2. -v /sys:/host/sys:ro \
      3. -v /var/run/docker.sock:/var/run/docker.sock:ro \
      4. --cap-add SYS_PTRACE \

      enable (defined) on your netdata docker to show CPU temp & HD Tempadd
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ; ctop
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • I've been setting up my containers with the web gui on OMV and I've been able to stumble thru decently well but I think I'm hung up on something simple and I'm not sure how to formulate a search for it. Whats the "-v" doing in -v /sys:/host/sys:ro \ and it isn't in /proc:/host/proc:ro \

      I thought I had the concept of "mapping" the docker file structure to the files on my server but I now I think I may be missing something significant. That being said, normally i would "map" or "bind" a folder to one that I have already created or one that already exists. I blindly followed the instructions for installing Netdata and I didn't check to see what folders were already there and what wasn't. After reading this post i know /var/run/docker.sock doesn't already exist

      By the way, thanks a ton. This forum has been great and you guys are awesome.

      Edit: Forgot to mention, I did install lm-sensors from terminal of omv. If that makes a difference

      The post was edited 2 times, last by Not a Nerd ().

    • Thank you @raulfg3, I added /var/run/docker.sock and now have a several more things showing up in netdata including the name of my docker images rather than the string of characters they were before, but still no temps or voltages.
      And, @tinh_x7 thank you for the clarification and suggestion, I need to play around some more and learn to do more of this from terminal to better understand what I'm doing, I'll probably add grafana to my list to play with. I have always been drawn to grafana but I previously used it at work for the only part of my job I didn't like so now I feel obligated to dislike it when I'm off the clock.
    • New

      Hi, I'm trying to run the Netdata container but I'm getting a tons of errors:
      This is the configuration:
      i.imgur.com/fb4srnM.png
      Do I need to setup some permissions or something like that? I didn't give any PGID or PUID since they are not mentioned. Also I'm confused because I miss the classic config folder like I do for all other containers.
      Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 2X6TB Seagate Ironwolf - 2x4TB WD RED
      OMV 4.1.26 - Kernel 4.19 - omvextrasorg 4.1.2
    • New

      Netdata Docker:

      Source Code

      1. docker run -d --name=netdata \
      2. -p 19999:19999 \
      3. -v /proc:/host/proc:ro \
      4. -v /sys:/host/sys:ro \
      5. -v /var/run/docker.sock:/var/run/docker.sock:ro \
      6. --cap-add SYS_PTRACE \
      7. --security-opt apparmor=unconfined \
      8. netdata/netdata
      BS: OMV5 auf Buster
      SW: UFS, Snapraid, LEMP, rsync, Rsnapshot, SMB/CIFS
      HW: MSI B350M MORTAR, Athlon 200GE, MSI Core Frozr L -Lüfter, Micro-ATX Gehäuse, 8Gb Ram, 64Gb M.2 SSD als Systemplatte, 64 GB SSD für Cache, 3x 6TB WD Red
      Docker: emby/embyserver, linuxserver/nextcloud, wordpress, linuxserver/calibre-web, linuxserver/heimdall, vimagick/glances, v2tec/watchtower, bitwardenrs/server, linuxserver/mariadb, phpmyadmin/phpmyadmin, duplicati/duplicati
      Website: knilix.home.blog
    • New

      yeah, it seems the same as what I did, The only doubt I have is if I wrote the etra args wrong :/
      For instance, this is the kind of errors that I get:

      Source Code

      1. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[diskspace] : DISKSPACE: Mount point '/etc/localtime' (disk '_etc_localtime', filesystem 'ext4', root '/usr/share/zoneinfo/Europe/Rome') is not a directory. (errno 22, Invalid argument)
      2. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[diskspace] : DISKSPACE: Mount point '/etc/resolv.conf' (disk '_etc_resolv.conf', filesystem 'ext4', root '/var/lib/docker/containers/f7a872a7cfa34b7b73b53a9a58385d9d303b2113376b9875624f544a04302074/resolv.conf') is not a directory.
      3. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[diskspace] : DISKSPACE: Mount point '/etc/hostname' (disk '_etc_hostname', filesystem 'ext4', root '/var/lib/docker/containers/f7a872a7cfa34b7b73b53a9a58385d9d303b2113376b9875624f544a04302074/hostname') is not a directory. (errno 22, Invalid argument)
      4. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[diskspace] : DISKSPACE: Mount point '/etc/hosts' (disk '_etc_hosts', filesystem 'ext4', root '/var/lib/docker/containers/f7a872a7cfa34b7b73b53a9a58385d9d303b2113376b9875624f544a04302074/hosts') is not a directory.
      5. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[diskspace] : DISKSPACE: Mount point '/run/docker.sock' (disk '_run_docker.sock', filesystem 'tmpfs', root '/docker.sock') is not a directory. (errno 22, Invalid argument)
      6. 2020-02-19 23:52:20: netdata INFO : PLUGIN[proc] : Using now_boottime_usec() for uptime (dt is 8 ms)
      7. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/pressure/cpu' (errno 2, No such file or directory)
      8. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : Cannot read pressure information from /host/proc/pressure/cpu.
      9. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/pressure/memory' (errno 2, No such file or directory)
      10. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : Cannot read pressure information from /host/proc/pressure/memory.
      11. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/pressure/io' (errno 2, No such file or directory)
      12. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : Cannot read pressure information from /host/proc/pressure/io.
      13. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/net/sctp/snmp' (errno 2, No such file or directory)
      14. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/net/ip_vs_stats' (errno 2, No such file or directory)
      15. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/net/stat/synproxy' (errno 2, No such file or directory)
      16. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda', 8:0): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      17. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda', 8:0): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      18. 2020-02-19 23:52:20: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda', 8:0): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      19. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda1', 8:1): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      20. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda1', 8:1): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      21. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sda1', 8:1): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      22. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc', 8:32): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      23. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc', 8:32): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      24. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc', 8:32): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      25. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc1', 8:33): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      26. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc1', 8:33): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      27. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc1', 8:33): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      28. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc2', 8:34): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      29. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc2', 8:34): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      30. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc2', 8:34): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      31. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc3', 8:35): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      32. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc3', 8:35): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      33. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc3', 8:35): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      34. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc5', 8:37): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      35. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc5', 8:37): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      36. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdc5', 8:37): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      37. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde', 8:64): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      38. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde', 8:64): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      39. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde', 8:64): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      40. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde1', 8:65): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      41. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde1', 8:65): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      42. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sde1', 8:65): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      43. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb', 8:16): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      44. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb', 8:16): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      45. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb', 8:16): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      46. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb1', 8:17): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      47. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb1', 8:17): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      48. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdb1', 8:17): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      49. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd', 8:48): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      50. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd', 8:48): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      51. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd', 8:48): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      52. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd1', 8:49): Cannot open directory '/host/dev/mapper'. (errno 2, No such file or directory)
      53. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd1', 8:49): Cannot open directory '/host/dev/disk/by-label'. (errno 2, No such file or directory)
      54. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : DEVICE-MAPPER ('sdd1', 8:49): Cannot open directory '/host/dev/vx/dsk'. (errno 2, No such file or directory)
      55. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/net/rpc/nfsd' (errno 2, No such file or directory)
      56. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/net/rpc/nfs' (errno 2, No such file or directory)
      57. 2020-02-19 23:52:21: netdata ERROR : PLUGIN[proc] : PROCFILE: Cannot open file '/host/proc/spl/kstat/zfs/arcstats' (errno 2, No such file or directory)
      Display All



      Is it normal?
      Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 2X6TB Seagate Ironwolf - 2x4TB WD RED
      OMV 4.1.26 - Kernel 4.19 - omvextrasorg 4.1.2

      The post was edited 2 times, last by Blabla ().

    • New

      Blabla wrote:

      Hi, I'm trying to run the Netdata container but I'm getting a tons of errors:
      This is the configuration:
      i.imgur.com/fb4srnM.png
      Do I need to setup some permissions or something like that? I didn't give any PGID or PUID since they are not mentioned. Also I'm confused because I miss the classic config folder like I do for all other containers.
      /proc & /sys are incorrect

      in container path must be /proc in host path must be /proc and same for /sys

      and change from R/W to read only

      in Extra argument delete "-d"

      and try again
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ; ctop
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • New

      change network mode to bridge (revise shared port) and delete -- security-op.... ( maintain --cap-add SYS_PTRACE)

      and please post info about your hardware , eg: is AMD64 compatible or is raspi?
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ; ctop
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • Users Online 1

      1 Member