1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/sh
DTC_ETC=$1
# orig by Ralf Hildebrandt
# http://www.stahl.bau.tu-bs.de/~hildeb/postfix/queuegraph/
# modified by Damien Mascord for dtc
if [ -x /usr/bin/rrdtool ] ; then
RRDTOOL=/usr/bin/rrdtool
else
if [ -x /usr/local/bin/rrdtool ] ; then
RRDTOOL=/usr/local/bin/rrdtool
else
if [ -x /opt/local/bin/rrdtool ] ; then
RRDTOOL=/opt/local/bin/rrdtool
else
echo "Could not find the rrdtool binary in $0"
exit 1
fi
fi
fi
$RRDTOOL create $DTC_ETC/mailqueues.rrd --step 60 \
DS:active:GAUGE:900:0:U \
DS:deferred:GAUGE:900:0:U \
RRA:AVERAGE:0.5:1:20160 \
RRA:AVERAGE:0.5:30:2016 \
RRA:AVERAGE:0.5:60:105120 \
RRA:MAX:0.5:1:1440 \
RRA:MAX:0.5:30:2016 \
RRA:MAX:0.5:60:105120
|