Batch load of the complete configuration

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
new
Posts: 23
Joined: Mon Dec 10, 2007 10:37 am

Batch load of the complete configuration

Post by new »

We installed Cacti on the a new Server. Is it possible to load all the configuration from the old machine (devices, graphs, users, etc) on the new server?
bfek-18
Posts: 24
Joined: Mon Oct 27, 2003 9:13 am
Location: Germany, Potsdam

Post by bfek-18 »

Hallo new,

yes thats possible

scp -r <cacti path> <new host>:<new path>
mysql dump > <file>.sql

#new Host
mysql < <file>.sql # like mysqlphpbak-0.1.1

bye
new
Posts: 23
Joined: Mon Dec 10, 2007 10:37 am

Post by new »

Thanks you very much. We'll try it.
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Depending on the hardware change you may not be able to easily move the rrd files. You may have to dump them to xml and then back.
new
Posts: 23
Joined: Mon Dec 10, 2007 10:37 am

Post by new »

Hello,

I tried to move all the configurations and rrd to the new system, everything seems to be OK, but the polling is not working! I also cannot compile cactid with an error message "MySQL libraries not found", although the libraries ARE THERE! The cactid version is different on the new server. It there something in the database where is remembered the version of cactid?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may have to add a configure option for mysql-devel packages to make cactid successfully
Reinhard
new
Posts: 23
Joined: Mon Dec 10, 2007 10:37 am

Post by new »

gandalf wrote:You may have to add a configure option for mysql-devel packages to make cactid successfully
Reinhard
Thank you very much for your reply! In fact, we don't have mysql-devel installed on the server. Maybe you know where could I download some version of it that would be compatible with our mysql version 8.41?

Many thanks in advance!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

which operating system are you using ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
new
Posts: 23
Joined: Mon Dec 10, 2007 10:37 am

Post by new »

We use Linux. Now cactid is working, the problem was that the mysql libraries were in some directory not under /usr. But we still did not install mysql-devel. Will cactid work correctly without it, or is it still necessary to install it?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

IMHO, if you managed to build cactid, then it will run.

Can you post this :

Code: Select all

$ ldd /path/to/cactid/bin/cactid
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest