DD2-monitor/rrdb/create.sh

21 lines
260 B
Bash
Raw Normal View History

2019-01-04 02:26:46 +11:00
#!/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