alixtemp_graph () { last_x="$1" /usr/bin/rrdtool graph /srv/www/img/alixtemp-$last_x.png --title "Alix-Temperaturen - $last_x" \ --imginfo 'Alix-Temperaturen' \ $rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \ --end now --start end-${last_x} \ --vertical-label "Alix-Temperaturen" \ --font "WATERMARK:8" \ $rrd_grid_background \ DEF:pcb=${rrd_dbpath}/sensors-lm86-i2c-0-4c/temperature-temp1.rrd:value:AVERAGE \ DEF:cpu=${rrd_dbpath}/sensors-lm86-i2c-0-4c/temperature-temp2.rrd:value:AVERAGE \ VDEF:pcb_max=pcb,MAXIMUM \ VDEF:pcb_avg=pcb,AVERAGE \ VDEF:pcb_min=pcb,MINIMUM \ VDEF:pcb_last=pcb,LAST \ VDEF:cpu_max=cpu,MAXIMUM \ VDEF:cpu_avg=cpu,AVERAGE \ VDEF:cpu_min=cpu,MINIMUM \ VDEF:cpu_last=cpu,LAST \ COMMENT:"\t\t\g" \ COMMENT:"Maximum\t\t\g" \ COMMENT:"Average\t\t\g" \ COMMENT:"Minimum\t\t\g" \ COMMENT:"Last\l" \ LINE1:cpu#FF0000:"CPU\t\t\g" \ GPRINT:cpu_max:"%.1lf\t\t\g" \ GPRINT:cpu_avg:"%.1lf\t\t\g" \ GPRINT:cpu_min:"%.1lf\t\t\g" \ GPRINT:cpu_last:"%.1lf\l" \ LINE2:pcb#0000FF:"Mainboard\t\g" \ GPRINT:pcb_max:"%.1lf\t\t\g" \ GPRINT:pcb_avg:"%.1lf\t\t\g" \ GPRINT:pcb_min:"%.1lf\t\t\g" \ GPRINT:pcb_last:"%.1lf\l" \ COMMENT:"\n" \ COMMENT:"Letztes update\:\t$rrd_last_update" }