Upgrading Cacti Rumi, September 4, 2011 Backup the old Cacti database. shell> mysqldump -l --add-drop-table cacti > mysql.cacti Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup. Backup the old Cacti directory. shell> mv cacti cacti_old Extract the distribution tarball. shell> tar xzvf cacti-version.tar.gz Rename the new Cacti directory to match the old one. shell> mv cacti-version cacti Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration. $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cacti"; Copy the *.rrd files from the old Cacti directory. shell> cp cacti_old/rra/* cacti/rra/ Copy any relevant custom scripts from the old Cacti directory. Some script are updated between versions. Therefore, make sure you only over write if the scripts either don't exist or are newer than the distribution's. shell> cp -u cacti_old/scripts/* cacti/scripts/ Copy any relevant custom resource XML files from the old Cacti directory. Some resource XML files are updated between versions. Therefore, make sure you only over write if the XML files either don't exist or are newer than the distribution's. shell> cp -u -R cacti_old/resource/* cacti/resource/ 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.) Point your web browser to: http://your-server/cacti/ Follow the on-screen instructions so your database can be updated to the new version. Related Administrations Configurations (Linux) CactiRRD
Installing Squish November 9, 2008November 9, 2008 Well, install squint is quite simple! But installing squish is quite tricky- the document provided is not sufficient to cover few steps. I’ll try to summerize it (I’ve tested it on FC-5 distro)- Step -1 Make backup of your squid.conf for in case things go wrong. Install perl GD module…. Read More
Debian 7 wheezy – Certbot auto started failing with ’ No module named pip.__main__’ February 9, 2020 If you’re using Debian 7 a.k.a wheezy which is end of life at this moment and you were using Let’s Encrypt was your SSL, then you might need some backward compatibility to continue. A possible work around for me as below: wget https://raw.githubusercontent.com/certbot/certbot/75499277be6699fd5a9b884837546391950a3ec9/certbot-auto chmod +x ./certbot-auto ./certbot-auto –no-self-upgrade For renewing… Read More
Creating Nginx Virtual Hosts May 20, 2017 Step One— Create a New Directory The first step in creating a virtual host is to a create a directory where we will keep the new website’s information. This location will be your Document Root in the nginx virtual configuration file later on. By adding a -p to the line… Read More