As you should know RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. Use it to write your custom monitoring shell scripts or create whole applications using its Perl, Python, Ruby, TCL or PHP bindings.
This post will guide you to setup RRDtool 1.2.27 on your Linux server without pain 😉 I have tested this configuration on CentOS 4,5, RHEL 3,4
Before you start make sure you install the following apps:
- libart_lgpl-2.3.16-3
- libart_lgpl-devel-2.3.16-3
- zlib-1.2.1.2-1.2
- zlib-devel-1.2.1.2-1.2
- freetype-2.1.9-6.el4
- freetype-devel-2.1.9-6.el4
- libpng-1.2.7-3.el4_5.1
- libpng-devel-1.2.7-3.el4_5.1
Use the power of yum to get them on your system… if you ran into trouble then you shouldn’t continue unless you get someone to fix your mess 😛
Now, you need to download and install RRDtool
cd /usr/local/src
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.27.tar.gz
tar -zxf rrdtool-1.2.27.tar.gz
cd rrdtool-1.2.27
./configure --disable-tcl
# if you get an error while configuring make sure you read
# what caused that, and try to fix it
make
make install
ln -s /usr/local/rrdtool-1.2.27/bin/rrdtool /usr/bin/rrdtool
ln -s /usr/local/rrdtool-1.2.27/bin/rrdupdate /usr/bin/rrdupdate
ln -s /usr/local/rrdtool-1.2.27/bin/rrdcgi /usr/bin/rrdcgi
Was that hard? I don’t think so, actually it was pretty easy and now you can start coding your own graphs 😀
You need to start diggin’ the Tutorials, Documentation and Wiki provided by Tobias Oetiker in order to start with your own cool graphs, and remember, RRDtool is FREE and if it helps you and saves you time/money you should really consider make Tobi happy 😉
I’ll be posting later some basic examples for RRDtool graphs and other scripts, be patient 🙂