Network Weathermap 0.98 Released

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Author
Message
User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Network Weathermap 0.98 Released

#1 Post by Howie » Sun May 29, 2016 2:09 pm

There is a new release of Network Weathermap - v0.98 is a rollup of all the various bugfixes and small features that have been stuck behind the large refactoring project I've been working on. I suddenly realised that git would allow me to do both quick and slow paths.

Download link and release notes: https://github.com/howardjones/network- ... rsion-0.98

Manual: http://network-weathermap.com/manual/latest/

[a personal sorry for ikorzha758 - this doesn't include the performance changes we worked on. I want to get them into 0.98a though, and it won't take another 2 years!]
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Network Weathermap 0.98 Released

#2 Post by micke2k » Mon May 30, 2016 6:13 am

Great work!

Have you had a chance to try it on the 1.0 development release?

Huge fan, thanks for putting in the effort!

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#3 Post by Howie » Mon May 30, 2016 5:01 pm

Not yet. I will be doing that shortly, I expect.

Update - the current github develop branch doesn't let me get past the 'accept license' screen, so maybe not. :-)
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Network Weathermap 0.98 Released

#4 Post by micke2k » Wed Jun 01, 2016 5:04 am

Howie wrote:Not yet. I will be doing that shortly, I expect.

Update - the current github develop branch doesn't let me get past the 'accept license' screen, so maybe not. :-)
CSRF error?

If so change config.php from

$cacti_session_name = 'Cacti1.0.0';

to

$cacti_session_name = 'Cacti';

User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Network Weathermap 0.98 Released

#5 Post by micke2k » Wed Jun 01, 2016 5:21 am

Dont know what you did but this version works a lot better than the previous one.

Installation works fine.

Editor seems to ignore:
// so that you can't have the editor active, and not know about it.
$ENABLED=true;
its active whether its true or false.

Other than that if i edit database -> weathermap_maps and set filehash, imagefile, htmlfile and titlecache to the same numeric value ex: "1" then it makes the map aswell.

Last time i looked into it its something wrong with the filehash not being created properly.

Could be something related to the error messages:

Code: Select all

[Sat Apr 16 09:00:37.990237 2016] [:error] [pid 24248] [client 192.168.206.1:17277] PHP Warning:  mysql_real_escape_string(): Access denied for user 'apache'@'localhost' (using password: NO) in /var/www/html/commit5038/plugins/weathermap/weathermap-cacti-plugin.php on line 654, referer: http://192.168.206.136/cacti/plugins/weathermap/weathermap-cacti-plugin.php
EDIT:

Ignore the part about enabled, i saw you enable it automatically if we load it from cacti. Great!
Attachments
weathermapworking.png
weathermapworking.png (524.95 KiB) Viewed 17294 times

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#6 Post by Howie » Wed Jun 01, 2016 5:44 am

micke2k wrote:
Howie wrote:Not yet. I will be doing that shortly, I expect.

Update - the current github develop branch doesn't let me get past the 'accept license' screen, so maybe not. :-)
CSRF error?

If so change config.php from

$cacti_session_name = 'Cacti1.0.0';

to

$cacti_session_name = 'Cacti';
But then it will clash with the Cacti 0.8.8h that sits on the same server :-/
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#7 Post by Howie » Wed Jun 01, 2016 5:47 am

micke2k wrote:Dont know what you did but this version works a lot better than the previous one.

Installation works fine.

Other than that if i edit database -> weathermap_maps and set filehash, imagefile, htmlfile and titlecache to the same numeric value ex: "1" then it makes the map aswell.

Last time i looked into it its something wrong with the filehash not being created properly.

Could be something related to the error messages:

Code: Select all

[Sat Apr 16 09:00:37.990237 2016] [:error] [pid 24248] [client 192.168.206.1:17277] PHP Warning:  mysql_real_escape_string(): Access denied for user 'apache'@'localhost' (using password: NO) in /var/www/html/commit5038/plugins/weathermap/weathermap-cacti-plugin.php on line 654, referer: http://192.168.206.136/cacti/plugins/weathermap/weathermap-cacti-plugin.php
This part is confusing - why are you editing the database? What is the actual symptom?

edit: wait, is this with Cacti 0.8.8h or the dev version? The only thing I can find about this error message is in a case where PDO is used for part of an application, so this call is the first mysql extension function. But Cacti 0.8.8 uses the mysql extension, so it can't be that, unless you are reporting errors with the dev version, without mentioning the version, or the symptom, or anything, but that would be crazy! ;-)
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Network Weathermap 0.98 Released

#8 Post by micke2k » Fri Jun 03, 2016 4:51 am

Howie wrote:
micke2k wrote:Dont know what you did but this version works a lot better than the previous one.

Installation works fine.

Other than that if i edit database -> weathermap_maps and set filehash, imagefile, htmlfile and titlecache to the same numeric value ex: "1" then it makes the map aswell.

Last time i looked into it its something wrong with the filehash not being created properly.

Could be something related to the error messages:

Code: Select all

[Sat Apr 16 09:00:37.990237 2016] [:error] [pid 24248] [client 192.168.206.1:17277] PHP Warning:  mysql_real_escape_string(): Access denied for user 'apache'@'localhost' (using password: NO) in /var/www/html/commit5038/plugins/weathermap/weathermap-cacti-plugin.php on line 654, referer: http://192.168.206.136/cacti/plugins/weathermap/weathermap-cacti-plugin.php
This part is confusing - why are you editing the database? What is the actual symptom?

edit: wait, is this with Cacti 0.8.8h or the dev version? The only thing I can find about this error message is in a case where PDO is used for part of an application, so this call is the first mysql extension function. But Cacti 0.8.8 uses the mysql extension, so it can't be that, unless you are reporting errors with the dev version, without mentioning the version, or the symptom, or anything, but that would be crazy! ;-)
Crazy indeed :oops: I thought you would be able to test the Dev version and see the symptoms :)

Version is latest Dev, and symptom is that when you are adding a map under weathermap management, it gets added in the database like id 2 in the attached picture.(Missing htmlfile,outputfile,filehash etc)

If i edit it like in id 1 everything is working fine.

So when these fields arent populated the weathermap will never work, editing the database manually fixes this. And i suspect the SQL errors in the log is Weathermap trying to add the values to the database but failing.

Sorry for a poor explanation!
Attachments
weathermaperrors.png
weathermaperrors.png (11.93 KiB) Viewed 17246 times

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#9 Post by Howie » Fri Jun 03, 2016 6:07 am

I've tested now, and actually lots of fields aren't populated. Cacti 1.0 switches from using the old 'mysql' extension to PDO for database access, which means Weathermap has to also. Except that weathermap needs to support both methods, so that it will work for 0.8.8 and 1.0 - that will take a little while.
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Network Weathermap 0.98 Released

#10 Post by micke2k » Sun Jun 05, 2016 2:46 am

Howie wrote:I've tested now, and actually lots of fields aren't populated. Cacti 1.0 switches from using the old 'mysql' extension to PDO for database access, which means Weathermap has to also. Except that weathermap needs to support both methods, so that it will work for 0.8.8 and 1.0 - that will take a little while.
Ah, that explains it! Let me know if you need any help. Cant do a lot, but i can at least test.

smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: Network Weathermap 0.98 Released

#11 Post by smiles » Fri Aug 26, 2016 2:31 pm

Any progress on update to Cacti 1.0.0?

amdx64
Posts: 3
Joined: Thu Nov 15, 2012 7:36 am

Re: Network Weathermap 0.98 Released

#12 Post by amdx64 » Mon Sep 05, 2016 6:23 am

Hello,

i have been unable to install until i added [email protected] with no password for test purposes with grant access only to cacti db

the you can install the plugin but still wont work. therefor, here's what i did:

- in order for it to run you must also have [email protected] with no password (stupid ... :P )

- secondly you must edit /lib/html.php and add html_graph_start_box and html_graph_end_box . Use old cacti 0.8.8 html.php for function example.



but i'm still frustrated about the damn database connector and why it doesnt work...

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#13 Post by Howie » Mon Sep 05, 2016 1:51 pm

I'm about 70% through rewriting all the database access code to use PDO. This should work with Cacti 0.8.8, Cacti 1.0 and also PHP 7.0 then. Weathermap 0.98a should contain these changes and also some performance changes (already done).
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Re: Network Weathermap 0.98 Released

#14 Post by Pucho » Wed Sep 21, 2016 6:02 pm

Hi Howie,

Will we be lucky enough to get what we discussed here: http://forums.cacti.net/viewtopic.php?f ... 1&start=45 ?


Cheers,
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.

User avatar
Howie
Cacti Guru User
Posts: 5330
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Network Weathermap 0.98 Released

#15 Post by Howie » Thu Sep 22, 2016 2:36 am

Pucho wrote: Will we be lucky enough to get what we discussed here: http://forums.cacti.net/viewtopic.php?f ... 1&start=45 ?
Hi Pucho, I'm not sure yet. Probably not, but soon after. There are a few features that will be implemented as plugins, so are easy to keep separate: SNMPv2, SNMPv3 and autopopulate-from-Cacti. Those will probably come straight after the next release, just so it isn't delayed anymore. I don't like that there are new installations that weathermap just doesn't work with right now.
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

Post Reply