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
URL Redirect PHP script for Horde October 12, 2008November 6, 2008 I nearly got mad implementing horde in virtualmin. Though this section will not tell how the Horde was setup. Anyways, HORDE needs to work under /horde framework. I know this can be fixed up in registry.php file and can be used as /groupware or something. Related Read More
MOTD with NeoFetch July 1, 2024July 3, 2024 Install NetoFetch First: sudo apt install neofetch sudo cp motd.sh /etc/profile.d/motd.sh sudo chmod +x /etc/profile.d/motd.sh Open the motd.sh filw using text editor and paste below: #!/bin/bash printf “\n” neofetch Exit from shell and re-login- Voila! Related Read More
How to set up a home DNS server March 28, 2011 Domain Name System The Domain Name System (DNS) is the crucial glue that keeps computer networks in harmony by converting human-friendly hostnames to the numerical IP addresses computers require to communicate with each other. DNS is one of the largest and most important distributed databases the world depends on… Read More