diff --git a/rrdb/README.md b/rrdb/README.md index 1caad84..1350fad 100644 --- a/rrdb/README.md +++ b/rrdb/README.md @@ -15,6 +15,7 @@ Un petit peu de code fabriqué à la rache. - `create.sh` - `update.sh` - `getvalues.sh` +- `mkgraph.sh` Suffisant pour comprendre le principe général, mais très flou sur les détails. diff --git a/rrdb/mkgraph.sh b/rrdb/mkgraph.sh new file mode 100755 index 0000000..5354f9c --- /dev/null +++ b/rrdb/mkgraph.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source ./commun.sh + +rrdtool graph value.png \ + --start 0 --end now \ + -w 800 -h 600 \ + DEF:value=${RRDB}:value:LAST \ + LINE1:value#0000FF + +