Compile rrdtool and phprrd libraries

rrdtool

need c compiler and buidessential and so on
export BUILD_DIR=/tmp/rrdbuild
export INSTALL_DIR=/opt/rrdtool-1.4.5
Make build dir
 mkdir -p $BUILD_DIR
 cd $BUILD_DIR
get libraries and source
apt-get install libpango1.0-dev libxml2-dev
 wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz
 tar xvf rrdtool-1.4.5.tar.gz
 nano src/rrd_graphic
find and replace Oetiker with ""
 cd rrdtool-1.4.5
 ./configure --prefix=$INSTALL_DIR
make
make install
make a symlink
ln -s /opt/rrdtool-1.4.5/bin/rrdtool /usr/local/bin/rrdtool
rrdtool
RRDtool 1.4.5 Copyright 1997-2010 by Tobias Oetiker Compiled May 6 2012 12:59:50 Usage: rrdtool [options] command command_options Valid commands: create, update, updatev, graph, graphv, dump, restore, last, lastupdate, first, info, fetch, tune, resize, xport, flushcached RRDtool is distributed under the Terms of the GNU General Public License Version 2. (www.gnu.org/copyleft/gpl.html) For more information read the RRD manpages

php rrd libraries

apt-get install php5-cli php5-dev
mkdir -p /usr/include/php/ext/rrdtool
cd /usr/local/src/php-5.3.5/ext
wget http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tar.gz
tar -zxvf php_rrdtool.tar.gz
cd rrdtool
phpize
./configure --with-php-config=/usr/bin/php-config --with-rrdtool=/opt/rrdtool-1.4.5
make
make test
make install
You probably also need /snmp.so library
apt-get install php5-snmp
take a look at http://drupal.org/project/rrdtool

 

Hessen Kasselstraat 8
5615 SM Eindhoven
phone: +316-81888456