Weathermap - Cacti 1.x compatible release available for testing

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

fatihylmz06
Posts: 4
Joined: Tue Nov 12, 2019 3:11 pm

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by fatihylmz06 »

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.?
jamesbtate
Posts: 4
Joined: Tue Feb 25, 2020 3:32 pm

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by jamesbtate »

Silk wrote: Fri Apr 17, 2020 8:15 am
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.
I've done this in IE and Chrome.

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.
This is fixed in my very recent pull-request to thurban's repo: https://github.com/thurban/plugin_weathermap/pull/9/

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.
jinju
Posts: 23
Joined: Tue Jun 14, 2016 4:22 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by jinju »

Thanks Phalek for your great work.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by netniV »

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
jhonnyx
Cacti User
Posts: 87
Joined: Sun Feb 26, 2017 10:33 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by jhonnyx »

Hi,

thanks for this!

Does it work also with BOOST enabled CACTI?
jkrejci
Posts: 11
Joined: Mon Sep 27, 2010 9:44 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by jkrejci »

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.

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];
I think this is all of the logged instances where I made the change.

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
Thanks again for the work to adapt this lovely plugin to be compatible with current Cacti versions!
DJKR
Posts: 1
Joined: Mon Nov 27, 2017 6:44 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by DJKR »

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.
oijkn
Posts: 18
Joined: Mon Mar 05, 2018 5:41 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by oijkn »

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.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Osiris »

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.
User avatar
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

Post by phalek »

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
User avatar
Badikov
Posts: 8
Joined: Mon Jan 18, 2021 10:25 am

Re: Weathermap - Cacti 1.x compatible release available for testing

Post by Badikov »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests