Guide - Custom cpu temp script for openmediavault-cputemp plugin

    • Offizieller Beitrag

    With the latest version of the cputemp plugin, additional cpu temp support can be added without changing the plugin.


    Creation of a script that gets the temperature is required. The cputemp plugin by default does not support my Ryzen 3600. Here is how you can customize the plugin to work with the Ryzen. This will most likely not work work with other chips. You will need to ask for support on the forum to write a custom cpu-temp script for your system.


    Make sure to install and configure the lm-sensors package

    sudo apt-get install lm-sensors

    sudo sensors-detect


    Edit the new cpu-temp script

    sudo nano /usr/sbin/cpu-temp


    Type or paste this line for a newer Ryzen chip.

    sensors | grep -A3 k10temp | awk '$1 == "Tctl:" { print $2 }' | grep -o '[0-9.]\+' | sed 's/\.//'


    For an Intel chip (if default is not working):

    sensors coretemp-isa-0000 | awk '$1 == "Core" && $2 == "0:" { print $3 }' | grep -o '[0-9.]\+' | sed 's/\.//'


    ctrl-o to save, ctrl-x to exit

    chmod +x /usr/sbin/cpu-temp


    Execute cpu-temp to make sure it is working

    cpu-temp


    Then execute the following commands. The DIVISOR variable is needed because the script returns 275 for 27.5C. So, I need to divide by 10. The default is 1000.

    sudo omv-env set "OMV_CPU_TEMP_COMMAND" "/usr/sbin/cpu-temp"

    sudo omv-env set "OMV_CPU_TEMP_DIVISOR" "10"

    sudo omv-salt stage run prepare

    sudo omv-mkworkbench all

    sudo monit restart omv-engined


    Clear the browser cache

    ctrl-shift-R

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

  • ryecoaaron

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    To undo customizing,


    sudo omv-env unset "OMV_CPU_TEMP_COMMAND"

    sudo omv-env unset "OMV_CPU_TEMP_DIVISOR"

    sudo omv-salt stage run prepare

    sudo omv-mkworkbench all

    sudo monit restart omv-engined

    • Neu
    • Offizieller Beitrag

    In the latest 7.0.1 release of the plugin, there are four "cpu temp" widgets available. Widget #2, 3, and 4 are customized just like the original but append the widget number to the end of the environment variable.


    Example for cpu temp 2:


    sudo omv-env set "OMV_CPU_TEMP_COMMAND2" "/usr/sbin/cpu-temp2"

    sudo omv-env set "OMV_CPU_TEMP_DIVISOR2" "10"


    Use a different script for each widget.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!