Proper Thold upgrade instructions
Moderators: Developers, Moderators
Proper Thold upgrade instructions
Hello everyone.
Any ideas why does Thold README lacks instructions about how to upgrade from previous Thld versions?
What I tried was download the newest version of Thold, disable & uninstall the plugin via Plugin Management, move the old thold directory to safe place and install the newest directory. Install/enable via Plugin management. However, during the installation of the plugin it gave some PHP errors (didn't manage to catch them). After this I realised my thold database is gone!!! Thankfully I had my old mysql dump so I managed to restore it. However, when restored, tholds didn't work. Besides, when viewing Thold section, I got much errors:
Notice: Undefined index: thold_warning_low in <my cacti path>/thold/thold_graph.php on line 531
So I reverted back to the old version... Any ideas?
Any ideas why does Thold README lacks instructions about how to upgrade from previous Thld versions?
What I tried was download the newest version of Thold, disable & uninstall the plugin via Plugin Management, move the old thold directory to safe place and install the newest directory. Install/enable via Plugin management. However, during the installation of the plugin it gave some PHP errors (didn't manage to catch them). After this I realised my thold database is gone!!! Thankfully I had my old mysql dump so I managed to restore it. However, when restored, tholds didn't work. Besides, when viewing Thold section, I got much errors:
Notice: Undefined index: thold_warning_low in <my cacti path>/thold/thold_graph.php on line 531
So I reverted back to the old version... Any ideas?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Proper Thold upgrade instructions
There are too many forks of thold to provide accurate instructions. Basically you backup the old thold using tar, untar the current, and then click the thold tab followed by plugin management to verify version.
If that does not work, you'll have to dig into the upgrade script.
TheWitness
If that does not work, you'll have to dig into the upgrade script.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Proper Thold upgrade instructions
Thanks for brief instructions. One more question: Do I need to mess with something in 'Plugin Management' section before or after upgrade? E.g. Disable or Enable plugin, etc..
Thanks.
Thanks.
Re: Proper Thold upgrade instructions
OK, I did as mentioned. I moved old thold directory (v0.4.4) to safe place and just uploaded the newest one (v0.4.8-3). I clicked on Thold tab. Everything looked nice. Then clicked on Console, Plugin management. It displays the new version in there. However, in Cacti log I just get Tholds:0 Hosts:0 although there should be much of them. Any ideas what's wrong?
Cacti 0.8.7g
PHP 5.2.6
MySQL 5.0.51
Cacti 0.8.7g
PHP 5.2.6
MySQL 5.0.51
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Proper Thold upgrade instructions
It's really not enough information for me to answer anything. Make sure that you don't simply rename the thold directory. This will break things.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Proper Thold upgrade instructions
I really move it to completely another place, on different disk mounted as /backups.
Oh, and forgot to mention this is on Linux Debian 6.0.2 and Cacti is patched with PIA 2.9.
What additional information (maybe some debug logs, etc) should I provide?
Thanks.
Oh, and forgot to mention this is on Linux Debian 6.0.2 and Cacti is patched with PIA 2.9.
What additional information (maybe some debug logs, etc) should I provide?
Thanks.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Proper Thold upgrade instructions
Does the thold_data table exist and does it contain anything at all ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Proper Thold upgrade instructions
Yes, it exists and contains all of my tholds
Re: Proper Thold upgrade instructions
try to run "php <cacti_path>/plugins/thold/extras/upgrade.php" from command line once.
Re: Proper Thold upgrade instructions
i know this is an ancient post, but had similar issues. 0.4.1 -> 0.4.9. I had to run the upgrade.php script manually in the "extras" folder to get this to work out correctly (after moving the original thold dir, and extracting the tgz).
I wish it would be better documented in the README.
I wish it would be better documented in the README.
Re: Proper Thold upgrade instructions
Thank you istein001... we've been struggling with a 0.4.2 to 0.4.9 upgrade and were losing all of our thold data. We ran the upgrade.php manually and it upgraded correctly and we didn't lose any of our data.
I agree that it was hard to find that you had to run this manually.
I agree that it was hard to find that you had to run this manually.
Re: Proper Thold upgrade instructions
You shouldn't have to run it manually, it should check for the upgrade the next time you click on the thold tab.
Who is online
Users browsing this forum: No registered users and 5 guests