sudo apt update && sudo apt upgrade -y
sudo apt-get install git ssh snmp snmpd gufw lvm2 net-tools perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python curl -y
 
wget http://archive.ubuntu.com/ubuntu/pool/universe/c/cacti/cacti_1.2.10+ds1-1ubuntu1_all.deb
sudo dpkg --install cacti_1.2.10+ds1-1ubuntu1_all.deb

Firewall Configuration

sudo ufw allow http
sudo ufw allow 22
sudo ufw allow 161
sudo ufw status verbose


Other Commands

Reset admin Password
                    sudo mysql
                    connect cacti
                    update user_auth set password=md5('fla$hgordon2010') where username='admin';
                    exit
                

Documentation

https://www.cacti.net