Nov 012006
 

Sponsored Link

Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.


Requirements for Cacti

Apache Web server

RRDTool 1.0.48 or greater

MySQL 3.23 or greater, 4.0.20d or greater highly recommended for advanced features

PHP 4.1 or greater, 4.3.6 or greater highly recommended for advanced features

net-snmp

Before installing cacti you need to install mysql server and all other requirements will be installed at the time of cacti installation

Install Mysql Server Debian Etch

#apt-get install mysql-server

Install cati in Debian Etch

#apt-get install cacti

This will starts the cacti installation and the first screen you can see the include path for php hasebeen changed

Next Option is you want to configure database for cacti select yes and press enter

Enter the password for your database administrative user by default no password select ok and press enter

Now you need to enter the mysql database password for cacti select ok and press enter

Select your webserver type and i have selected apache2 select ok and press enter

Thats it this will complete the cacti installation.

Configuring Cacti

Now you need to go to http://yourserverip/cacti/ for configuring cacti

You should see the following screen and here you need to click on next

Next option is you need to select your cacti installation type i have selected as new install and click next

Now this will show you all the required packages are installed and you can see with [FOUND] in green colour.If there is any problem this will turn in to red you need to check that and once everything is fine click finish

Now you can see the cacti login screen as follows

Here you need to use admin/admin as username and password to login once you enter this it will prompt for change the admin user password for security reasons and click save

Once you entered in to cacti you should see the following screen

Now your basic cacti installation ready for use.You can check cacti documentation for how to use cacti.

If you are looking for complete list of cacti templates and scripts check here

Possible Errors and Solution

Error

Fatal error: Call to undefined function: mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 367

Solution

#dpkg-reconfigure php4-mysql

Run as root and then select Yes to the Should MySQL be added to /etc/php4/(cli|cgi)/php.ini

Restart the apache server using the following command

#/etc/init.d/apache2 restart

Sponsored Link

 Posted by at 2:03 pm

  6 Responses to “Cacti bandwidth monitoring tool in debian etch”

  1. Comment from Tom Lobato

    It`s worth to comment that the error:

    —————————————————–
    mobile:~# php /usr/share/cacti/site/poller.php

    Fatal error: Call to undefined function: mysql_pconnect() in
    /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 367
    —————————————————–

    is not solved in debian etch (at least) with the instruction above. I had to tell
    php CLI to load mysql.so to get it working.
    In my case, I created the file /etc/php5/cli/conf.d/mysql.ini and added the line:

    extension=mysql.so

    Remember, “your mileage may vary”, maybe you have to add this line in another file,
    study your distribution and version.

    After this, I get:

    —————————————————–
    mobile:~# php /usr/share/cacti/site/poller.php
    01/07/2008 05:18:55 PM – SYSTEM STATS: Time:1.0205 Method:cmd.php Processes:1
    Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
    OK u:0.00 s:0.00 r:0.00
    OK u:0.00 s:0.00 r:0.00
    OK u:0.00 s:0.00 r:0.00
    OK u:0.00 s:0.00 r:0.00
    OK u:0.00 s:0.00 r:0.00
    COAN coan:~#
    —————————————————–

    and the graphs appears nicely, so my customer can smile happy =)

  2. i’m fix this error via “apt-get install php5-cli”

  3. # Andrew Says:
    February 12th, 2008 at 12:19 pm

    i’m fix this error via “apt-get install php5-cli”

    It’s work.
    Thank.

  4. i wants to know minimum hardware requirement for cacti installation

  5. The hardware requirements are very minimal.. a SNMP query is an extremely easy task to do. There is very little SQL work being done; the only CPU or memory intensive operation is when a client is viewing graphs.

    My Cacti box is a (Linux) machine with dual 600mhz CPUs, and 256MB ram.

  6. Thanks a lot for a nice quide!

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>