#!/bin/sh #------------------------------------------------------------------------------ # OPT_RRDTOOL /etc/rrdtool/umts.rrd __FLI4LVER__ # Creation: 2010-04-20 gdw # Last Update: $Id$ # # rrdtool umts DB-erstellen #------------------------------------------------------------------------------ [ -z "$RDTOOL_CONF_LOADED" ] && . /var/run/rrdtool.conf . /etc/rrdtool/rrdtool-helper local source=umts eval local idx='$RRDTOOL_'$source'_ID' eval local options='$RRDTOOL_'$idx'_OPTIONS_STRING' for item in $options do local db_file=$RRDTOOL_DB_PATH/$source/$item.rrd if [ ! -f $db_file ] then echo 'creating new database for "'$source'" - "'$item'"' case "$item" in "signal") rrdtool create $db_file --step 60 \ DS:${item}:GAUGE:$heartbeat:U:U \ $rrdaverage $rrdmin $rrdmax ;; "error") rrdtool create $db_file --step 60 \ DS:${item}:GAUGE:$heartbeat:U:U \ $rrdaverage $rrdmin $rrdmax ;; esac else rrdheartbeat_change fi done