Just a copy from the old forum,http://sourceforge.net/apps/ph…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).
Then I inserted this:
/**
* 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: "CPU temperature",
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);
Alles anzeigen
Then you have to create another file to get your changes in to collectd.conf and omv-mkgraph:
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:
#!/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_PHYSICAL="#00cc00" # green
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:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
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:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
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:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
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:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
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:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \
DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \
DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
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
Alles anzeigen
Save the file and then you have to make sure it is executable:
You then run:
which is a script that make the collectd.conf and omv-mkgraph file.
If it doesn't work, try running just
and look for errors, if not then try running:
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:
Add this row:
Reload collectd by either restarting your computer or
Now we can try to figure out the sensors and what path collectd uses:
Zitatcd /var/lib/collectd/rrd/localhost
ls
Here I got this list:
ZitatAlles anzeigen
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:
This is what was there, only temps:
Zitattemperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd
And that is what get you what you should use, e.g:
ZitatDEF: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:
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)
#!/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="Temperatures"
COLOR_CPU_PHYSICAL="#ff0000" # red
COLOR_CPU_CORE_0="#0000fd" # blue
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:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
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" \
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:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
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" \
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:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
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" \
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:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
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" \
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:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \
DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \
DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \
DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \
DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \
DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \
LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \
GPRINT:cpupmin:MIN:"%4.2lf Min" \
GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \
GPRINT:cpupmax:MAX:"%4.2lf Max" \
GPRINT:cpupavg:LAST:"%4.2lf Last\l" \
LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \
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" \
COMMENT:"\${LASTUPDATE}" >/dev/null
EOF
Alles anzeigen