rrdb : improving doc and code

This commit is contained in:
2019-01-03 17:05:55 +01:00
parent 8fd8381fc3
commit 5aa3f73daa
2 changed files with 70 additions and 6 deletions

View File

@@ -2,18 +2,24 @@
source ./commun.sh
tmpf="somevalues.dat"
rrdtool fetch $RRDB LAST |
tr -d ':' |
awk '
(!/nan/ && NF==2) { print $1, $2 }
' \
> toto
> ${tmpf}
#
# as an example, we are gnuploting our datas
#
gnuplot << __EOC__
set term png size 800,600
set output "graphe.png"
plot "toto" with lines
set grid
plot "${tmpf}" with lines
__EOC__
rm toto
rm ${tmpf}