#!/bin/sh #------------------------------------------------------------------------------ # OPT_RRDTOOL /etc/rrdtool/ping6.params __FLI4LVER__ # Creation: 2008-02-17 Joe # Last Update: $Id$ #------------------------------------------------------------------------------ RRDTOOL_PARAMS_LOADED_ping6='yes' local graph_title= local graph_unit= local graph_fmt= rrdtool_gen_params_ping6() { graph_title="$_PING6_title" graph_unit="$_PING6_unit" graph_fmt="%3.0lf %s" local graph_ds1="$_PING6_ds1" local graph_ds2="$_PING6_ds2" local graph_ds3="$_PING6_ds3" rrdtool_addCache "-c BACK#eeeeee -l 0" rrdtool_addCache "-t '$graph_title' -v '$graph_unit'" rrdtool_addCache "DEF:graph_avg_min=$rrdFile:min:AVERAGE" rrdtool_addCache "DEF:graph_avg_avg=$rrdFile:avg:AVERAGE" rrdtool_addCache "DEF:graph_avg_max=$rrdFile:max:AVERAGE" rrdtool_gen_defStats 'min' 'graph_avg_min' 'avg' 'graph_avg_avg' 'max' 'graph_avg_max' rrdtool_gen_printHeader ${#graph_ds1} rrdtool_addCache "AREA:graph_avg_max#FF0000:'$graph_ds1'" rrdtool_gen_printStats 'max' rrdtool_addCache "AREA:graph_avg_avg#FF9900:'$graph_ds2'" rrdtool_gen_printStats 'avg' rrdtool_addCache "AREA:graph_avg_min#FFFF00:'$graph_ds3'" rrdtool_gen_printStats 'min' rrdtool_addCache "LINE1:graph_avg_max#FF0000" rrdtool_addCache "LINE1:graph_avg_avg#FF9900" rrdtool_addCache "LINE1:graph_avg_min#FFFF00" }