[Sensors] OMV-Sensors in OMV 4.1.x

  • What's the problem? I know I haven't been much help so far, but perhaps I can try to solve it?

    There are a few issues still to resolve but the main one is the tabs, they do not update. Well, they do but you have to clear the browsers cache for them to show, this make me wonder if the plugin is feasible any more.
    We could use main tabs instead of sub-tabs but this would make the page a little cluttered.


    BTW your help is much appreciated, 2 heads are better than 1 :)

    [align=center]
    What I am watching/watched on my Popcorn Hour media player
    omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
    MySQL (Percona[size=8]) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS


  • There are a few issues still to resolve but the main one is the tabs, they do not update. Well, they do but you have to clear the browsers cache for them to show, this make me wonder if the plugin is feasible any more.We could use main tabs instead of sub-tabs but this would make the page a little cluttered.


    BTW your help is much appreciated, 2 heads are better than 1 :)

    Thanks! I'm glad to hear that I'm contributing in some way.


    I will have a look at the caching thing if time permits. I've dealt with this before when designing websites. Let's see if I can figure out how to deal with it in the context of the plugin.

  • What I do not understand about the caching problem is that whenever the graph updates, the URL for the graph image changes, meaning that even if the image is cached, you should not be loading the same image.


    For example, here are two different URLs for the same image.
    http://localhost/rrd.php?name=…ur.png&time=1526497062980
    http://localhost/rrd.php?name=…ur.png&time=1526497195462


    I am currently testing in a VM which does not work very well with this plugin since no sensors are detected. Does this version of the plugin at least work for monitoring CPU and motherboard temperatures? As long as it keeps an accurate documentation of this information, I can live with the defects while continuing to test on my production server.


    Update: I just tried installing a build of this plugin on my production server running OMV 4, and although the plugin installs fine, trying to change the settings results in this error:

  • Any updates on this? I really liked the plugin on OMV 3

    As I expected, I've been too busy to dedicate any further time to this.


    Full disclosure: I am not the main developer of this plugin. I am just a random guy who would also like to see this plugin ported to OMV 4 and put some effort into porting it but did not make much progress. @jhmiller's the lead developer, and last I heard from him, he was having issues with his OMV machine which slowed his progress.

  • I'd also like to have the hardware monitoring for my nas. Sensors are in place and even show up in syslog. But a plugin serving the charts would be very helpfull.
    Also, fan control would be really appreciated.


    Would give a donation for this.

  • Just an update folks, I was able to get temperatures working with OMV5 using the code and guidance provided earlier in this thread by sbocquet. Not as a plugin but by adding a couple of lines here and there, I expect I will have to repeat the process when the next update comes out but the pain in minimal. I needed to keep an eye on the temps on my new OMV5 hardware (BeeLink T4 fanless Atom 8500) that has replaced my trusty Odroid XU4 finally died after 3 yrs of hard service.



    rrd.png

  • The IP in your URL is in the private range.

    --
    Google is your friend and Bob's your uncle!


    RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.


    OMV 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • Just an update folks, I was able to get temperatures working with OMV5 using the code and guidance provided earlier in this thread by sbocquet. Not as a plugin but by adding a couple of lines here and there, I expect I will have to repeat the process when the next update comes out but the pain in minimal. I needed to keep an eye on the temps on my new OMV5 hardware (BeeLink T4 fanless Atom 8500) that has replaced my trusty Odroid XU4 finally died after 3 yrs of hard service.




    Hi,


    If you want to make your updates easy, just save your modified files in a .sav files, than copy them after each OMV update.
    There are not much changes even none in those files...


    Cheers,

    Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
    1x500MB SSD for System/Caches/Logs/Backup/Downloads | 7x2To HDD RAID 6 for Datas
    Powered by OMV v4.1.29 / Kernel 4.18

  • Just an update folks, I was able to get temperatures working with OMV5 using the code and guidance provided earlier in this thread by sbocquet. Not as a plugin but by adding a couple of lines here and there, I expect I will have to repeat the process when the next update comes out but the pain in minimal. I needed to keep an eye on the temps on my new OMV5 hardware (BeeLink T4 fanless Atom 8500) that has replaced my trusty Odroid XU4 finally died after 3 yrs of hard service.



    rrd.png

    Hello, I want to have the temperatures on my OMV5.
    Can you write me how to do it ?


    For the moment I use in SSH this command :


    paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'


    It's working great.


    Thank you.

  • TempSensorWorksheet.txtsensorHelp.zip


    Steps to add Temp sensors and have them appear on CPU Performance Graph


    execute as root in shell
    apt-get install lm-sensors
    run sensors-detect *answer YES to all questions including adding line/s to modules


    - added a /etc/collectd/collectd.conf.d/sensors.conf file filled with
    LoadPlugin sensors


    execute as root in shell
    service collectd restart



    Add these lines to /usr/share/openmediavault/mkrrdgraph/plugins.d/cpu.py after line 70


    args.append('DEF:tavg={data_dir}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE'.format(**config))
    args.append('DEF:tmin={data_dir}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN'.format(**config))
    args.append('DEF:tmax={data_dir}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX'.format(**config))
    args.append('LINE:tavg{color_cpu_system}:"Temperature"'.format(**config))
    args.append('GPRINT:tmin:MIN:"Min\: %5.1lf%sC"')
    args.append('GPRINT:tavg:AVERAGE:"Avg\: %5.1lf%sC"')


    args.append('GPRINT:tmax:MAX:"Max\: %5.1lf%sC\l"')


    edit this file
    /usr/sbin/omv-mkrrdgraph


    I changed mine to look like this
    'OMV_COLLECTD_RRDTOOL_GRAPH_IMGFORMAT', 'PNG'),
    '--width', openmediavault.getenv(
    #'OMV_COLLECTD_RRDTOOL_GRAPH_WIDTH', '400'),
    'OMV_COLLECTD_RRDTOOL_GRAPH_WIDTH', '800'),
    '--height', openmediavault.getenv(
    #'OMV_COLLECTD_RRDTOOL_GRAPH_HEIGHT', '120'),
    'OMV_COLLECTD_RRDTOOL_GRAPH_HEIGHT', '240'),



    I have attached my 3 edited files for your reference, not sure it would be a good idea to directly use my versions or not, could have unintended consequences.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!