transfer Cacti to another system

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

Moderators: Developers, Moderators

Post Reply
moty119
Posts: 4
Joined: Wed Dec 22, 2010 12:40 am

transfer Cacti to another system

Post by moty119 »

hi
i want to transfer all of things (e.g. all graph templates, host templates, data templates, data queries and graphs) that maked in cacti of my system , to another system that installed on cacti. without use Import & Export!!
what way to do this?
Alphadog
Posts: 38
Joined: Tue Aug 04, 2009 12:58 am
Location: Bavaria near Germany

Re: transfer Cacti to another system

Post by Alphadog »

you need to :

1. export your mysql Database (e.g. with phpmyadmin)
2. COPY your cacti Folder (e.g. /usr/share/cacti/) to the new system
3. Install Mysql, Apache2 and everything else Cacti needs on the new sys
4. import the existing DB
5. check all rights, accounts @ mysql etc.
6. create a cronjob (e.g. nano /etc/cron.d/cacti)

Code: Select all

MAILTO=root
* * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti$
* * * * * root ntpdate TIMESERVER

and have fun
moty119
Posts: 4
Joined: Wed Dec 22, 2010 12:40 am

Re: transfer Cacti to another system

Post by moty119 »

Alphadog wrote:you need to :

1. export your mysql Database (e.g. with phpmyadmin)
2. COPY your cacti Folder (e.g. /usr/share/cacti/) to the new system
3. Install Mysql, Apache2 and everything else Cacti needs on the new sys
4. import the existing DB
5. check all rights, accounts @ mysql etc.
6. create a cronjob (e.g. nano /etc/cron.d/cacti)

Code: Select all

MAILTO=root
* * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti$
* * * * * root ntpdate TIMESERVER

and have fun

i done this sequence that you say, but don't work !!
Alphadog
Posts: 38
Joined: Tue Aug 04, 2009 12:58 am
Location: Bavaria near Germany

Re: transfer Cacti to another system

Post by Alphadog »

what kind of error message did you get ?

which instance of cacti isn't working ??
moty119
Posts: 4
Joined: Wed Dec 22, 2010 12:40 am

Re: transfer Cacti to another system

Post by moty119 »

no error happened and cacti is run OK.
but never of graphs that locate in old server, no transfer to new server.
lucajet
Posts: 21
Joined: Wed Oct 27, 2010 1:37 pm

Re: transfer Cacti to another system

Post by lucajet »

What do you mean?
That everything work in the new cacti server but you don't have the previous history inside the rrd files?

I had a similar issues trying to move rrds files amongst different servers.
I solved by dumping in xml and then restore them

see the command rrdtool dump and rrdtool restore
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: transfer Cacti to another system

Post by gandalf »

I just provided a perl script that helps doing so. See 1st link of my sig, Maintenance chapter
R.
moty119
Posts: 4
Joined: Wed Dec 22, 2010 12:40 am

Re: transfer Cacti to another system

Post by moty119 »

gandalf wrote:I just provided a perl script that helps doing so. See 1st link of my sig, Maintenance chapter
R.
Hi gandalf
i 'm find a way for my question.
that is, "export host template" and import to another machine. by this work, transfered all of data queries and graph template and data template to dest machin but don't create any graph!! i forced to create graph manually.

are a way for solve this problem?

i have another question form u
how i do monitor servral machines form a centerlized machine by graphs that created in pervious step?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: transfer Cacti to another system

Post by gandalf »

moty119 wrote: i 'm find a way for my question.
that is, "export host template" and import to another machine. by this work, transfered all of data queries and graph template and data template to dest machin but don't create any graph!! i forced to create graph manually.
You exlude use of export/import in your first question. Now I don't know what you really want to achieve
are a way for solve this problem?
As already said, the above procedure will clone a complete system.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest