#!/bin/sh #------------------------------------------------------------------------------ # OPT_EMBEDDED /etc/rrdtool/alix.params __FLI4LVER__ # Creation: 2008-05-01 Joe # Last Update: $Id$ #------------------------------------------------------------------------------ RRDTOOL_PARAMS_LOADED_alix='yes' local graph_title= local graph_unit= local graph_fmt= rrdtool_gen_params_alix() { local item=$1 eval rrdtool_gen_params_alix_$item } rrdtool_gen_params_alix_temperature() { graph_title="$_TEMP_title" graph_unit="$_TEMP_unit" graph_fmt="%4.1lf" local graph_ds1="$_TEMP_ds1" local graph_ds2="$_TEMP_ds2" rrdtool_addCache "-c BACK#eeeeee -l 0" rrdtool_addCache "-t '$graph_title' -v '$graph_unit'" rrdtool_addCache "DEF:cpu_avg=$rrdFile:temperature-cpu:AVERAGE" rrdtool_addCache "DEF:pcb_avg=$rrdFile:temperature-pcb:AVERAGE" # rrdtool_addCache "DEF:cpu_min=$rrdFile:temperature-cpu:MIN" # rrdtool_addCache "DEF:pcb_min=$rrdFile:temperature-pcb:MIN" # rrdtool_addCache "DEF:cpu_max=$rrdFile:temperature-cpu:MAX" # rrdtool_addCache "DEF:pcb_max=$rrdFile:temperature-pcb:MAX" rrdtool_gen_defStats 'cpu_avg_stats' 'cpu_avg' 'pcb_avg_stats' 'pcb_avg' rrdtool_gen_printHeader ${#graph_ds1} rrdtool_addCache "LINE1:cpu_avg#FF0000:'$graph_ds1'" rrdtool_gen_printStats 'cpu_avg_stats' rrdtool_addCache "LINE1:pcb_avg#0000FF:'$graph_ds2'" rrdtool_gen_printStats 'pcb_avg_stats' }