CentOS 5
Sponsored Link

Install Cacti
  Install Cact, and others for dependency. Furthermore, httpd and PHP and MySQL are also needed. Please reffer Links and Install them too.

# install from DAG

[root@www ~]#
yum --enablerepo=dag -y install cacti* net-snmp* rrdtool

[root@www ~]#
vi /etc/snmp/snmpd.conf

# line 41: make it comment

com2sec notConfigUser default public

# line 42: add

com2sec local localhost private
# specify own networks

com2sec mynetwork public

# line 48,49: make it comment and add lines next

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup v1 local
group MyROGroup v2c local

# line 59,60: make it comment and add lines next

view systemview included .
view systemview included .
view all included .1 80

# line 66: make it comment and add lines next

access notConfigGroup "" any noauth exact systemview none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

[root@www ~]#
/etc/rc.d/init.d/snmpd start

Starting snmpd:
[  OK  ]

[root@www ~]#
chkconfig snmpd on

[root@www ~]#
mysqladmin -u root -p create cacti
# create DB

Enter password:
[root@www ~]#
mysql -p cacti < /var/www/cacti/cacti.sql
# import DB

Enter password:
[root@www ~]#
mysql -u root -p
# login to MySQL

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

# set password for cactiuser

grant all on cacti.* to cactiuser@localhost identified by 'password';

Query OK, 0 rows affected (0.00 sec)



[root@www ~]#
vi /var/www/cacti/include/config.php

# change cactiuser's password

$database_password = "

[root@www ~]#
chown -R apache. /var/www/cacti

[root@www ~]#
vi /etc/httpd/conf.d/cacti.conf

# line 8: IP address you allow

allow from

[root@www ~]#
/etc/rc.d/init.d/httpd reload

Reloading httpd:     [  OK  ]