DD2-monitor/rrdb/create.sh
2019-01-03 16:26:46 +01:00

21 lines
260 B
Bash
Executable File

#!/bin/bash
#
# creating the test database
#
source ./commun.sh
starttime=$(date +'%s')
echo creating $RRDB at ${starttime}s since epoch
rrdtool create $RRDB \
--start $starttime \
--step 60 \
DS:value:GAUGE:150:0:10 \
RRA:AVERAGE:0.5:1:60