Weathermap - Cacti 1.x compatible release available for testing
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Tue Nov 12, 2019 3:11 pm
Re: Weathermap - Cacti 1.x compatible release available for testing
Hello. cacti 1x weathermap 098.a. I'm using it. I looked at the whole forum but couldn't find it.
Can I connect to an html page with OVERLIBGRAPH and log in.?
Can I connect to an html page with OVERLIBGRAPH and log in.?
-
- Posts: 4
- Joined: Tue Feb 25, 2020 3:32 pm
Re: Weathermap - Cacti 1.x compatible release available for testing
This is fixed in my very recent pull-request to thurban's repo: https://github.com/thurban/plugin_weathermap/pull/9/Silk wrote: ↑Fri Apr 17, 2020 8:15 amI've done this in IE and Chrome.TheWitness wrote: ↑Thu Apr 16, 2020 4:17 pm Bring up your debug window in a new separate page, and then watch the "console" for JavaScript issues as it comes time for the page to refresh.
IE
SCRIPT438: Object doesn't support property or method 'reload'
map-cycle.js (148,17)
Chrome
map-cycle.js:148 Uncaught TypeError: that.reload is not a function
at map-cycle.js:148
This prevents the map from refreshing when not put in full screen mode. For some reason when in Full Screen mode it refreshes but the exact same error is still there. I think when you go Full Screen something else that is called is able to make the refresh happen. When I say fullscreen mode I am talking about the builtin icon on the weathermap page in the top left with the 4 green arrows going out in 4 directions.
The fix for this is two very small changes in two files. Look at the commit diffs if you just want to manually edit the files to fix yourself.
Re: Weathermap - Cacti 1.x compatible release available for testing
Thanks Phalek for your great work.
Re: Weathermap - Cacti 1.x compatible release available for testing
Howie is correct, Cacti's default is to show the log in reverse time format since you are most often interested in reading the last things that happened, not the first. Can lead to some confusion, especially when you have output like that which Howie gives which would normally read correctly and not be an issue as he output more messages afterwards. IF you want to check, look at the cacit.log file in the logs folder via a shell.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Weathermap - Cacti 1.x compatible release available for testing
Hi,
thanks for this!
Does it work also with BOOST enabled CACTI?
thanks for this!
Does it work also with BOOST enabled CACTI?
Re: Weathermap - Cacti 1.x compatible release available for testing
Apologies if this is not the correct location to discuss new bugs in the updated Weathermap but I'd like to say a couple of things that may be helpful.
First, thank you, this has worked so far for me though I am just testing it out right it appears to be working fine.
I am long time weathermap/cacti user but have been putting of upgrading Cacti due to the compatibility issues with weathermap until I saw this thread.
I just installed a fresh dev server
Ubuntu 20.04.1 LTS
cacti 1.2.14 (download from website)
weathermap plugin downloaded from git on 2020-10-29
mysql-server 8.0.22-0ubuntu0.20.04.2
apache2 2.4.41-4ubuntu3.1
php 7.4.3-4ubuntu2.4
During the install I had to adjust some things: timezone mismatch caused graphs to start drawing near the middle, new MySQL8 behaviors caused some setup steps to need adjustments, etc.
Along the way I noticed in the logs some errors that I fixed by hand in the php before I got all of my other issues sorted so I don't know how problematic (if at all, yet) this is but apparently the php7.4 release is deprecating curly braces in favor of square brackets in certain use cases. I easily just adjusted the multiple referenced lines in multiple weathermap php files.
I think this is all of the logged instances where I made the change.
Thanks again for the work to adapt this lovely plugin to be compatible with current Cacti versions!
First, thank you, this has worked so far for me though I am just testing it out right it appears to be working fine.
I am long time weathermap/cacti user but have been putting of upgrading Cacti due to the compatibility issues with weathermap until I saw this thread.
I just installed a fresh dev server
Ubuntu 20.04.1 LTS
cacti 1.2.14 (download from website)
weathermap plugin downloaded from git on 2020-10-29
mysql-server 8.0.22-0ubuntu0.20.04.2
apache2 2.4.41-4ubuntu3.1
php 7.4.3-4ubuntu2.4
During the install I had to adjust some things: timezone mismatch caused graphs to start drawing near the middle, new MySQL8 behaviors caused some setup steps to need adjustments, etc.
Along the way I noticed in the logs some errors that I fixed by hand in the php before I got all of my other issues sorted so I don't know how problematic (if at all, yet) this is but apparently the php7.4 release is deprecating curly braces in favor of square brackets in certain use cases. I easily just adjusted the multiple referenced lines in multiple weathermap php files.
Code: Select all
replace the first one with the second one
$value = $rrd_update_array{$file}[ 'times' ][ key( $rrd_update_array[ $file ][ 'times' ] ) ]{$dsname};
$value = $rrd_update_array[$file][ 'times' ][ key( $rrd_update_array[ $file ][ 'times' ] ) ][$dsname];
Code: Select all
/var/www/html/cacti/plugins/weathermap/setup.php on line: 691
/var/www/html/cacti/plugins/weathermap/setup.php on line: 692
/var/www/html/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_snmp.php on line: 114
/var/www/html/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_snmp.php on line: 129
Re: Weathermap - Cacti 1.x compatible release available for testing
Thank you very much for reviving this plugin
I have managed to install it on Centos 6.10 with cacti-1.1.19 installed from Centos/EPEL repo and so far looks good.
I have managed to install it on Centos 6.10 with cacti-1.1.19 installed from Centos/EPEL repo and so far looks good.
Re: Weathermap - Cacti 1.x compatible release available for testing
Does anyone use it with a recent version of Cacti ?
Currently I'm using v1.2.16. I miss this plugin very much and I would like to be able to use it again.
BTW thank you for sharing.
Currently I'm using v1.2.16. I miss this plugin very much and I would like to be able to use it again.
BTW thank you for sharing.
Re: Weathermap - Cacti 1.x compatible release available for testing
If it doesn't, it's more than likely either a PHP or MySQL/MariaDB issue. These things happen of course.
Before history, there was a paradise, now dust.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Weathermap - Cacti 1.x compatible release available for testing
I've merged the changes from jkrejci to the code and also included the CSS fix for the horizontal scrollbar missing when selecting new Cacti Themes.
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: Weathermap - Cacti 1.x compatible release available for testing
Launched the weathermap plugin on cacti 1.2.16.
I did the following:
1. Installed the old version 0.8.8h + weathermap 0.98 plugin on ubuntu 18.04
I had to slightly change the code - 0.8.8h was written for php 5.4 and gave errors under php 7.2
2.then I updated to 1.2.16, but I had to add the html_graph_start_box and html_graph_end_box function code
3.In the old version of Cacti, the $colors array was defined explicitly in global.php. The array has been added.
And after that everything worked.
I did the following:
1. Installed the old version 0.8.8h + weathermap 0.98 plugin on ubuntu 18.04
I had to slightly change the code - 0.8.8h was written for php 5.4 and gave errors under php 7.2
2.then I updated to 1.2.16, but I had to add the html_graph_start_box and html_graph_end_box function code
3.In the old version of Cacti, the $colors array was defined explicitly in global.php. The array has been added.
And after that everything worked.
Who is online
Users browsing this forum: No registered users and 0 guests