rrdb : improving doc and code
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user