To be honest I am not sure about the procedure you have to use to make this work but the last file you changed has several things that does not looks correct. You have wrote rrdGraphName: "systemp" and rrdGraphName: "fanspeed" but the file you want to access has name sensors (if I am not mistaking), so you cannot load your graphs on your template...
Temperature Sensor
-
-
So I manage to have fan speed and Cpu Temp on the same graph. But for scale problem , it's not a good idea.
So i want to have fan speed on its own tab.
But after trying many,many,many,many things, i did not succeed.
The first thing I tried is to try the tutorial on first page with fan speed spec : I created a fanspeed.js , fanspeed file with the fanspeed rrd and made it executable but it don't work.How create a new tab who use also the sensor module ?
thanks
-
I believe a quick way to do what you want is to create two images, one for CPU temp and one for fan speed for every hour-day-week etc, in the same tab. So you want have any problem with the scale. Another think that I think is to deviate somehow the speedfan valu by 100, so you finally get a value 52,10 for example. To be honest, I am not 100% sure that this is easy :?
P.S. What did you change in order to make have both CPU temp and speedfan in the same image???
-
Zitat von "johny_sketo"
P.S. What did you change in order to make have both CPU temp and speedfan in the same image???
I do not remember more precisely so I tried many things ...
But finally, I also managed to display them on the same tabHere is the code for a Gigabyte GA-D525-TUD
CPU Temp and fan speed on the same tab
Sensors.jsCode
Alles anzeigen/** * Sensors plugin for system information. */ // require("js/omv/NavigationPanel.js") // require("js/omv/PluginMgr.js") // require("js/omv/data/DataProxy.js") // require("js/omv/data/Store.js") // require("js/omv/grid/TBarGridPanel.js") // require("js/omv/RrdGraphPanel.js") Ext.ns("OMV.Module.Diagnostics.SysInfo"); /** * @class OMV.Module.Diagnostics.SysInfo.Temperatures * @derived Ext.TabPanel */ OMV.Module.Diagnostics.SysInfo.Temperature = function(config) { var initialConfig = { title: "Temperature CPU", rrdGraphName: "sensors" }; Ext.apply(initialConfig, config); OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call( this, initialConfig); }; Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, { }); OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
sensors
Bash
Alles anzeigen#!/bin/sh set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin sensors EOF cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # Plugin: sensors TITLE_LOAD="CPU temperature - Fan Speed" COLOR_CPU_CORE_0="#0000fd" # blue COLOR_CPU_CORE_1="#ff0000" # red COLOR_FANSPEED="#00cc00" # green rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null EOF
CPU Temp and fan speed on different tab
Sensors.js
Code
Alles anzeigen/** * Sensors plugin for system information. */ // require("js/omv/NavigationPanel.js") // require("js/omv/PluginMgr.js") // require("js/omv/data/DataProxy.js") // require("js/omv/data/Store.js") // require("js/omv/grid/TBarGridPanel.js") // require("js/omv/RrdGraphPanel.js") Ext.ns("OMV.Module.Diagnostics.SysInfo"); /** * @class OMV.Module.Diagnostics.SysInfo.Temperatures * @derived Ext.TabPanel */ OMV.Module.Diagnostics.SysInfo.Temperature = function(config) { var initialConfig = { title: "Temperature CPU", rrdGraphName: "sensors" }; Ext.apply(initialConfig, config); OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call( this, initialConfig); }; Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, { }); OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature); /** * @class OMV.Module.Diagnostics.SysInfo.Temperatures * @derived Ext.TabPanel */ OMV.Module.Diagnostics.SysInfo.Temperature = function(config) { var initialConfig = { title: "Vitesse Ventil. CPU", rrdGraphName: "fanspeed" }; Ext.apply(initialConfig, config); OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call( this, initialConfig); }; Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, { }); OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
sensors
Bash
Alles anzeigen#!/bin/sh set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin sensors EOF cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # Plugin: sensors TITLE_LOAD="CPU temperature" COLOR_CPU_CORE_0="#0000fd" # blue COLOR_CPU_CORE_1="#ff0000" # red rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0001/temperature-temp1.rrd:value:MAX \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null EOF
fanspeed
Bash
Alles anzeigen#!/bin/sh set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin fanspeed EOF cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # Plugin: fanspeed TITLE_LOAD="Fan Speed" COLOR_FANSPEED="#00cc00" # green rrdtool graph \${IMGDIR}/fanspeed-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 2000 --lower-limit 0 --units-exponent 0 \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/fanspeed-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 2000 --lower-limit 0 --units-exponent 0 \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/fanspeed-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 2000 --lower-limit 0 --units-exponent 0 \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/fanspeed-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 2000 --lower-limit 0 --units-exponent 0 \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/fanspeed-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 2000 --lower-limit 0 --units-exponent 0 \ DEF:fan1avg=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:AVERAGE \ DEF:fan1pmin=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MIN \ DEF:fan1pmax=\${DATA}/sensors-it8720-isa-0290/fanspeed-fan1.rrd:value:MAX \ LINE1:fan1avg\${COLOR_FANSPEED}:"Fan Speed" \ GPRINT:fan1pmin:MIN:"%4.2lf Min" \ GPRINT:fan1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:fan1pmax:MAX:"%4.2lf Max" \ GPRINT:fan1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null EOF
-
Very nice work!! The second configuration (fanspeed) for some reason does not have any slash "/" :? :? :?
-
strange ... It's corrected.
-
Hi,
last week i installed OMV 0.4 on my new built system. It's been working flawlessly since then.
The only problem is that i can't get the temperature sensors to work.is there any way to get this to work on my config.
My Specs are
ASUS P8H77-I, H77 board
Intel Core i3-3220 (Ivy bridge)
OMV 0.4.12Thanks
-
Can you give us more details? Did you follow the procedure from the first page? Did you make the changes needed from your hardware?
-
I followed the instructions on the first page.
I installed lm-sensors. But im not sure if the version of lm-sensors that i downloaded for omv 0.4 supports the temperature sensor of ivy bridge cpus or the sensors of the H77 chipset of my mainboard. As far as i understood this is also dependend on the kernel which is installed on the machine?
I ran sensors-detect but i think it didn't recognize anything.
The question is also what changes do i have to make to make it run.The next problem is that i usually use windows at home. So i have not much knowledge regarding linux.
-
First of all, don't worry, there are a lot of people here who can help you.
Can you type sensors and write down the results? The changes you have to make are at the second file you have to create, the one called sensors. You have to find out your sensors and change the configuration file.
-
Ok. here is the output:
The system is clean at the moment. Which means only OMV 0.4.12 is installed.
I just added lm-sensors by installing it via apt-get install lm-sensors.
Here is the output.
It seems it can read the cpu temperatureCoderoot@openmediavault:~# sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8°C (crit = +106.0°C) temp2: +29.8°C (crit = +106.0°C)
Here the output of sensors-detect
Code
Alles anzeigenroot@openmediavault:/var/lib/collectd/rrd/localhost# sensors-detect # sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: System manufacturer System Product Name # Board: ASUSTeK COMPUTER INC. P8H77-I This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): Yes Silicon Integrated Systems SIS5595... No VIA VT82C686 Integrated Sensors... No VIA VT8231 Integrated Sensors... No AMD K8 thermal sensors... No AMD Family 10h thermal sensors... No AMD Family 11h thermal sensors... No Intel Core family thermal sensor... No Intel Atom thermal sensor... No Intel AMB FB-DIMM thermal sensor... No VIA C7 thermal sensor... No VIA Nano thermal sensor... No Some Super I/O chips contain embedded sensors. We have to write to standard I/O ports to probe them. This is usually safe. Do you want to scan for Super I/O sensors? (YES/no): Probing for Super-I/O at 0x2e/0x2f Trying family `National Semiconductor'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Nuvoton/Fintek'... No Trying family `ITE'... Yes Found unknown chip with ID 0x8771 (logical device 4 has address 0x290, could be sensors) Probing for Super-I/O at 0x4e/0x4f Trying family `National Semiconductor'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Nuvoton/Fintek'... No Trying family `ITE'... No Some systems (mainly servers) implement IPMI, a set of common interfaces through which system health data may be retrieved, amongst other things. We first try to get the information from SMBIOS. If we don't find it there, we have to read from arbitrary I/O ports to probe for such interfaces. This is normally safe. Do you want to scan for IPMI interfaces? (YES/no): # DMI data unavailable, please consider installing dmidecode 2.7 # or later for better results. Probing for `IPMI BMC KCS' at 0xca0... No Probing for `IPMI BMC SMIC' at 0xca8... No Some hardware monitoring chips are accessible through the ISA I/O ports. We have to write to arbitrary I/O ports to probe them. This is usually safe though. Yes, you do have ISA I/O ports even if you do not have any ISA slots! Do you want to scan the ISA I/O ports? (YES/no): Probing for `National Semiconductor LM78' at 0x290... No Probing for `National Semiconductor LM79' at 0x290... No Probing for `Winbond W83781D' at 0x290... No Probing for `Winbond W83782D' at 0x290... No Lastly, we can probe the I2C/SMBus adapters for connected hardware monitoring devices. This is the most risky part, and while it works reasonably well on most systems, it has been reported to cause trouble on some systems. Do you want to probe the I2C/SMBus adapters now? (YES/no): Found unknown SMBus adapter 8086:1e22 at 0000:00:1f.3. Sorry, no supported PCI bus adapters found. Module i2c-dev loaded successfully. Sorry, no sensors were detected. Either your system has no sensors, or they are not supported, or they are connected to an I2C or SMBus adapter that is not supported. If you find out what chips are on your board, check http://www.lm-sensors.org/wiki/Devices for driver status. root@openmediavault:/var/lib/collectd/rrd/localhost# sensors
thanks in advance
-
For start go inside /var/lib/collectd/rrd/localhost and then type ls in order to get a list of the files and folders inside. What do you get?
-
-
To be honest it looks like the default setup. Can you reboot your omv server and see if anything changes?
-
output doesn't change after reboot.
I think the problem is the kernel. I guess 2.6.35 doesn't offer support for ivy bridge components. And if i understand it right lm-sensors just uses the kernel modules to read from the sensors. -
Go inside /var/lib/collectd/rrd/ and see if there is another folder there exept localhost
-
only localhost in there.
-
To be honest I do not know how to help you Maybe it has to do with the kernel but I cannot say, I am not an linux expert also
-
Ok got it to work. Had to update the kernel to 3.2.
-
Anybody can write a plugin?
I'll pay for the work. Is anyone willing?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!