Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #http://openmaniak.com/cacti_tutorial.php
- ***INSTALL CACTI WITH APT-GET
- apt-get install cacti
- dpkg-reconfigure cacti
- ***MANUAL INSTALL OF CACTI
- #Download Catci at http://www.cacti.net
- #uncompress the tar.gz file
- tar -xvf cacti-0.8.6h.tar.gz
- mv /home/po/Desktop/cacti /var/www/
- mysqladmin -u root -p create cacti
- mysql -u root -p cacti < /var/www/cacti/sql/cacti.sql
- mysql -u root -p cacti
- mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';
- mysql>flush privileges;
- mysql>exit
- nano /var/www/cacti/include/config.php
- $database_type = "mysql";
- $database_default = "cacti";
- $database_hostname = "localhost";
- $database_username = "cactiuser";
- $database_password = "cactiuser";
- $database_port = "3306";
- useradd cacti -d /var/www/cacti/ -s /bin/false
- chown -R cacti /var/www/cacti/
- #Run the php script every 5 minutes
- crontab -e -u cacti
- */5 * * * * php5 /var/www/cacti/poller.php > /dev/null 2>&1
- /etc/init.d/apache2 restart
- http://your_ip_address/cacti
- #Use "admin" as the default login and password.
Advertisement
Add Comment
Please, Sign In to add comment