Install Cacti

INSTALL CACTI


Cacti requires that the following software is installed on your system.
• RRDTool 1.0.49 or 1.2.x or greater
• MySQL 3.23 or greater, 4.0.20d or greater highly recommended for advanced features
• PHP 4.1 or greater, 4.3.6 or greater highly recommended for advanced features
Packages for RPM-based Operating Systems
• httpd
• php
• php-mysql
• php-snmp
• mysql
• mysql-server
• net-snmp


Install RRDTool (supaya bisa menampilkan grafik) :
10. Download file rrdtool.tar.gz
shell> wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz
10. Extract the distribution tarball
shell> tar –xvzf rrdtool.tar.gz
10. Install RRDTool
shell> cd rrdtool-1.2.23/
shell> ./configure --disable-tcl
shell> make
shell> make install
10. Create a symlink for RRDTool
shell> ln –s /usr/local/rrdtool-1.2.23/bin/rrdtool /usr/local/bin/rrdtool


Install Cacti :
1. Download file cacti-0.8.6j.tar.gz di http://www.cacti.net/downloads/cacti-0.8.6j.tar.gz
2. Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
3. Create the MySQL database:
shell> mysqladmin --user=root create cacti
4. Import the default cacti database:
shell> mysql cacti <> mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
mysql> flush privileges;
6. 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";
7. 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.)
8. Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/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.
9. Point your web browser to:
http://your-server/cacti/
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


10. Install cacti-plugin-arch
- tar -zxvf cacti-plugin-arch.tar.gz
- cp cacti-plugin-arch/cacti-plugin-0.8.6j.diff /var/www/html/cacti/
- cd /var/www/html/cacti/
11. Now, let's test the patch to ensure that everything is set up properly by performing a dry run on the patching process. You do this, by issuing the command:
- patch -p1 -N --dry-run < cacti-plugin-0.8.6j.diff
12. If no errors are returned, let's go ahead and patch Cacti. Issue the following command to do so:
- patch -p1 -N < cacti-plugin-0.8.6j.diff
13. Edit config.php to set the proper URL path and user settings
- vi /var/www/html/cacti/include/config.php
- add line $config['url_path'] = '/cacti/'; in config.php file and save it
14. Adding cacti plugin
- Threshold
1. tar –zxvf thold-0-3-9.tar.gz
2. cp –Rf thold /var/www/html/cacti/plugins
3. vi /include/global.php
4. add line $plugins[] = 'thold'; in below this line $plugins = array(); and save it.
5. for another plugin, the steps is the same.

- Setting
1. tar –zxvf settings-0.4.tar
2. cp –Rf settings /var/www/html/cacti/plugins
3. vi /include/global.php
4. add line $plugins[] = 'settings'; in below this line $plugins = array(); and save it.
5. for another plugin, the steps is the same.
15. Browse to http://servername/cacti, login with username admin and password admin.
16. Click User Management, then choose admin in right side. In the session Realm Permissions, check View Thresholds and click Save button.

Tidak ada komentar:

Posting Komentar