Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cacti 0.8 Network Monitoring

You're reading from   Cacti 0.8 Network Monitoring Monitor your network with ease!

Arrow left icon
Product type Paperback
Published in Jul 2009
Publisher Packt
ISBN-13 9781847195968
Length 132 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Dinangkur Kundu Dinangkur Kundu
Author Profile Icon Dinangkur Kundu
Dinangkur Kundu
S.M. Ibrahim Lavlu S.M. Ibrahim Lavlu
Author Profile Icon S.M. Ibrahim Lavlu
S.M. Ibrahim Lavlu
Arrow right icon
View More author details
Toc

Restoring from a backup


Now, it is time to restore your Cacti from the backup. Like the backup, the restore process also has two parts, first files and then the database. Before restoring it, we need to remove the old Cacti files:

$ rm rf /path/to/oldcacti

This command will remove old Cacti files, so be careful before doing this. Then, we will restore files:

$ cp a /path/to/backup/cacti /path/to/cacti

Your files are ready. Now, let's restore the database:

$ mysql ucacti pcacti987 cacti < cacti_xx_yy_zz.sql

This command will restore the database. You need to make sure that the MySQL server has a Cacti user with the appropriate password and also a blank database called cacti.

Our files and database are ready, now we have to create a cron job that will run poller.php every five minutes:

$ nano /etc/cron.d/cacti

And paste following text there:

*/5 * * * * www-data php /var/www/cacti/poller.php > /dev/null 2>&1

Now, open Cacti in your browser. If you are getting any MySQL related...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image