From Campworld

LinuxServersF8: HOWTO Cacti Network Management Server on Fedora 8

History / Status

Introduction

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

Setting Up The Base Server

Instaall Softwre

One quick yum line will get everything we need.
> yum install cacti 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.

Now we need to create the database tables.
> mysql -p -u root cactidb < /usr/share/doc/cacti-0.8.6j/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

Rony?26 July 2009, 15:10

very good presentation,i have a question what must be the output of db.php and config.php files, thank you

Retrieved from http://www.campworld.net/thewiki/pmwiki.php/LinuxServersF8/F8NetManagementServer
Page last modified on July 26, 2009, at 03:10 PM