본문 바로가기

Server Story..../ubuntu

모티터링 툴 cacti 설치 1

  1.  MySQL, APACHE2, PHP, RRDTool, NET-SNMP) 순으로 미리 설치해둔다.

  2. Download the lastest file from http://cacti.net

  3. Extract the distribution tarball to an appropriate directory. ex)/usr/local/apache2/htdoc/

  4. shell> tar xzvf cacti-version.tar.gz
    
  5. Create the MySQL database:

    shell> mysqladmin --user=root -p create cacti
    
  6. Import the default cacti database:

    shell> mysql -u root -p cacti < cacti.sql
    
  7. 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;
    
  8. 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";
    
  9. 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.)

  10. 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.

  11. Point your web browser to:

    http://your-server/cacti/index.php

    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