Weathermap 0.97b Released (security fixes, etc)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

I am using Debian 6.0.7 , php 5.3.3-7 & cacti 0.8.7g
I face the same problems:

- Map editor is not working
- Maps are not updated
- When I refresh a current map I get the following errors in apache log:
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function ereg() is deprecated in /var/www/cacti/lib/html_validate.php on line 38
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function split() is deprecated in /var/www/cacti/lib/functions.php on line 1795
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function ereg() is deprecated in /var/www/cacti/lib/html_validate.php on line 38
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function split() is deprecated in /var/www/cacti/lib/functions.php on line 1795
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function session_unregister() is deprecated in /var/www/cacti/lib/functions.php on line 410
[Mon Apr 08 11:35:33 2013] [error] [client 192.168.241.61] PHP Deprecated: Function session_unregister() is deprecated in /var/www/cacti/lib/functions.php on line 410
I rollback to 0.97a and all problems solved
cacti rulez!
jascott
Posts: 3
Joined: Tue Apr 09, 2013 2:35 pm

Re: Weathermap 0.97b Released (security fixes, etc)

Post by jascott »

Has anyone managed to get weathermap 0.97b to download correctly? I am getting errors about the compression method with the files using windows native unzipper and 7Zip.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

Looks like the zip has been mangled somehow. I'll check into it today.

You shouldn't need to remove anything before unzipping over the top. However, got this particular release, part of the changes was to move more 'non-page' PHP code into lib, so you'll end up with multiple copies of some files.
Weathermap 0.98a 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: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

I've just put a 0.97c zip up on the website - there's one tiny code fix for the editor, but mainly it's in a fresh zip.
Weathermap 0.98a 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!)
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

Still not working :(

Editor displays a white page. (after it was enabled)
Maps are not refreshed :(
cacti rulez!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

And what do you see in the error log, JJX?

The other errors about deprecated functions are from Cacti itself, not Weathermap, by the way...
Weathermap 0.98a 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: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

I've just noticed one difference between 0.97a and 0.97c is that 'c' has error_reporting set to a non-default value. Possibly this is why you are seeing those deprecation warnings too.

Try commenting out the

Code: Select all

   error_reporting (E_ALL);
on line 32 of lib/Weathermap.class.php

If you are getting some extra warnings during the image generation, it will break the PNG file, too. (there would be text at the front of the .png file)
Weathermap 0.98a 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!)
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

I have comment out that line.
When I open editor I get a white page and this error:
[Fri Apr 12 12:58:40 2013] [error] PHP Fatal error: Call to undefined function wm_module_checks() in /var/www/cacti/plugins/weathermap/editor.php on line 86, referer: http://cacti.mysite.com/plugins/weather ... n-mgmt.php
After deleting the old installation and using a clean copy of 0.97c it worked.
Some fine tuning with editor is required (to open the maps directly)
cacti rulez!
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

0.97c README has wrong version on first line -->
This is PHP Network Weathermap, version 0.97b by Howard Jones (howie@thingy.com)
cacti rulez!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

JJX wrote: Some fine tuning with editor is required (to open the maps directly)
I don't understand - what did you need to change?
Weathermap 0.98a 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!)
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

Maps are not listed in editor.php
// sensible defaults
$mapdir='configs';
$cacti_base = '../../';
$cacti_url = '/';
$ignore_cacti=FALSE;
$configerror = '';
And all maps are in $cacti_path$/plugins/weathermap/configs, with 777 permissions
Attachments
Snap1.png
Snap1.png (39.42 KiB) Viewed 6505 times
cacti rulez!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

What are your map filenames like? Do they have a .conf extension?
Weathermap 0.98a 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!)
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

All maps have a cfg extension
cacti rulez!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap 0.97b Released (security fixes, etc)

Post by Howie »

One of the security issues with the previous version was that it allowed an editor user to create .php files in the configs directory, and then serve them up. Part of the solution was simply to not allow the editor to deal with arbitrary filenames anymore. You would need to either rename the configs or search for the (few) places in the editor that mention "conf" - I think they are all in editor.inc.php
Weathermap 0.98a 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!)
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Weathermap 0.97b Released (security fixes, etc)

Post by JJX »

I renamed all maps to X.conf and apply new permissions.
Now everything seems to work :)

Thank you
cacti rulez!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests