Cacti is an open-source web-based tool used for monitoring and graphing network devices and servers. This tutorial will guide you through the process of installing Cacti on Kali Linux latest.
Before installing Cacti, you need to install some packages that are required for Cacti to run correctly. Open the terminal and run the following command to install the required packages.
sudo apt-get update
sudo apt-get install apache2 php php-mysql libapache2-mod-php php-xml php-gd mysql-server mysql-client snmp snmpd rrdtool librrds-perl libmysqlclient-dev
http://www.cacti.net/downloads/cacti-X.XX.XX.tar.gz
. Replace the Xs with the latest version number.sudo tar xzf cacti-X.XX.XX.tar.gz -C /var/www/html/
sudo mv /var/www/html/cacti-X.XX.XX /var/www/html/cacti
sudo chown -R www-data:www-data /var/www/html/cacti
mysql -u root -p
CREATE DATABASE cacti;
GRANT ALL PRIVILEGES ON cacti.* TO 'newuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
mysql -u newuser -p cacti < /var/www/html/cacti/cacti.sql
sudo nano /var/www/html/cacti/include/config.php
/* Database type to be used */
$database_type = "mysql";
/* Database default connection */
$database_default = "cacti";
/* Database hostname (or IP address) */
$database_hostname = "localhost";
/* Database username */
$database_username = "newuser";
/* Database password */
$database_password = "password";
sudo crontab -e -u www-data
*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1
http://localhost/cacti/
.Congratulations! You have successfully installed Cacti on Kali Linux Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!