#!/bin/sh #------------------------------------------------------------------------------ # OPT_EMBEDDED /etc/rrdtool/wrap.rrd __FLI4LVER__ # Creation: 2005-12-23 gdw # Last Update: $Id$ # # rrdtool WRAP DB-erstellen #------------------------------------------------------------------------------ [ -z "$RDTOOL_CONF_LOADED" ] && . /var/run/rrdtool.conf . /etc/rrdtool/rrdtool-helper local source=wrap 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 "temperature") rrdtool create $db_file --step 60 \ DS:${item}-cpu:GAUGE:120:U:U \ RRA:AVERAGE:0.5:1:2160 \ RRA:AVERAGE:0.5:5:2016 \ RRA:AVERAGE:0.5:15:2880 \ RRA:AVERAGE:0.5:60:8760 \ RRA:MIN:0.5:1:2160 \ RRA:MIN:0.5:5:2016 \ RRA:MIN:0.5:15:2880 \ RRA:MAX:0.5:1:2160 \ RRA:MAX:0.5:5:2016 \ RRA:MAX:0.5:15:2880 ;; esac else rrdheartbeat_change fi done