Date post: | 26-Dec-2015 |
Category: |
Documents |
Upload: | hollie-linette-edwards |
View: | 218 times |
Download: | 0 times |
Cacti
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
Install
#apt-get install cacti
#groupadd cacti
#useradd -g cacti cacti
#cd /var/lib/cacti
#chown -R cacti rra/ log/
Configure MySQL
#mysql -u root If necessary create a password for your mysql root account.
mysql>SET PASSWORD FOR root@localhost = PASSWORD ('your_password_here');
mysql>FLUSH PRIVILEGES; Create the database :
mysql>CREATE DATABASE cacti;mysql>GRANT ALL ON cacti.* TO cacti_user@localhost IDENTIFIED BY‘ ‘your_password_here’;
mysql>FLUSH PRIVILEGES;quit
Include/config.php
/* make sure these values reflect your actual database/host/user/password */
$database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "your_password"; $database_port = "3306";
Add a crontab
#su – cacti
$crontab -e add this line to your crontab
# m h dom mon dow command*/5 * * * * /usr/bin/php -q /usr/share/cacti/site/poller.php > /dev/null
2>&1
Prerequisites for adding a host
Make sure to at least have the following : Hostname IP Version set to v2 (remember snmp lesson) The right snmp community