DD2-monitor/rrdb/getvalues.sh

20 lines
251 B
Bash
Raw Normal View History

2019-01-04 02:26:46 +11:00
#!/bin/bash
source ./commun.sh
rrdtool fetch $RRDB LAST |
tr -d ':' |
awk '
(!/nan/ && NF==2) { print $1, $2 }
' \
> toto
gnuplot << __EOC__
set term png size 800,600
set output "graphe.png"
plot "toto" with lines
__EOC__
rm toto