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

20 lines
251 B
Bash
Executable File

#!/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