How to revert to previous version of Cacti

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

Moderators: Developers, Moderators

Post Reply
lmgoodbu
Posts: 15
Joined: Tue Jan 02, 2007 8:57 am
Location: Charlotte, NC

How to revert to previous version of Cacti

Post by lmgoodbu »

We upgraded our system to Cacti-0.8.6j a couple of weeks ago and were running fine. Yesterday we did some work to add the threshold plugin. We are now seeing that only two devices of our 14 devices have rrd's that are getting updated.

I have a backup of the Cacti-0.8.6i install (unfortunately our sqldump was overwritten since the upgrade). Is there anything I can do to revert back to Cacti-0.8.6i and if so, is there a way to convert the database back if we don't have the sqldump?

I would like to preserve the data in the rrd files as much as possible.

Any help would be greatly appreciated as our system is acting very strange right now.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What version do you want to revert back to and why?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
lmgoodbu
Posts: 15
Joined: Tue Jan 02, 2007 8:57 am
Location: Charlotte, NC

Post by lmgoodbu »

I would like to revert back to 0.8.6i because everything was working with that version (but I don't have the sqldump).

That way, once I have a working version again I can migrate to 0.8.6j cleanly. Make a copy of the working 0.8.6j version. And finally add the threshold plugin.

I don't have to go back to 0.8.6i it is just that I have a copy of that before everything went south and thought it was probably best to go that route and start anew.

Any suggestions are greatly appreciated as I am fairly new to cacti.
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

as there are no SQL changes between 0.8.6i and 0.8.6j, IMHO you can revert by restoring the files from 0.8.6i (don't forget the patches : http://cacti.net/download_patches.php?version=0.8.6i).
[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]
lmgoodbu
Posts: 15
Joined: Tue Jan 02, 2007 8:57 am
Location: Charlotte, NC

Post by lmgoodbu »

I tried reverting back to 0.8.6i by removing the 0.8.6j files and then pointing the logical link for cacti back to 0.8.6i but my 12 of my devices' rrd files are still not getting updated.

At this point, I don't know what to try. Is it possible that the Cacti database is corrupt? If so, is there a way to recreate it?

Sorry to ask such noobie questions but I am still trying to get a grasp of how everything ties together.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You need to update version table in the Cacti database to the right version.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
lmgoodbu
Posts: 15
Joined: Tue Jan 02, 2007 8:57 am
Location: Charlotte, NC

Post by lmgoodbu »

Thank you! As soon as I made the change to the version the rrd files began to update again.

Now I am going to try to update again to .6j. At least now if there is a problem I know how to back out of it.

Thanks again for everyone's help.
Laura
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

FYI, backups are you friend... :)

You could have restored the database and the Cacti files and left your rra untouched and everything would have been fine.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, is this the moment were we should publish the "one and only, super-satisfying generic up- and downgrade instructions for cacti"? :lol: :wink:
Not joking: I now have what I would call Rev 4 of such an instruction. For linux only. Discussion needed. Anyone interested?
Reinhard
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

gandalf wrote:Discussion needed. Anyone interested?
I am :D

I was going to write a documentation about install, upgrade and backup on Unix.
[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]
lmgoodbu
Posts: 15
Joined: Tue Jan 02, 2007 8:57 am
Location: Charlotte, NC

Post by lmgoodbu »

I would be interested in documentation (and as far as the backups go - I have added scripts to backup everyday).
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So do I.
In case I do not forget, I will start in two weeks (holidays!)
Reinhard
predavore
Posts: 1
Joined: Mon Apr 09, 2007 12:09 pm

Post by predavore »

I'm also interested.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest