About RRDtool Tobias Oetiker OETIKER+PARTNER AG
Monday Morning
8 am
I‘m reading my mail
Riiing!
Boss calls!
Boss, so early ???
OETIKER! That server is extremely slow again today. Got to finish this presentation. My plane leaves in 90 Minutes. You really disappoint me here with that broken infrastructure of yours. I trusted you! This has got to change. When I’m back I want a full report and a plan on how you are going to fix this f&*ing mess.
The
Boss
is
back in
3 Days
OH
MY
GOD!
The therapy
was in vain
the nightmare
is
back !
breathe
organize
Approach: 1.Collect data 2.Identify bottleneck 3.Resolve problem
That would be too easy!
repeat
Approach: 1.Collect data 2.Identify bottleneck 3.Present analysis 4.Propose solution 5.Organize financing 6.Resolve problem
My proposal has
to be
simple
and
clear
greylisting introduced - spam drastically reduced
RRDtool helps
Use RRDtool keep the initiative make your boss look good all at the same time …
An Image
says
more
than
1’000 words
VLANs intoduced – Latency only marginally increased
.
What remains
is the question
what can RRDtool do?
ok
RRDtool: stores & presents data
RRD is the
Round Robin Database
Just feed it your data …
rrdtool update x.rrd N:2.3
Several rotating fixed size data stores.
The older that data, the less interesting it is.
Old
data
has to
go.
RRDtool is fast.
Hundreds of updates a second.
All well.
But
you
can‘t
sell
that.
Visualization
makes data accessible.
anti-aliasing
alpha transparency
PNG
EPS
SVG
TrueType Fonts
.
A few lines of code
rrdtool \ graph \ file.png \ DEF:x=my.rrd:in:AVERAGE \ LINE1:x#ff0000:Input
generate
Massage Data with RPN (1,3,+)
A few lines of code …
rrdtool \ graph \ file.png \ DEF:x=my.rrd:in:AVERAGE \ CDEF:y=x,8,* \ LINE1:y#ff0000:Input8
Use RRDtool from …
Shell Scripts
Perl
Python
TCL
PHP
Ruby
Java
A few lines of code …
rrdtool \ graph \ file.png \ DEF:x=my.rrd:in:AVERAGE \ LINE1:x#ff0000:Input
And
in
reality?
A Mail server …
big responsibility
must work at all times
huge log files
Log files
are
not
sexy
MailGraph by David Schweikert +Viren, +Spam March Lines 3 Forks What does my Mailserver do? Trends? November 2000: 300 Lines
Another Example
February 2001
finally DSL
long time ago
but all the same
performance
was
bad
ISP
did
not
Believe me!
so I wrote …
SmokePing by Tobi Oetiker My DLS-Line didn’t work. Nov 2001 / 1500 l. 1 Plug-in +Alarms, +Graphexplorer July 2007 / l. 26 Plug-ins
RRDtool is … fast powerful configurable versatile gnu-ish free colorful transparent simple and complex anti-aliased multi-platform open-source scriptable presentation-save an industry standard … for you too!
Tobias Oetiker OETIKER+PARTNER AG