Temperature Sensor

  • No plugin, but a easy to use script is here:
    supported until now (v0.1):

    • one or two cores
    • fanspeed
    • easy configuration with .conf-file


    This script makes it easy to show temperature-graphs for your CPU in OMV. Before doing this:
    - remove /usr/share/openmediavault/scripts/collectd.d/sensors (make a backup in another location)
    - remove the sensors-section eventually added in /usr/sbin/omv-mkgraph
    - get your sensors running


    How to install:
    1. Download the latest version from git

    Code
    wget https://github.com/walterheisenberg/omvsensors/archive/master.zip


    2. Unpack it

    Code
    unzip master.zip


    3. install it

    Code
    cd omvsensors-master
    ./install-remove.sh


    The script will lead you through the installation/removing process


    4. Edit /etc/omv-sensor.conf
    with vi, vim, nano to fit your needs and insert paths to your rrd-files for CPU-Temp (optional: Fanspeed)


    Number 5. - 8. are obsolete now. You can do all this automatically in the new install-script ;)
    5. start sensors script the first time to create the rrd-scripts for OMV

    Code
    /usr/share/openmediavault/scripts/collectd.d/sensors


    6. Restart collectd
    to collect the values for your coretemp/fanspeed.

    Code
    /etc/init.d/collectd restart


    7. Create graphs

    Code
    omv-mkgraph


    8. All should work now
    Login to OMV-WebGUI and enjoy you graphs ;)


    You can change your settings in /etc/omv-sensor.conf as often as you like, but be sure you run /usr/share/openmediavault/scripts/collectd.d/sensors after that to refresh your rrd-scripts.
    Please test the script and report any bugs or features ;)
    But: make always copies of your files ;)
    omvsensors on github: https://github.com/walterheisenberg/omvsensors.git
    Guide-Version: 0.2
    - changed source to git. So you get always the latest version of the script

  • Yes, should work, if your Mainboard is supported. You have to install lm-sensors

    Code
    apt-get install lm-sensors


    detect your sensors in lm-sensors with

    Code
    sensors-detect


    answer "yes" at the question, if the sensors should be added automatically
    check your sensors with

    Code
    sensors


    and get a output like this:


    Now you can Follow number 1. until 3. and 5. and 6. from the guide above to install and setup the first time.
    Restart your OMV-Machine.
    After restarting, you can login via SSH and look in "/var/lib/collectd/rrd/localhost/" and find a dir matching your sensors.
    I had to use the bold and blue ones from above and added:

    Code
    SENSOR1="sensors-it8720-isa-0290/temperature-temp2.rrd"
    SENSOR2="sensors-it8720-isa-0290/temperature-temp3.rrd"
    FANSPEED="sensors-it8720-isa-0290/fanspeed-fan1.rrd"


    to my /etc/omv-sensors.conf
    Make sure you add the relative path to /etc/omv-sensor.conf (an Example is inside) and change your pluginconf-variable to fit the count of your sensors. Follow number 5. - 8. from the above guide.
    A alternative guide finding the right values for your sensors is the first and second post on this thread.

    • Offizieller Beitrag

    A lot of times, the older kernel doesn't support the sensors. The 3.2 Backports kernel does though.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • @ Solo0815 - Thanks, but I'll wait until a solid solution comes through. It's not entirely critical I have the temp sensors in OMV since I now have 3 120mm fans cooling the system in a larger, more vented case.


    @ ryecoaaron - The 3.2 backport kernel plays hell with my NIC. Tried it about a month back and had to revert since it made it horribly unreliable.

  • ^^^ follow this and this installation-howto. Fanspeed is already built-in. You have to setup your sensors and fanspeed in /etc/omvsensors.conf

  • maybe i can add it to the script in the next vacation (end of may) -> in den Pfingstferien ;)
    How many HDDs do you need?
    If you add a temp-graph for your HDDs, they don't spindown ...

  • Allright, but if the hard drives don't spin down, it doesn't make sense to implement it.

    OMV - 3.2 backport kernel - Intel Atom D525 - Zotac NM10-DTX - 4gb Ram - 3 TB Wd Red

  • I followed the instructions in post 1 but i can't get this to work.
    after creating all files and running

    Code
    /usr/share/openmediavault/scripts/collectd


    my collectd.conf looks like this


    And if i try to run this

    Code
    /etc/init.d/collectd restart


    i get this error

    Code
    Restarting statistics collection and monitoring daemon: collectdParse error in file `/etc/collectd/collectd.conf', line 37 near `<newline>': syntax error, unexpected EOL
    yyparse returned error #1
    configfile: Cannot read file `/etc/collectd/collectd.conf'.
    Unable to read config file /etc/collectd/collectd.conf.
    Error: Reading the config file failed!
    Read the syslog for details.
    Not restarting collectd.


    Anyone any idea what's wrong with the collectd.conf?

  • Delete all the stuff between and including the two "EOF" and it should work. Then it should look like this:

    Code
    LoadPlugin sensors
    
    
    Include "/etc/collectd/thresholds.conf"
  • But all that stuff is copied into the collectd.conf by this script

    Code
    /usr/share/openmediavault/scripts/collectd


    So if i run this command it destroys my collectd.conf and if i don't it doesn't but in both cases no graphs are generated.
    /var/lib/openmediavault/rrd/ does not contain any sensors- images.


    If i click refresh in the CPU temperature tab what scripts are called? Maybe i can add the graph generation code somewhere else..

Jetzt mitmachen!

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