OK - I’ll have to go through the same process to test (generate a 0.8.8 database etc). I don’t see much in the database logs that would cause a problem.
Did you test after I committed this change? (git log
should tell you)
OK - I’ll have to go through the same process to test (generate a 0.8.8 database etc). I don’t see much in the database logs that would cause a problem.
Did you test after I committed this change? (git log
should tell you)
Yes, I’ve those lines commented out.
But should I execute this script? I can notice it’s debian based. I’ve CentOS7 with php7.
Thanks, Simon
No, it’s the other change that’s important (the setup.php one). Just wanted to check if you had that.
Yes, it’s up-to-date.
<?php
// if weathermap is in the plugins folder while the Cacti installer is doing its thing,
// then it loads this setup.php but without the normal cacti $config defined, which breaks things.
if (isset($config) && array_key_exists("cacti_version", $config )) {
if (substr($config['cacti_version'], 0, 3) == "0.8") {
require_once "setup88.php";
}
if (substr($config['cacti_version'], 0, 2) == "1.") {
require_once "setup10.php";
}
}
Is there a way to install it from cli and debug it?
Strange is that when pressing “install” from the Plugin mgmt page, nothing happens.
Not as far as I know. If there’s a problem, it should show up in either the cacti.log or possibly the apache error log. I’ll see if I can reproduce your problem here, over lunch.
Thank you! I’ll wait news from you
My side no logs
Hello,
Have you got some time to check it out?
Thanks,
Simon
I did but I broke my installation during the upgrade I think - Cacti 1.1.7 didn’t seem to act any differently from an empty database during the install. I’ll give it another try.
Thank you. If you need more infos, let me know
Simon
@howie, do you have a way or suggestion to reset all plugins?
If there are no plugins installed there is no reason it should not work…
Something like:
Ideas?
Simon
Most plugins for cacti 0.8.8 don’t work without an upgrade (I think Weathermap might be the only one), and many are now built-in in 1.x. If you are going to delete anyway, I’d do it before the upgrade of Cacti. I haven’t yet done a successful upgrade though, so I’m hardly an expert!
Hello @howie,
Well, migrating from a production system where some plugins are used (mainly yours), I would avoid to delete them previously. In case I cannot upgrade/install weathermap soon, I’ll maintain the actual production system only for weathermap with version 0.8 and the rest on cacti 1.1. As soon I need to generate the maps with weathermap, I sync the rrd files and execute the weathermap plugin to generate the map.
You can understood that’s not the best way, but have no other choises.
This is the reason why I would like to try reset all plugins in any way to install your weathermap on the new server.
Any suggestion is well appreciated
Simon
I don’t understand what you mean by “reset” that isn’t the same as “uninstall/reinstall”, then.
Weathermap does work (apart from some UI problems) on both systems with the same code. Most others either don’t exist in 1.x (e.g. boost, dsstats, superlinks, etc) or need a new version (e.g. thold).
(no need to sync though - you can share with nfs)
Sorry @howie, maybe I’ve not clarified it well.
The fact is, the only plugin we need is Weathermap. Moving to a new server I’ve decided to move to version 1 of cacti but I need to migrate of course the content of the old. So, following the procedure everything works expect your plugin. On the old server we’ve mactrack, dsstats, cycle, gpsmap, npc, spikekill. Some are merged into version 1, other are not supported. The issue is that, even upgrading the old server (copied old database, old scripts/rrds and used new cacti1 files) weathermap doesn’t get installed. I’ve tried to remove all plugins from the new upgraded installation, copied a fresh new weathermap1 (devel) plugin, but it doen’t get installed.
What I was asking for is, if there is a way or to debug the installation (I should notice an error during the installation). I’ve already thought maybe the old plugin still is present in the database (I don’t know why) and doesn’t get installed due some DB entries. (i.e. plugin_hook table has weathermap records. Why if I’ve removed it and the Plugin management page said me it’s in a “Not Installed” state).
Thanks for your help and time!
And of course, great work with Weathermap
Simon
Hello @howie, I’ve got it!
I’ve tried a much more drastic approach that has worked. I’ve deleted from the cacti database (after import/upgrade) every %weathermap% record. This allowed me to “install” the new version, which works correctly
The problem is then with the upgrade/uninstall procedure. Hope it helps (if needed) to clean out those steps.
Thanks anyway for your support.
Simon
6 posts were split to a new topic: Rrdtool aggregate target has “no valid data” after move to github version
Hello,
I’m using cacti version 1.1.10
I downloaded Weathermap v0.98 and copy it to folder cacti/plugins/
But when I go to Cacti Gui/ Plugin management, I see the plugin with message “Not Compatible”
Thanks
I have installed Version 1.1.19 of Cacti and the development release using git. The plugin installs and the graphs are generated however when i click weathermap tab at the top and then try to click on one of the weathermap thumbnails I get the following error
Unimplemented map view
below is the entry from the https access log
10.113.3.9 - - [20/Sep/2017:15:31:28 +0100] “GET /cacti/plugins/weathermap/weathermap-cacti10-plugin.php?action=viewmap&id=cea5c0700f1882c73f80 HTTP/1.1” 200 22 “http://10.113.3.19/cacti/plugins/weathermap/weathermap-cacti10-plugin.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36”
This is all expected.
Version 0.98 is not compatible with Cacti 1.x
The development version (with 1.x support) is not complete, which is why you get messages about unimplemented versions.
Sorry about that. Work is in progress.
Thanks Howie for the reply, The main thing is that the graph is still generated so can use the png generated and host it on a simple HTTP page. Thank you for the awesome work!