Cacti migration

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
LinuxLoader
Posts: 15
Joined: Fri Mar 17, 2006 9:43 am

Cacti migration

Post by LinuxLoader »

I want to migrate one cacti server to other clean install . Don`t want to keep the rra files , just want to export hosts , and witch graphs are created for every one hosts , scripts and other things are easy part.
Some suggestions.
[quote][b]Cacti Version[/b] - 0.8.7e
[b]Plugin Architecture[/b] - 2.5
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.31-gentoo-r6monitoring
[b]Web Server[/b] - Apache
[b]PHP[/b] - 5.2.11-pl1-gentoo
[b]PHP Extensions[/b] - date, libxml, openssl, pcre, zlib, bcmath, bz2, curl, dba, dom, ftp, gd, gettext, hash, iconv, mbstring, mcrypt, mysql, SimpleXML, SPL, PDO, posix, Reflection, session, pdo_mysql, snmp, soap, sockets, standard, xml, xmlreader, xsl, zip, apache2handler, yaz
[b]MySQL[/b] - 5.0.84
[b]RRDTool[/b] - 1.2.30
[b]SNMP[/b] - 5.4.2.1
[b]Plugins[/b][list]PHP Network Weathermap (weathermap - v0.96)
Host Info (hostinfo - v0.2)[/list][/quote]
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Simply export the database then - it contains all the information you need to regenerate the rrd files, and Cacti will regenerate the missing rrd files on the new box.

Ensure that you sync your resource and scripts directories and you should be good to go.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

I did this (see moving cactis post from 13.1).

But the RRDs are not recreated in my case.

rra is drwxrwxrwx also log.

Log looks fine.
No Errors.

Any idea?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Have you rebuilt the poller cache?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

Yes and No.

I replaced the path with the path I want and uploaded the mysql-dump.

The problem is that if I rebuild the poller_cache the cactis lib/utility.php
replaces my path with the $cacti_base/rra path...

Its not my idea of fun touching php-code so I placed a link.
This is even simpler....

I guess witness should do something about the path handling in cacti.
Actuelly I have to grep -R oldpath, replace the path in 2 cacti configfiles and every plugin-config, and in the poller_item table and in the settings table...

It would be create to change rra and script-path in the gui or during setup..
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests