Tuesday, March 27, 2012

RRDtool 1.4.7 in ubuntu 10.04

Install RRDtool
Run the following commands as superuser:
sudo su
apt-get install libpango1.0-dev libxml2-dev
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
tar -zxvf rrdtool-1.4.7.tar.gz
cd rrdtool-1.4.7
mkdir /tmp/rrdbuild
export BUILD_DIR=/tmp/rrdbuild
mkdir /opt/rrdtool-1.4.7
export INSTALL_DIR=/opt/rrdtool-1.4.7
./configure –prefix=$INSTALL_DIR ; make ; make install
RRDtool is now installed in /opt/rrdtool-1.4.7

Setting up php5-RRDtool bindings
apt-get install php5-cli php5-dev
mkdir -p /usr/local/src/php-5.3.5/ext
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-rrdtool=/opt/rrdtool-1.4.7 –with-php-config=/usr/bin/php-config
Make
make install
In /etc/php5/cli/php.ini, scroll down to “Dynamic Extensions” and add this line:
extension=rrdtool.so
Make sure there’s no PHP warning or error:
php -v
To confirm module is loaded, find rrdtool from the output of:
php –m

Reconfigure Cacti.
Click console- settings, in generals tab, make sure RRDTool Utility Version is 1.4x. And in path tabs, RRDTool Binary Path = /opt/rrdtool-1.4.7/bin/rrdtool
Cacti - settings


source : http://www.jaredlog.com/?p=1308 

3 comments:

  1. Heya i am for the first time here. I came across this board and I find It truly useful &
    it helped me out a lot. I hope to give something back and aid others like you aided
    me.

    Also visit my web page ... Struktur Dasar PHP

    ReplyDelete
  2. They may have aging computers stuffed to the rafters with seven years of family photos,
    music downloads and game software. Simply stated, there
    are two primary reasons you should update your site regularly:
    . It is a complex discipline incorporating multiple skills, and
    it is the consultant only who is capable enough to tap existing algorithm and
    that are going to get changed over time.

    Feel free to visit my weblog - marketing online service

    ReplyDelete
  3. I am a bit lost.
    I installed rrdtool in ubuntu using
    sudo apt-get install rrdtool
    mrtg is already installed and working fine. I want to convert the mrtg files into rrdtool. How do i go about it. The installations are in their default location and i dont know the files are located as this setup is totall different from the one in the documentation.
    How do i configure the cgi scripts.
    help !! help!!

    ReplyDelete