2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
title: "rrdtool"
|
|
|
|
date: 2018-09-25
|
2021-03-11 19:47:26 +01:00
|
|
|
description: How to graph manually with rrdtool
|
|
|
|
tags:
|
|
|
|
- simple utilities
|
2020-04-28 17:29:52 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
## Graph manually
|
|
|
|
|
|
|
|
{{< highlight sh >}}
|
|
|
|
for i in `ls`; do
|
|
|
|
rrdtool graph $i.png -w 1024 -h 768 -a PNG --slope-mode --font DEFAULT:7: \
|
|
|
|
--start -3days --end now DEF:in=$i:netin:MAX DEF:out=$i:netout:MAX \
|
|
|
|
LINE1:in#0000FF:"in" LINE1:out#00FF00:"out"
|
|
|
|
done
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
## References
|
|
|
|
|
|
|
|
- https://calomel.org/rrdtool.html
|