Temperature Sensor

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Temperature Sensor

      Just a copy from the old forum,sourceforge.net/apps/phpbb/ope…t/viewtopic.php?f=5&t=324, thanks to subzeroin:

      So, I have tried this a little, and this is what I've got (after too many ours of trying to change and compile coretemp.c for the old debian kernel to recognize my i3..).

      First you have to have lm-sensors installed as you covered.

      Log in as root via ssh and use your preferred text-editor (I'll be using vim).

      Source Code

      1. vim /var/www/openmediavault/js/omv/module/admin/Sensors.js




      Then I inserted this:

      Source Code

      1. /**
      2. * Sensors plugin for system information.
      3. */
      4. // require("js/omv/NavigationPanel.js")
      5. // require("js/omv/PluginMgr.js")
      6. // require("js/omv/data/DataProxy.js")
      7. // require("js/omv/data/Store.js")
      8. // require("js/omv/grid/TBarGridPanel.js")
      9. // require("js/omv/RrdGraphPanel.js")
      10. Ext.ns("OMV.Module.Diagnostics.SysInfo");
      11. /**
      12. * @class OMV.Module.Diagnostics.SysInfo.Temperatures
      13. * @derived Ext.TabPanel
      14. */
      15. OMV.Module.Diagnostics.SysInfo.Temperature = function(config) {
      16. var initialConfig = {
      17. title: "CPU temperature",
      18. rrdGraphName: "sensors"
      19. };
      20. Ext.apply(initialConfig, config);
      21. OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call(
      22. this, initialConfig);
      23. };
      24. Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, {
      25. });
      26. OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
      Display All




      Then you have to create another file to get your changes in to collectd.conf and omv-mkgraph:

      Source Code

      1. vim /usr/share/openmediavault/scripts/collectd.d/sensors




      In this file you probably going to need to edit some things, like what sensors you want to use. I'm using a Intel i3 2100T so my sensors was coretemp:

      Source Code

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. EOF
      10. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      11. # Plugin: sensors
      12. TITLE_LOAD="CPU temperature"
      13. COLOR_CPU_PHYSICAL="#00cc00" # green
      14. COLOR_CPU_CORE_0="#0000fd" # blue
      15. COLOR_CPU_CORE_1="#ff0000" # red
      16. rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      17. DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
      18. DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
      19. DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
      20. DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
      21. DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
      22. DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
      23. DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
      24. DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
      25. DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
      26. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      27. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      28. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      29. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      30. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      31. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \
      32. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      33. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      34. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      35. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      36. LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \
      37. GPRINT:cpuc1min:MIN:"%4.2lf Min" \
      38. GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \
      39. GPRINT:cpuc1max:MAX:"%4.2lf Max" \
      40. GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \
      41. COMMENT:"\${LASTUPDATE}" >/dev/null
      42. rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      43. DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
      44. DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
      45. DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
      46. DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
      47. DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
      48. DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
      49. DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
      50. DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
      51. DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
      52. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      53. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      54. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      55. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      56. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      57. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \
      58. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      59. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      60. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      61. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      62. LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \
      63. GPRINT:cpuc1min:MIN:"%4.2lf Min" \
      64. GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \
      65. GPRINT:cpuc1max:MAX:"%4.2lf Max" \
      66. GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \
      67. COMMENT:"\${LASTUPDATE}" >/dev/null
      68. rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      69. DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
      70. DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
      71. DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
      72. DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
      73. DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
      74. DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
      75. DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
      76. DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
      77. DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
      78. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      79. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      80. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      81. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      82. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      83. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \
      84. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      85. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      86. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      87. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      88. LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \
      89. GPRINT:cpuc1min:MIN:"%4.2lf Min" \
      90. GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \
      91. GPRINT:cpuc1max:MAX:"%4.2lf Max" \
      92. GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \
      93. COMMENT:"\${LASTUPDATE}" >/dev/null
      94. rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      95. DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
      96. DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
      97. DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
      98. DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
      99. DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
      100. DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
      101. DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
      102. DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
      103. DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
      104. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      105. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      106. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      107. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      108. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      109. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \
      110. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      111. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      112. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      113. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      114. LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \
      115. GPRINT:cpuc1min:MIN:"%4.2lf Min" \
      116. GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \
      117. GPRINT:cpuc1max:MAX:"%4.2lf Max" \
      118. GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \
      119. COMMENT:"\${LASTUPDATE}" >/dev/null
      120. rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      121. DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
      122. DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
      123. DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
      124. DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
      125. DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
      126. DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
      127. DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
      128. DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
      129. DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
      130. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      131. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      132. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      133. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      134. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      135. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \
      136. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      137. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      138. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      139. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      140. LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \
      141. GPRINT:cpuc1min:MIN:"%4.2lf Min" \
      142. GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \
      143. GPRINT:cpuc1max:MAX:"%4.2lf Max" \
      144. GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \
      145. COMMENT:"\${LASTUPDATE}" >/dev/null
      146. EOF
      Display All




      Save the file and then you have to make sure it is executable:

      Source Code

      1. chmod +x /usr/share/openmediavault/scripts/collectd.d/sensors




      You then run:

      Source Code

      1. /usr/share/openmediavault/scripts/collectd




      which is a script that make the collectd.conf and omv-mkgraph file.

      If it doesn't work, try running just

      Source Code

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



      and look for errors, if not then try running:

      Source Code

      1. omv-mkgraph




      Log in to OMV webgui (or reload if you're already logged in), there should at least be a tab named "CPU temperature" now under SystemInformation->System.

      If you don't know which sensor you have to use in the file we've created before, you can do as this, but first of all, run sensors-detect and load your needed modules.


      Edit the collectd.conf file:

      Source Code

      1. vim /etc/collectd/collectd.conf




      Add this row:

      Source Code

      1. LoadPlugin sensors




      Reload collectd by either restarting your computer or

      Source Code

      1. /etc/init.d/collectd restart




      Now we can try to figure out the sensors and what path collectd uses:

      cd /var/lib/collectd/rrd/localhost

      ls




      Here I got this list:

      cpu-0
      cpu-1
      cpu-2
      cpu-3
      df
      interface
      load
      memory
      sensors-coretemp-isa-0000




      We can ignore cpu-0 to cpu-4, df, interface, load and memory since that are standard entries that already is in use by OMV.

      So what is left is sensors-coretemp-isa-0000, now check what's inside that folder:

      Source Code

      1. ls sensors-coretemp-isa-0000




      This is what was there, only temps:

      temperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd




      And that is what get you what you should use, e.g:

      DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE




      Another usefull tool is rrdtool, if you get any errors in your scripts just try:


      Source Code

      1. rrdtool info yoursensorfile.rrd



      and that will get you a lot of info.

      Hope all this helps :)

      And the changes I made in order to get my sensors working (Asus AT5NM10T-I Atom D525 with sensors-atk0110-acpi-0)

      Shell-Script

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. EOF
      10. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      11. # Plugin: sensors
      12. TITLE_LOAD="Temperatures"
      13. COLOR_CPU_PHYSICAL="#ff0000" # red
      14. COLOR_CPU_CORE_0="#0000fd" # blue
      15. rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      16. DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
      17. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
      18. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
      19. DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
      20. DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
      21. DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
      22. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      23. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      24. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      25. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      26. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      27. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
      28. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      29. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      30. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      31. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      32. COMMENT:"\${LASTUPDATE}" >/dev/null
      33. rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      34. DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
      35. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
      36. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
      37. DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
      38. DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
      39. DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
      40. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      41. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      42. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      43. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      44. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      45. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
      46. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      47. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      48. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      49. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      50. COMMENT:"\${LASTUPDATE}" >/dev/null
      51. rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      52. DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
      53. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
      54. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
      55. DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
      56. DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
      57. DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
      58. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      59. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      60. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      61. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      62. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      63. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
      64. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      65. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      66. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      67. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      68. COMMENT:"\${LASTUPDATE}" >/dev/null
      69. rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      70. DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
      71. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
      72. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
      73. DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
      74. DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
      75. DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
      76. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      77. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      78. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      79. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      80. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      81. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
      82. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      83. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      84. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      85. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      86. COMMENT:"\${LASTUPDATE}" >/dev/null
      87. rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      88. DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
      89. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
      90. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
      91. DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
      92. DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
      93. DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
      94. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      95. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      96. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      97. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      98. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      99. LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
      100. GPRINT:cpuc0min:MIN:"%4.2lf Min" \
      101. GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \
      102. GPRINT:cpuc0max:MAX:"%4.2lf Max" \
      103. GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \
      104. COMMENT:"\${LASTUPDATE}" >/dev/null
      105. EOF
      Display All
    • Re: Temperature Sensor

      when i run sensors i get this output

      [codeatk0110-acpi-0
      Adapter: ACPI interface
      Vcore Voltage: +1.14 V (min = +0.85 V, max = +1.70 V)
      +3.3 Voltage: +3.44 V (min = +2.97 V, max = +3.63 V)
      +5 Voltage: +5.08 V (min = +4.50 V, max = +5.50 V)
      +12 Voltage: +12.50 V (min = +10.20 V, max = +13.80 V)
      CPU FAN Speed: 2419 RPM (min = 600 RPM)
      CHASSIS FAN Speed: 0 RPM (min = 600 RPM)
      CHASSIS FAN 2 Speed: 0 RPM (min = 600 RPM)
      CPU Temperature: +36.0°C (high = +60.0°C, crit = +95.0°C)
      MB Temperature: +42.0°C (high = +45.0°C, crit = +75.0°C)

      k10temp-pci-00c3
      Adapter: PCI adapter
      temp1: +0.0°C (high = +70.0°C, crit = +90.0°C)][/code]

      The chipset is it87 but i wonder if it`s k10temp-pci-00c3 or atk0110-acpi-0 i have to use in /usr/share/openmediavault/scripts/collectd.d/sensors?
    • Re: Temperature Sensor

      I believe the correct one is k10temp-pci-00c3. You can try

      Source Code

      1. cd /var/lib/collectd/rrd/localhost
      2. ls
      and then get inside the folder (probably k10temp-pci-00c3) where you will see, I believe, something like
      temperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd



      This is what you must use to edit the file. Hope this helps.
    • Re: Temperature Sensor

      checking content in folder with ls gave me

      Source Code

      1. cpu-0 cpu-2 cpu-4 df load sensors-atk0110-acpi-0
      2. cpu-1 cpu-3 cpu-5 interface memory sensors-k10temp-pci-00c3


      In /var/lib/collectd/rrd/localhost/sensors-atk0110-acpi-0 i see 9 files as i am trying also fanspeed, cpu freq
      In /var/lib/collectd/rrd/localhost/sensors-k10temp-pci-00c3 only one file wich is called temperature-temp1.rrd
    • Re: Temperature Sensor

      So, I guess, you need both. You need sensors-k10temp-pci-00c3 for temperature (probably you get only CPU temp) and sensors-atk0110-acpi-0 for fan speed etc.
      You should create something like this

      Source Code

      1. ...DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      2. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      3. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \...


      and something like

      Source Code

      1. ...DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:AVERAGE \
      2. DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:MIN \
      3. DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:MAX \...

      i guess for the fan speeds
    • Re: Temperature Sensor

      Hello,
      Here is the sensor file for an Acer Revo R310

      Shell-Script

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. EOF
      10. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      11. # Plugin: sensors
      12. TITLE_LOAD="Temperatures"
      13. COLOR_CPU_PHYSICAL="#ff0000" # red
      14. rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-lim$
      15. DEF:cpupavg=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:AVERAGE \
      16. DEF:cpupmin=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MIN \
      17. DEF:cpupmax=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MAX \
      18. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      19. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      20. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      21. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      22. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      23. COMMENT:"\${LASTUPDATE}" >/dev/null
      24. rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit $
      25. DEF:cpupavg=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:AVERAGE \
      26. DEF:cpupmin=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MIN \
      27. DEF:cpupmax=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MAX \
      28. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      29. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      30. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      31. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      32. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      33. COMMENT:"\${LASTUPDATE}" >/dev/null
      34. rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-lim$
      35. DEF:cpupavg=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:AVERAGE \
      36. DEF:cpupmin=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MIN \
      37. DEF:cpupmax=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MAX \
      38. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      39. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      40. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      41. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      42. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      43. COMMENT:"\${LASTUPDATE}" >/dev/null
      44. rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-$
      45. DEF:cpupavg=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:AVERAGE \
      46. DEF:cpupmin=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MIN \
      47. DEF:cpupmax=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MAX \
      48. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      49. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      50. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      51. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      52. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      53. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      54. COMMENT:"\${LASTUPDATE}" >/dev/null
      55. rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-lim$
      56. DEF:cpupavg=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:AVERAGE \
      57. DEF:cpupmin=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MIN \
      58. DEF:cpupmax=\${DATA}/sensors-acpitz-virtual-0/temperature-temp1.rrd:value:MAX \
      59. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
      60. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      61. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      62. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      63. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      64. COMMENT:"\${LASTUPDATE}" >/dev/null
      65. EOF
      Display All


      But is that the probes or temperature management by OMV are reliable?
      Because I have 73° in average and when I launch a download with Sabnzbd , OMV shutdown the PC for overheat , with this message :
      Message from syslogd@Revo at Jul 26 15:59:44 ...
      kernel:[ 4297.704453] Critical temperature reached (86 C), shutting down.

      I can find somewhere, the old measures of temperature?

      Thank you :)

      The post was edited 1 time, last by Iro ().

    • Re: Temperature Sensor

      First of all, I am not a Linux/Unix expert, I am just noob at these :)
      I believe that the OMV does not shut down your system. I do not believe there is such an option at the GUI. I believe the shutdown temperature is configured at the BIOS, so search there. What we get from the above setup is only some graphs from the sensors that already exists at the systems and nothing more. I believe they are reliable since the system does not have other sensors to measure the temperatures. Maybe, when you download with Sabnzbd you get a temp peak and this is what causes the shutdown. Also, 73C is a bit high for average, i believe.
    • Re: Temperature Sensor

      Thanks for a great walk through instruction, I have now included tabs for system temperature and fan speed into my OMV GUI.

      Since I am not so experienced in this field I have two questions:
      1. Has anyone managed to get also HDD temps into the temperature graphs? If so, can you please give some hints how to do it?
      2. Monitoring of the computer case fan RPM has a very strange behavior. At random times it shows spikes of 20.000-40.000 rpm instead of the ~900 rpm which it actually operates at. Any clues what the problem could be, is it necessarily a problem of the fan or could it be something else?

      Thankful for any and and all help.
    • Re: Temperature Sensor

      After some searching I found a method to include the hdd temperatures which is similar to what has already been described here. I don't know if it is the best or the easiest solution but I have tried it out myself and it has been running successfully for a few hours now. Thought it might be interesting to others as well... (I'm writing from memory so there might be some minor errors in here, but I hope nothing major...)

      Step by Step

      1. In addition to installing lm-sensors it requires hddtemp which is a debian package that can be installed easily:

      Source Code

      1. apt-get install hddtemp


      During installation you will be prompted if hddtemp should start automatically at reboot which probably is what you want. You will also be asked something about what clients (IP's) that should be allowed to connect to hddtemp. This should be 127.0.0.1 (localhost).

      2. To find out what your rrd files for hdd temperature are called you can do similarly as you might have done after installing lm-sensors:
      Edit /etc/collectd/collectd.conf and add the following lines:

      Source Code

      1. LoadPlugin hddtemp
      2. <Plugin "hddtemp">
      3. Host "127.0.0.1"
      4. Port "7634"
      5. TranslateDevicename true
      6. </Plugin>

      (To be honest I think you can leave out everything but

      Source Code

      1. LoadPlugin hddtemp
      if you like.)

      After this do

      Source Code

      1. /etc/init.d/collectd restart


      and then look for the rrd filenames

      Source Code

      1. ls /var/lib/collectd/rrd/localhost/hddtemp


      3. Now you should edit the lines in your collectd script file which you might have called /usr/share/openmediavault/scripts/collectd.d/sensors if you have followed first instruction in this thread (mine is /usr/share/openmediavault/scripts/collectd.d/systemp since I have separate files for recording the temperatures and fan speeds).

      4. When this is done you need to run

      Source Code

      1. /usr/share/openmediavault/scripts/collectd
      and then reload the web GUI for you changes to appear...

      ---------------------------------------

      For clarity I will also attach the contents of my files /var/www/openmediavault/js/omv/module/admin/Sensors.js and /usr/share/openmediavault/scripts/collectd.d/systemp.

      /var/www/openmediavault/js/omv/module/admin/Sensors.js:

      Source Code

      1. /**
      2. * Sensors plugin for system information.
      3. */
      4. // require("js/omv/NavigationPanel.js")
      5. // require("js/omv/PluginMgr.js")
      6. // require("js/omv/data/DataProxy.js")
      7. // require("js/omv/data/Store.js")
      8. // require("js/omv/grid/TBarGridPanel.js")
      9. // require("js/omv/RrdGraphPanel.js")
      10. Ext.ns("OMV.Module.Diagnostics.SysInfo");
      11. /**
      12. * @class OMV.Module.Diagnostics.SysInfo.Temperature
      13. * @derived Ext.TabPanel
      14. */
      15. OMV.Module.Diagnostics.SysInfo.Temperature = function(config) {
      16. var initialConfig = {
      17. title: "Temperature",
      18. rrdGraphName: "systemp"
      19. };
      20. Ext.apply(initialConfig, config);
      21. OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call(
      22. this, initialConfig);
      23. };
      24. Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, {
      25. });
      26. OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
      27. /**
      28. * @class OMV.Module.Diagnostics.SysInfo.FanSpeed
      29. * @derived Ext.TabPanel
      30. */
      31. OMV.Module.Diagnostics.SysInfo.FanSpeed = function(config) {
      32. var initialConfig = {
      33. title: "Fan speed",
      34. rrdGraphName: "fanspeed"
      35. };
      36. Ext.apply(initialConfig, config);
      37. OMV.Module.Diagnostics.SysInfo.FanSpeed.superclass.constructor.call(
      38. this, initialConfig);
      39. };
      40. Ext.extend(OMV.Module.Diagnostics.SysInfo.FanSpeed, OMV.RrdGraphPanel, {
      41. });
      42. OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.FanSpeed);
      Display All



      /usr/share/openmediavault/scripts/collectd.d/systemp:

      Shell-Script

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. LoadPlugin hddtemp
      10. <Plugin "hddtemp">
      11. Host "127.0.0.1"
      12. Port "7634"
      13. TranslateDevicename true
      14. </Plugin>
      15. EOF
      16. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      17. # Plugin: sensors
      18. TITLE_LOAD="System temperature"
      19. COLOR_VR="#00cc00" # green
      20. COLOR_MEMORY="#0000fd" # blue
      21. COLOR_HDD1="#f0a000" # dark yellow
      22. COLOR_HDD2="#ff0000" # red
      23. rrdtool graph \${IMGDIR}/systemp-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      24. DEF:vravg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:AVERAGE \
      25. DEF:vrmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MIN \
      26. DEF:vrmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MAX \
      27. DEF:memavg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:AVERAGE \
      28. DEF:memmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MIN \
      29. DEF:memmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MAX \
      30. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-0.rrd:value:AVERAGE \
      31. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-0.rrd:value:MIN \
      32. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-0.rrd:value:MAX \
      33. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      34. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      35. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      36. LINE1:vravg\${COLOR_VR}:" VR Temp" \
      37. GPRINT:vrmin:MIN:"%4.2lf Min" \
      38. GPRINT:vravg:AVERAGE:"%4.2lf Avg" \
      39. GPRINT:vrmax:MAX:"%4.2lf Max" \
      40. GPRINT:vravg:LAST:"%4.2lf Last\l" \
      41. LINE1:memavg\${COLOR_MEMORY}:" Memory" \
      42. GPRINT:memmin:MIN:"%4.2lf Min" \
      43. GPRINT:memavg:AVERAGE:"%4.2lf Avg" \
      44. GPRINT:memmax:MAX:"%4.2lf Max" \
      45. GPRINT:memavg:LAST:"%4.2lf Last\l" \
      46. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sda" \
      47. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      48. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      49. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      50. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      51. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdb" \
      52. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      53. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      54. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      55. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      56. COMMENT:"\${LASTUPDATE}" >/dev/null
      57. rrdtool graph \${IMGDIR}/systemp-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      58. DEF:vravg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:AVERAGE \
      59. DEF:vrmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MIN \
      60. DEF:vrmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MAX \
      61. DEF:memavg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:AVERAGE \
      62. DEF:memmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MIN \
      63. DEF:memmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MAX \
      64. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-0.rrd:value:AVERAGE \
      65. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-0.rrd:value:MIN \
      66. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-0.rrd:value:MAX \
      67. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      68. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      69. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      70. LINE1:vravg\${COLOR_VR}:" VR Temp" \
      71. GPRINT:vrmin:MIN:"%4.2lf Min" \
      72. GPRINT:vravg:AVERAGE:"%4.2lf Avg" \
      73. GPRINT:vrmax:MAX:"%4.2lf Max" \
      74. GPRINT:vravg:LAST:"%4.2lf Last\l" \
      75. LINE1:memavg\${COLOR_MEMORY}:" Memory" \
      76. GPRINT:memmin:MIN:"%4.2lf Min" \
      77. GPRINT:memavg:AVERAGE:"%4.2lf Avg" \
      78. GPRINT:memmax:MAX:"%4.2lf Max" \
      79. GPRINT:memavg:LAST:"%4.2lf Last\l" \
      80. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sda" \
      81. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      82. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      83. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      84. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      85. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdb" \
      86. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      87. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      88. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      89. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      90. COMMENT:"\${LASTUPDATE}" >/dev/null
      91. rrdtool graph \${IMGDIR}/systemp-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      92. DEF:vravg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:AVERAGE \
      93. DEF:vrmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MIN \
      94. DEF:vrmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MAX \
      95. DEF:memavg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:AVERAGE \
      96. DEF:memmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MIN \
      97. DEF:memmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MAX \
      98. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-0.rrd:value:AVERAGE \
      99. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-0.rrd:value:MIN \
      100. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-0.rrd:value:MAX \
      101. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      102. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      103. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      104. LINE1:vravg\${COLOR_VR}:" VR Temp" \
      105. GPRINT:vrmin:MIN:"%4.2lf Min" \
      106. GPRINT:vravg:AVERAGE:"%4.2lf Avg" \
      107. GPRINT:vrmax:MAX:"%4.2lf Max" \
      108. GPRINT:vravg:LAST:"%4.2lf Last\l" \
      109. LINE1:memavg\${COLOR_MEMORY}:" Memory" \
      110. GPRINT:memmin:MIN:"%4.2lf Min" \
      111. GPRINT:memavg:AVERAGE:"%4.2lf Avg" \
      112. GPRINT:memmax:MAX:"%4.2lf Max" \
      113. GPRINT:memavg:LAST:"%4.2lf Last\l" \
      114. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sda" \
      115. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      116. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      117. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      118. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      119. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdb" \
      120. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      121. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      122. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      123. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      124. COMMENT:"\${LASTUPDATE}" >/dev/null
      125. rrdtool graph \${IMGDIR}/systemp-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      126. DEF:vravg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:AVERAGE \
      127. DEF:vrmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MIN \
      128. DEF:vrmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MAX \
      129. DEF:memavg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:AVERAGE \
      130. DEF:memmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MIN \
      131. DEF:memmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MAX \
      132. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-0.rrd:value:AVERAGE \
      133. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-0.rrd:value:MIN \
      134. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-0.rrd:value:MAX \
      135. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      136. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      137. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      138. LINE1:vravg\${COLOR_VR}:" VR Temp" \
      139. GPRINT:vrmin:MIN:"%4.2lf Min" \
      140. GPRINT:vravg:AVERAGE:"%4.2lf Avg" \
      141. GPRINT:vrmax:MAX:"%4.2lf Max" \
      142. GPRINT:vravg:LAST:"%4.2lf Last\l" \
      143. LINE1:memavg\${COLOR_MEMORY}:" Memory" \
      144. GPRINT:memmin:MIN:"%4.2lf Min" \
      145. GPRINT:memavg:AVERAGE:"%4.2lf Avg" \
      146. GPRINT:memmax:MAX:"%4.2lf Max" \
      147. GPRINT:memavg:LAST:"%4.2lf Last\l" \
      148. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sda" \
      149. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      150. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      151. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      152. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      153. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdb" \
      154. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      155. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      156. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      157. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      158. COMMENT:"\${LASTUPDATE}" >/dev/null
      159. rrdtool graph \${IMGDIR}/systemp-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      160. DEF:vravg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:AVERAGE \
      161. DEF:vrmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MIN \
      162. DEF:vrmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp3.rrd:value:MAX \
      163. DEF:memavg=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:AVERAGE \
      164. DEF:memmin=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MIN \
      165. DEF:memmax=\${DATA}/sensors-w83627dhg-isa-0290/temperature-temp1.rrd:value:MAX \
      166. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-0.rrd:value:AVERAGE \
      167. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-0.rrd:value:MIN \
      168. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-0.rrd:value:MAX \
      169. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      170. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      171. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      172. LINE1:vravg\${COLOR_VR}:" VR Temp" \
      173. GPRINT:vrmin:MIN:"%4.2lf Min" \
      174. GPRINT:vravg:AVERAGE:"%4.2lf Avg" \
      175. GPRINT:vrmax:MAX:"%4.2lf Max" \
      176. GPRINT:vravg:LAST:"%4.2lf Last\l" \
      177. LINE1:memavg\${COLOR_MEMORY}:" Memory" \
      178. GPRINT:memmin:MIN:"%4.2lf Min" \
      179. GPRINT:memavg:AVERAGE:"%4.2lf Avg" \
      180. GPRINT:memmax:MAX:"%4.2lf Max" \
      181. GPRINT:memavg:LAST:"%4.2lf Last\l" \
      182. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sda" \
      183. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      184. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      185. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      186. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      187. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdb" \
      188. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      189. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      190. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      191. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      192. COMMENT:"\${LASTUPDATE}" >/dev/null
      193. EOF
      Display All


      Comments, questions, suggestions or improvements are more than welcome.
    • Re: Temperature Sensor

      Hello. I was trying to setup temperature monitoring using the first post here but I get this error:

      Source Code

      1. /usr/share/openmediavault/scripts/collectd.d/sensors: line 70: warning: here-document at line 11 delimited by end-of-file (wanted `EOF')


      Any help with this would be appreciated. Here is the contents of my sensors file:

      Source Code

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. EOF
      10. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      11. # Plugin: sensors
      12. TITLE_LOAD="CPU temperature"
      13. COLOR_CPU_PHYSICAL="#00cc00" # green
      14. rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      15. DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      16. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      17. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      18. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      19. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      20. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      21. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      22. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      23. COMMENT:"\${LASTUPDATE}" >/dev/null
      24. rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      25. DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      26. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      27. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      28. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      29. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      30. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      31. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      32. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      33. COMMENT:"\${LASTUPDATE}" >/dev/null
      34. rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      35. DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      36. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      37. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      38. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      39. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      40. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      41. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      42. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      43. COMMENT:"\${LASTUPDATE}" >/dev/null
      44. rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      45. DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      46. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      47. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      48. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      49. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      50. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      51. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      52. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      53. COMMENT:"\${LASTUPDATE}" >/dev/null
      54. rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      55. DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      56. DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      57. DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      58. LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
      59. GPRINT:cpupmin:MIN:"%4.2lf Min" \
      60. GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
      61. GPRINT:cpupmax:MAX:"%4.2lf Max" \
      62. GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
      63. EOF
      Display All
    • Re: Temperature Sensor

      "logan_fre" wrote:

      Hello. I was trying to setup temperature monitoring using the first post here but I get this error:

      Source Code

      1. /usr/share/openmediavault/scripts/collectd.d/sensors: line 70: warning: here-document at line 11 delimited by end-of-file (wanted `EOF')


      Check if you have any Space after the last EOF.
    • Re: Temperature Sensor

      "johny_sketo" wrote:


      Check if you have any Space after the last EOF.


      Thanks for this. I tried that but it didn't make any difference. After trying different things, I found that it was because there was a TAB before the EOF. Now I don't get an error, but there are no graphs. I'm not sure it is worth it to keep fooling around with it. I noticed that under the S.M.A.R.T section you can see the drive temps so that will probably be enough for me.

      Files
      • No Graphs.PNG

        (17.02 kB, downloaded 4,639 times, last: )
    • Re: Temperature Sensor

      "logan_fre" wrote:


      Thanks for this. I tried that but it didn't make any difference. After trying different things, I found that it was because there was a TAB before the EOF. Now I don't get an error, but there are no graphs. I'm not sure it is worth it to keep fooling around with it. I noticed that under the S.M.A.R.T section you can see the drive temps so that will probably be enough for me.

      Can you check what do you see inside the following folder

      Source Code

      1. /var/lib/collectd/rrd/localhost

      What mainboard do you use?
    • Re: Temperature Sensor

      "johny_sketo" wrote:


      Can you check what do you see inside the following folder

      Source Code

      1. /var/lib/collectd/rrd/localhost

      What mainboard do you use?


      I have : cpu-0 cpu-1 df hddtemp interface load memory sensors-k10temp-pci-00c3

      Also hddtemp contains: temperature-8-16.rrd temperature-8-48.rrd temperature-8-80.rrd temperature-8-32.rrd temperature-8-64.rrd
      And sensors-k10-pci-00c3 contains: temperature-temp1.rrd

      My motherboard is a Jetway G03-HZ03-F.


      I should also point out that while troubleshooting the first error I redid my sensors file to include my hard drives. I based it on Jay-Jay's example above. Here is the current version:

      Shell-Script

      1. #!/bin/sh
      2. set -e
      3. . /etc/default/openmediavault
      4. . /usr/share/openmediavault/scripts/helper-functions
      5. OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
      6. OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
      7. cat <<EOF >> ${OMV_COLLECTD_CONFIG}
      8. LoadPlugin sensors
      9. LoadPlugin hddtemp
      10. <Plugin "hddtemp">
      11. Host "127.0.0.1"
      12. Port "7634"
      13. TranslateDevicename true
      14. </Plugin>
      15. EOF
      16. cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
      17. # Plugin: sensors
      18. TITLE_LOAD="System temperature"
      19. COLOR_CPU="#00cc00" # green
      20. COLOR_HDD1="#f0a000" # dark yellow
      21. COLOR_HDD2="#ff0000" # red
      22. COLOR_HDD3="#0000ff" # blue
      23. COLOR_HDD4="#ff00ff" # purple
      24. COLOR_HDD5="#ffff00" # yellow
      25. rrdtool graph \${IMGDIR}/systemp-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      26. DEF:cpuavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      27. DEF:cpumin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      28. DEF:cpumax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      29. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      30. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      31. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      32. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-32.rrd:value:AVERAGE \
      33. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-32.rrd:value:MIN \
      34. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-32.rrd:value:MAX \
      35. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-48.rrd:value:AVERAGE \
      36. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-48.rrd:value:MIN \
      37. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-48.rrd:value:MAX \
      38. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-64.rrd:value:AVERAGE \
      39. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-64.rrd:value:MIN \
      40. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-64.rrd:value:MAX \
      41. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-80.rrd:value:AVERAGE \
      42. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-80.rrd:value:MIN \
      43. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-80.rrd:value:MAX \
      44. LINE1:cpuavg\${COLOR_CPU}:" CPU Temp" \
      45. GPRINT:cpumin:MIN:"%4.2lf Min" \
      46. GPRINT:cpuavg:AVERAGE:"%4.2lf Avg" \
      47. GPRINT:cpumax:MAX:"%4.2lf Max" \
      48. GPRINT:cpuavg:LAST:"%4.2lf Last\l" \
      49. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sdb" \
      50. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      51. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      52. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      53. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      54. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdc" \
      55. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      56. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      57. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      58. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      59. LINE1:hdd3avg\${COLOR_HDD3}:"/dev/sdd" \
      60. GPRINT:hdd3min:MIN:"%4.2lf Min" \
      61. GPRINT:hdd3avg:AVERAGE:"%4.2lf Avg" \
      62. GPRINT:hdd3max:MAX:"%4.2lf Max" \
      63. GPRINT:hdd3avg:LAST:"%4.2lf Last\l" \
      64. LINE1:hdd4avg\${COLOR_HDD4}:"/dev/sde" \
      65. GPRINT:hdd4min:MIN:"%4.2lf Min" \
      66. GPRINT:hdd4avg:AVERAGE:"%4.2lf Avg" \
      67. GPRINT:hdd4max:MAX:"%4.2lf Max" \
      68. GPRINT:hdd4avg:LAST:"%4.2lf Last\l" \
      69. LINE1:hdd5avg\${COLOR_HDD5}:"/dev/sdf" \
      70. GPRINT:hdd5min:MIN:"%4.2lf Min" \
      71. GPRINT:hdd5avg:AVERAGE:"%4.2lf Avg" \
      72. GPRINT:hdd5max:MAX:"%4.2lf Max" \
      73. GPRINT:hdd5avg:LAST:"%4.2lf Last\l" \
      74. COMMENT:"\${LASTUPDATE}" >/dev/null
      75. rrdtool graph \${IMGDIR}/systemp-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      76. DEF:cpuavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      77. DEF:cpumin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      78. DEF:cpumax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      79. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      80. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      81. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      82. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-32.rrd:value:AVERAGE \
      83. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-32.rrd:value:MIN \
      84. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-32.rrd:value:MAX \
      85. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-48.rrd:value:AVERAGE \
      86. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-48.rrd:value:MIN \
      87. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-48.rrd:value:MAX \
      88. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-64.rrd:value:AVERAGE \
      89. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-64.rrd:value:MIN \
      90. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-64.rrd:value:MAX \
      91. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-80.rrd:value:AVERAGE \
      92. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-80.rrd:value:MIN \
      93. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-80.rrd:value:MAX \
      94. LINE1:cpuavg\${COLOR_CPU}:" CPU Temp" \
      95. GPRINT:cpumin:MIN:"%4.2lf Min" \
      96. GPRINT:cpuavg:AVERAGE:"%4.2lf Avg" \
      97. GPRINT:cpumax:MAX:"%4.2lf Max" \
      98. GPRINT:cpuavg:LAST:"%4.2lf Last\l" \
      99. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sdb" \
      100. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      101. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      102. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      103. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      104. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdc" \
      105. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      106. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      107. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      108. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      109. LINE1:hdd3avg\${COLOR_HDD3}:"/dev/sdd" \
      110. GPRINT:hdd3min:MIN:"%4.2lf Min" \
      111. GPRINT:hdd3avg:AVERAGE:"%4.2lf Avg" \
      112. GPRINT:hdd3max:MAX:"%4.2lf Max" \
      113. GPRINT:hdd3avg:LAST:"%4.2lf Last\l" \
      114. LINE1:hdd4avg\${COLOR_HDD4}:"/dev/sde" \
      115. GPRINT:hdd4min:MIN:"%4.2lf Min" \
      116. GPRINT:hdd4avg:AVERAGE:"%4.2lf Avg" \
      117. GPRINT:hdd4max:MAX:"%4.2lf Max" \
      118. GPRINT:hdd4avg:LAST:"%4.2lf Last\l" \
      119. LINE1:hdd5avg\${COLOR_HDD5}:"/dev/sdf" \
      120. GPRINT:hdd5min:MIN:"%4.2lf Min" \
      121. GPRINT:hdd5avg:AVERAGE:"%4.2lf Avg" \
      122. GPRINT:hdd5max:MAX:"%4.2lf Max" \
      123. GPRINT:hdd5avg:LAST:"%4.2lf Last\l" \
      124. COMMENT:"\${LASTUPDATE}" >/dev/null
      125. rrdtool graph \${IMGDIR}/systemp-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      126. DEF:cpuavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      127. DEF:cpumin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      128. DEF:cpumax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      129. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      130. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      131. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      132. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-32.rrd:value:AVERAGE \
      133. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-32.rrd:value:MIN \
      134. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-32.rrd:value:MAX \
      135. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-48.rrd:value:AVERAGE \
      136. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-48.rrd:value:MIN \
      137. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-48.rrd:value:MAX \
      138. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-64.rrd:value:AVERAGE \
      139. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-64.rrd:value:MIN \
      140. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-64.rrd:value:MAX \
      141. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-80.rrd:value:AVERAGE \
      142. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-80.rrd:value:MIN \
      143. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-80.rrd:value:MAX \
      144. LINE1:cpuavg\${COLOR_CPU}:" CPU Temp" \
      145. GPRINT:cpumin:MIN:"%4.2lf Min" \
      146. GPRINT:cpuavg:AVERAGE:"%4.2lf Avg" \
      147. GPRINT:cpumax:MAX:"%4.2lf Max" \
      148. GPRINT:cpuavg:LAST:"%4.2lf Last\l" \
      149. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sdb" \
      150. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      151. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      152. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      153. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      154. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdc" \
      155. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      156. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      157. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      158. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      159. LINE1:hdd3avg\${COLOR_HDD3}:"/dev/sdd" \
      160. GPRINT:hdd3min:MIN:"%4.2lf Min" \
      161. GPRINT:hdd3avg:AVERAGE:"%4.2lf Avg" \
      162. GPRINT:hdd3max:MAX:"%4.2lf Max" \
      163. GPRINT:hdd3avg:LAST:"%4.2lf Last\l" \
      164. LINE1:hdd4avg\${COLOR_HDD4}:"/dev/sde" \
      165. GPRINT:hdd4min:MIN:"%4.2lf Min" \
      166. GPRINT:hdd4avg:AVERAGE:"%4.2lf Avg" \
      167. GPRINT:hdd4max:MAX:"%4.2lf Max" \
      168. GPRINT:hdd4avg:LAST:"%4.2lf Last\l" \
      169. LINE1:hdd5avg\${COLOR_HDD5}:"/dev/sdf" \
      170. GPRINT:hdd5min:MIN:"%4.2lf Min" \
      171. GPRINT:hdd5avg:AVERAGE:"%4.2lf Avg" \
      172. GPRINT:hdd5max:MAX:"%4.2lf Max" \
      173. GPRINT:hdd5avg:LAST:"%4.2lf Last\l" \
      174. COMMENT:"\${LASTUPDATE}" >/dev/null
      175. rrdtool graph \${IMGDIR}/systemp-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      176. DEF:cpuavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      177. DEF:cpumin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      178. DEF:cpumax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      179. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      180. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      181. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      182. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-32.rrd:value:AVERAGE \
      183. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-32.rrd:value:MIN \
      184. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-32.rrd:value:MAX \
      185. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-48.rrd:value:AVERAGE \
      186. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-48.rrd:value:MIN \
      187. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-48.rrd:value:MAX \
      188. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-64.rrd:value:AVERAGE \
      189. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-64.rrd:value:MIN \
      190. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-64.rrd:value:MAX \
      191. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-80.rrd:value:AVERAGE \
      192. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-80.rrd:value:MIN \
      193. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-80.rrd:value:MAX \
      194. LINE1:cpuavg\${COLOR_CPU}:" CPU Temp" \
      195. GPRINT:cpumin:MIN:"%4.2lf Min" \
      196. GPRINT:cpuavg:AVERAGE:"%4.2lf Avg" \
      197. GPRINT:cpumax:MAX:"%4.2lf Max" \
      198. GPRINT:cpuavg:LAST:"%4.2lf Last\l" \
      199. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sdb" \
      200. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      201. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      202. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      203. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      204. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdc" \
      205. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      206. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      207. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      208. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      209. LINE1:hdd3avg\${COLOR_HDD3}:"/dev/sdd" \
      210. GPRINT:hdd3min:MIN:"%4.2lf Min" \
      211. GPRINT:hdd3avg:AVERAGE:"%4.2lf Avg" \
      212. GPRINT:hdd3max:MAX:"%4.2lf Max" \
      213. GPRINT:hdd3avg:LAST:"%4.2lf Last\l" \
      214. LINE1:hdd4avg\${COLOR_HDD4}:"/dev/sde" \
      215. GPRINT:hdd4min:MIN:"%4.2lf Min" \
      216. GPRINT:hdd4avg:AVERAGE:"%4.2lf Avg" \
      217. GPRINT:hdd4max:MAX:"%4.2lf Max" \
      218. GPRINT:hdd4avg:LAST:"%4.2lf Last\l" \
      219. LINE1:hdd5avg\${COLOR_HDD5}:"/dev/sdf" \
      220. GPRINT:hdd5min:MIN:"%4.2lf Min" \
      221. GPRINT:hdd5avg:AVERAGE:"%4.2lf Avg" \
      222. GPRINT:hdd5max:MAX:"%4.2lf Max" \
      223. GPRINT:hdd5avg:LAST:"%4.2lf Last\l" \
      224. COMMENT:"\${LASTUPDATE}" >/dev/null
      225. rrdtool graph \${IMGDIR}/systemp-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \
      226. DEF:cpuavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \
      227. DEF:cpumin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \
      228. DEF:cpumax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \
      229. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-16.rrd:value:AVERAGE \
      230. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-16.rrd:value:MIN \
      231. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-16.rrd:value:MAX \
      232. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-32.rrd:value:AVERAGE \
      233. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-32.rrd:value:MIN \
      234. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-32.rrd:value:MAX \
      235. DEF:hdd1avg=\${DATA}/hddtemp/temperature-8-48.rrd:value:AVERAGE \
      236. DEF:hdd1min=\${DATA}/hddtemp/temperature-8-48.rrd:value:MIN \
      237. DEF:hdd1max=\${DATA}/hddtemp/temperature-8-48.rrd:value:MAX \
      238. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-64.rrd:value:AVERAGE \
      239. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-64.rrd:value:MIN \
      240. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-64.rrd:value:MAX \
      241. DEF:hdd2avg=\${DATA}/hddtemp/temperature-8-80.rrd:value:AVERAGE \
      242. DEF:hdd2min=\${DATA}/hddtemp/temperature-8-80.rrd:value:MIN \
      243. DEF:hdd2max=\${DATA}/hddtemp/temperature-8-80.rrd:value:MAX \
      244. LINE1:cpuavg\${COLOR_CPU}:" CPU Temp" \
      245. GPRINT:cpumin:MIN:"%4.2lf Min" \
      246. GPRINT:cpuavg:AVERAGE:"%4.2lf Avg" \
      247. GPRINT:cpumax:MAX:"%4.2lf Max" \
      248. GPRINT:cpuavg:LAST:"%4.2lf Last\l" \
      249. LINE1:hdd1avg\${COLOR_HDD1}:"/dev/sdb" \
      250. GPRINT:hdd1min:MIN:"%4.2lf Min" \
      251. GPRINT:hdd1avg:AVERAGE:"%4.2lf Avg" \
      252. GPRINT:hdd1max:MAX:"%4.2lf Max" \
      253. GPRINT:hdd1avg:LAST:"%4.2lf Last\l" \
      254. LINE1:hdd2avg\${COLOR_HDD2}:"/dev/sdc" \
      255. GPRINT:hdd2min:MIN:"%4.2lf Min" \
      256. GPRINT:hdd2avg:AVERAGE:"%4.2lf Avg" \
      257. GPRINT:hdd2max:MAX:"%4.2lf Max" \
      258. GPRINT:hdd2avg:LAST:"%4.2lf Last\l" \
      259. LINE1:hdd3avg\${COLOR_HDD3}:"/dev/sdd" \
      260. GPRINT:hdd3min:MIN:"%4.2lf Min" \
      261. GPRINT:hdd3avg:AVERAGE:"%4.2lf Avg" \
      262. GPRINT:hdd3max:MAX:"%4.2lf Max" \
      263. GPRINT:hdd3avg:LAST:"%4.2lf Last\l" \
      264. LINE1:hdd4avg\${COLOR_HDD4}:"/dev/sde" \
      265. GPRINT:hdd4min:MIN:"%4.2lf Min" \
      266. GPRINT:hdd4avg:AVERAGE:"%4.2lf Avg" \
      267. GPRINT:hdd4max:MAX:"%4.2lf Max" \
      268. GPRINT:hdd4avg:LAST:"%4.2lf Last\l" \
      269. LINE1:hdd5avg\${COLOR_HDD5}:"/dev/sdf" \
      270. GPRINT:hdd5min:MIN:"%4.2lf Min" \
      271. GPRINT:hdd5avg:AVERAGE:"%4.2lf Avg" \
      272. GPRINT:hdd5max:MAX:"%4.2lf Max" \
      273. GPRINT:hdd5avg:LAST:"%4.2lf Last\l" \
      274. COMMENT:"\${LASTUPDATE}" >/dev/null
      275. EOF
      Display All


      Here is my sensors.js file:

      Source Code

      1. /**
      2. * Sensors plugin for system information.
      3. */
      4. // require("js/omv/NavigationPanel.js")
      5. // require("js/omv/PluginMgr.js")
      6. // require("js/omv/data/DataProxy.js")
      7. // require("js/omv/data/Store.js")
      8. // require("js/omv/grid/TBarGridPanel.js")
      9. // require("js/omv/RrdGraphPanel.js")
      10. Ext.ns("OMV.Module.Diagnostics.SysInfo");
      11. /**
      12. * @class OMV.Module.Diagnostics.SysInfo.Temperature
      13. * @derived Ext.TabPanel
      14. */
      15. OMV.Module.Diagnostics.SysInfo.Temperature = function(config) {
      16. var initialConfig = {
      17. title: "Temperature",
      18. rrdGraphName: "systemp"
      19. };
      20. Ext.apply(initialConfig, config);
      21. OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call(
      22. this, initialConfig);
      23. };
      24. Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, {
      25. });
      26. OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
      Display All
    • Re: Temperature Sensor

      Ah HA! I found my mistake while posting my reply. While copy and pasting the hard drive lines, I forgot to update some of them from hdd1avg to hdd3avg, hdd4avg, etc. I fixed it and now it works!

      Thanks your all your help. I appreciate it.

      Files
      • graphs.PNG

        (26.36 kB, downloaded 4,675 times, last: )
    • Re: Temperature Sensor

      Can some1 please make a plugin for this? Or better: Integrate it within OMV :)
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work