aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/rrdtool.md
blob: 05cc0b16d46a40f53d530a1effce6d6472445e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: "rrdtool"
date: 2018-09-25
description: How to graph manually with rrdtool
tags:
  - simple utilities
---

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