Restore backup

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
myfahim
Posts: 15
Joined: Sat Jan 21, 2012 1:33 am
Location: Dhaka, Bangladesh
Contact:

Restore backup

Post by myfahim »

Hi...I am using Redhat Linux 5.5 and Cacti-0.8.6. I have backup my old system's cacti-sql-backup and rra directory.
Then I have stopped HTTPD, CROND, SNMPD and restore both backups. Then used "chown -R cactiuser rra/ log/".
After restart HTTPD, CROND, SNMPD when I tried to login my cacti it asked me as a new installation thing. And here it shows successful everything.

But in the login form when I put my username and password it shows me "Invalid User Name/Password Please Retype". I tried my old password, my old system's password and also initial level username and password (username: admin, password: admin). But I failed to login :(

Please help me.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Restore backup

Post by gandalf »

Please restore (are review) old /etc/my.cnf. It may include the old password tweak
R.
myfahim
Posts: 15
Joined: Sat Jan 21, 2012 1:33 am
Location: Dhaka, Bangladesh
Contact:

Re: Restore backup

Post by myfahim »

Thank you dear...it is working :D :D :D :D :) :) :)
myfahim
Posts: 15
Joined: Sat Jan 21, 2012 1:33 am
Location: Dhaka, Bangladesh
Contact:

Re: Restore backup

Post by myfahim »

Hey...login is ok...everything except graph is ok. I mean, all settings of my old system is now in new system. In the Console -> Devices path, status is UP. But in the Graph it is not coming. Even the graph box is not showing. If I add new device here, its graph is coming.

In Graph Source Properties the following showing:
==============================================================
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1327265639 \
--end=1327267439 \
--title='Information Solution Ltd - Traffic - Port7: 10Base-T/7' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2012/01/23 02:53:59 To 2012/01/23 03:23:59\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
DEF:a="/var/www/html/cacti/rra/information_solution_ltd_traffic_in_671.rrd":traffic_out:AVERAGE \
DEF:b="/var/www/html/cacti/rra/information_solution_ltd_traffic_in_671.rrd":traffic_in:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#0000FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
==============================================================
Please help me.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Restore backup

Post by gandalf »

Does the output stem from a broken graph or from a working? I need both!
Then, you may run both commands from cli, piping the output to e.g. test.png. You may receive errors that are important for me
R.
myfahim
Posts: 15
Joined: Sat Jan 21, 2012 1:33 am
Location: Dhaka, Bangladesh
Contact:

Re: Restore backup

Post by myfahim »

hi....i have got the solution. the reason was... the version of rrdtool. the old system's rrdtools version was different with the one. now everything is ok. thanks.

i have reinstalled the same rrdtool as old system. as far i know there is another solution: if i could take backup rra as xml. but i dont know the command to execute backup converting as *.rrd.xml and restore to *.rrd

could u plz tell me both command....
( i am not such smart guy; i m something like new..)

thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Restore backup

Post by gandalf »

1st link of my sig shows a complete script to do so (see RRDTool chapter, I suppose). I hope that people try to read (and understand) documentation before giving up; sigh. It's almost all in there ...
R.
myfahim
Posts: 15
Joined: Sat Jan 21, 2012 1:33 am
Location: Dhaka, Bangladesh
Contact:

Re: Restore backup

Post by myfahim »

8) 8) 8) ok...thanks !
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest