History / Status

  • DONE

Introduction

This HOWTO describes setting up a dedicated linux server for SNMP management. The setup is based on Cacti.

Setting Up The Base Server

  • For a dedicated server running on the bare metal start with the base server setup for fedora core 5.
  • For a xen guest start with the Xen guest base server for fedora core 5. Once you have the disk image you can copy it and create a new xen guest config file. Boot into the new guest and run setup. Be sure to assign a new ip address.

Instaall Softwre

  • First lets install cacti.
    > yum install cacti

Get the snmp utils.
> yum install net-snmp-utils

Configure Cacti

The apache config file for cacti only allows connections from the local host. We want to allow connections from the local network. Edit cacti.conf all access from the local network.
> nano -w /etc/httpd/conf.d/cacti.conf

Next we need to setup some basic mysql settings.
> /usr/bin/mysql -p -u root
mysql> create database cactidb;
mysql> grant all on cactidb.* to root;
mysql> grant all on cactidb.* to root@localhost;
mysql> grant all on cactidb.* to cactiuser;
mysql> grant all on cactidb.* to cactiuser@localhost;
mysql> set password for cactiuser@localhost=password('cactipass');
mysql> exit;

Now edit /usr/share/cacti/include/db.php and enter your database information.

We need the tar file of cacti. The rpm did not include cacti.sql.
> wget http://www.cacti.net/downloads/cacti-0.8.6h.tar.gz
> tar -xzvf cacti-0.8.6h.tar.gz

Change into the cacti directory and execute the following.
/usr/bin/mysql -p -u root cactidb < cacti.sql

Now load up the cacti web page and follow the instructions.

Conclusion

That's the complete setup. Be sure to read the documentation at the cacti website.

Links

cacti - http://www.cacti.net

Comments

Add Comment 
Sign as Author 
Enter code 385

Nene?06 April 2013, 01:58

रतन ज ,बह त स र धन यव द!अभ म स क ल यह आ रह ह क ड र मव वर, आद म ल खन पर ????????? बन ज रह ह ईसक ठ क करन क क स स कर रह ह :) FTP access?

flifrdaq?27 August 2011, 01:25

hkdjdO <a href="http://ciabxxiowayy.com/">ciabxxiowayy</a>

plague?02 November 2009, 14:45

I found no /usr/share/cacti after installing

James Curtis?01 December 2008, 10:03

The line that reads: "Now edit /usr/share/cacti/include/db.php and enter your database information" Should read: "Now edit /usr/share/cacti/include/config.php and enter your database information

There is commented info in the db.php that states not to edit db.php, but config.php instead

FYI, this walkthrough also works on Fedora 10, but be sure and download the correct version tar file

salin?29 December 2007, 15:36

how about configurasi php thank


Custom Search