#!/bin/sh #------------------------------------------------------------------------------ # OPT_UMTS /etc/rrdtool/umts.params __FLI4LVER__ # Creation: 2010-04-20 gdw # Last Update: $Id$ #------------------------------------------------------------------------------ RRDTOOL_PARAMS_LOADED_umts='yes' local graph_title= local graph_unit= local graph_fmt= rrdtool_gen_params_umts() { local item=$1 eval rrdtool_gen_params_umts_$item } #temp rrdtool_gen_params_umts_signal() { graph_title="$_SIGNAL_title" graph_unit="$_SIGNAL_unit" graph_fmt="%4.1lf" local graph_ds1="$_SIGNAL_ds1" rrdtool_addCache "-c BACK#eeeeee -l 0" rrdtool_addCache "-t '$graph_title' -v '$graph_unit'" rrdtool_addCache "DEF:signal_avg=$rrdFile:signal:AVERAGE" rrdtool_addCache "DEF:signal_min=$rrdFile:signal:MIN" rrdtool_addCache "DEF:signal_max=$rrdFile:signal:MAX" rrdtool_gen_defStats 'signal_avg_stats' 'signal_avg' rrdtool_gen_printHeader ${#graph_ds1} rrdtool_addCache "LINE1:signal_avg#FF0000:'$graph_ds1'" rrdtool_gen_printStats 'signal_avg_stats' } rrdtool_gen_params_umts_error() { graph_title="$_ERROR_title" graph_unit="$_ERROR_unit" graph_fmt="%4.1lf" local graph_ds1="$_ERROR_ds1" rrdtool_addCache "-t '$graph_title' -v '$graph_unit'" rrdtool_addCache "DEF:error_avg=$rrdFile:error:AVERAGE" rrdtool_addCache "DEF:error_min=$rrdFile:error:MIN" rrdtool_addCache "DEF:error_max=$rrdFile:error:MAX" rrdtool_gen_defStats 'error_avg_stats' 'error_avg' rrdtool_gen_printHeader ${#graph_ds1} rrdtool_addCache "LINE1:error_avg#FF0000:'$graph_ds1'" rrdtool_gen_printStats 'error_avg_stats' }