Debian Admin - Your way to Debian World

November 1, 2006

Cacti bandwidth monitoring tool in debian etch

by @ 2:03 pm. Filed under Monitoring

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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

Tags: , , , , , , ,

You may also be interested in...

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

  1. Admin Says:

    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. Andrew Says:

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

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.