MySQL, APACHE2, PHP, RRDTool, NET-SNMP) 순으로 미리 설치해둔다.
Download the lastest file from http://cacti.net
Extract the distribution tarball to an appropriate directory. ex)/usr/local/apache2/htdoc/
shell> tar xzvf cacti-version.tar.gz
Create the MySQL database:
shell> mysqladmin --user=root -p create cacti
Import the default cacti database:
shell> mysql -u root -p cacti < cacti.sql
Optional: Create a MySQL username and password for Cacti.
shell> mysql --user=root mysql mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; mysql> flush privileges;
Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
$database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cacti";
Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.
shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser /usr/local/bin/php /(CACTI DIRECTORY)/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
Point your web browser to:
Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen. ( 계속...)
[출처] Cacti 설치 (1)|작성자 헬파이어
'Server Story.... > ubuntu' 카테고리의 다른 글
우분투 su 암호변경 (0) | 2010.12.09 |
---|---|
모티터링툴 cacti 설치 2 (0) | 2010.10.09 |
우분투 gui 설정 관련 (0) | 2010.10.01 |
Dos 공격 자체 방어, 소프트웨어 아파치 (0) | 2010.09.30 |
우분투 dns 설정 (0) | 2010.09.27 |