Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 29, 2017 8:27 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Network Weathermap 0.98 Released
PostPosted: Sun May 29, 2016 2:09 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Mon May 30, 2016 6:13 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 03, 2016 3:38 pm
Posts: 261
Great work!

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

Huge fan, thanks for putting in the effort!


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Mon May 30, 2016 5:01 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Wed Jun 01, 2016 5:04 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 03, 2016 3:38 pm
Posts: 261
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';


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Wed Jun 01, 2016 5:21 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 03, 2016 3:38 pm
Posts: 261
Dont know what you did but this version works a lot better than the previous one.

Installation works fine.

Editor seems to ignore:

Quote:
// 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:
[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 7000 times ]
Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Wed Jun 01, 2016 5:44 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Wed Jun 01, 2016 5:47 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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:
[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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Fri Jun 03, 2016 4:51 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 03, 2016 3:38 pm
Posts: 261
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:
[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 6952 times ]
Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Fri Jun 03, 2016 6:07 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Sun Jun 05, 2016 2:46 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 03, 2016 3:38 pm
Posts: 261
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.


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Fri Aug 26, 2016 2:31 pm 
Offline
Cacti User

Joined: Mon Sep 10, 2012 5:54 pm
Posts: 60
Any progress on update to Cacti 1.0.0?


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Mon Sep 05, 2016 6:23 am 
Offline

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

i have been unable to install until i added apache@localhost 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 root@localhost 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...


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Mon Sep 05, 2016 1:51 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Wed Sep 21, 2016 6:02 pm 
Offline
Cacti User

Joined: Wed Jul 20, 2016 8:00 pm
Posts: 62
Hi Howie,

Will we be lucky enough to get what we discussed here: weathermap to show int status instead of traffic utilization ?


Cheers,

_________________
Cacti - 0.8.8h
Poller Type - CMD
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 6
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2


Top
 Profile  
 
 Post subject: Re: Network Weathermap 0.98 Released
PostPosted: Thu Sep 22, 2016 2:36 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5100
Location: United Kingdom
Pucho wrote:
Will we be lucky enough to get what we discussed here: weathermap to show int status instead of traffic utilization ?


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 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group