Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Weathermap 0.9pre1 - TEST RELEASE - READ THE POST!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Mon Mar 12, 2007 6:48 am    Post subject: Weathermap 0.9pre1 - TEST RELEASE - READ THE POST! Reply with quote

This is the first release candidate for PHP Weathermap 0.9

Unlike previous versions, there have been two stages to the development/testing process this time around.

There have been 'early test' versions around since October 2006, and development since March 2006. This is *in theory* a 'finished' version now.

The full change list is quite big, so it's now a web page. It's in the manual too, but you can see it here:
http://www.network-weathermap.com/docs/0.9/changes

The manual is also online in it's current form:
http://www.network-weathermap.com/manual/0.9/

HOWEVER, if you have never used Weathermap before, please don't use this as your first version. At this stage, I'd like to focus on release-specific problems, rather than supporting new users. Please stick with 0.82 for a week or so longer. Equally, please be aware that there *might* still be issues in this version that I haven't seen in my testing and that no-one else has reported. Having said that, I've been using my own dev versions on my employer's live service for at least 6 months now, with only a few hiccups.

The only issues I know of are documentation - the TARGET section needs updating still, as does the Cacti plugin section. None of it is wrong, but both sections need expanding.

The all-important link: http://www.network-weathermap.com/files/test-releases/php-weathermap-0.9pre1.zip
Back to top
polletj
Cacti User


Joined: 30 Aug 2006
Posts: 52
Location: Antwerp/Belgium

PostPosted: Tue Mar 13, 2007 1:46 am    Post subject: Lets try it.... Reply with quote

Keep you informed...
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 8:04 am    Post subject: after selecting a map to edit Reply with quote

Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2596
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 8:29 am    Post subject: Re: after selecting a map to edit Reply with quote

eternal wrote:
Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2596


If that directory doesn't exist, it looks like you didn't copy everything into your weathermap directory, because it does exist in the zip file

You do need to copy ALL of the zip contents.
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 8:35 am    Post subject: Reply with quote

Its there

[root@mints lib]# ls -la /var/www/html/plugins/weathermap/lib/
total 32
drwxr-xr-x 5 apache apache 4096 Mar 12 07:30 .
drwxr-xr-x 8 apache apache 4096 Mar 15 09:45 ..
drwxr-xr-x 2 apache apache 4096 Mar 12 07:30 datasources
-rw-r--r-- 1 apache apache 4539 Mar 6 03:28 poller-common.php
drwxr-xr-x 2 apache apache 4096 Mar 12 07:30 post
drwxr-xr-x 2 apache apache 4096 Mar 15 09:44 pre



I just unzipped to the plugins dir and overwrote all. I didn't unzip and copy there
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 8:49 am    Post subject: Reply with quote

eternal wrote:
Its there

[root@mints weathermap]# cd lib/pre/
[root@mints pre]# ls
WeatherMapPreProcessorTest.php

[root@mints pre]# ls -la /var/www/html/plugins/weathermap/lib/pre/


Your error said post, not pre. Does that exist?
(hey, editing is cheating )

Actually, I'll make these two directories optional, because they aren't used yet, but they should exist as part of the zip file. They do on my copy anyway

You don't get the same problem with the datasource plugins? How about using the command-line version(./weathermap)?
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 8:53 am    Post subject: Reply with quote

Sorry Its a bit early for me.
I get a err for all dirs in lib. Was searching for the error didn't realize i didn't copy all when posting


Warning: opendir(lib/datasources): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2596

Warning: opendir(lib/pre): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2596

Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2596

[root@mints weathermap]# ls -la /var/www/html/plugins/weathermap/lib/
total 32
drwxr-xr-x 5 apache apache 4096 Mar 12 07:30 .
drwxr-xr-x 8 apache apache 4096 Mar 15 09:49 ..
drwxr-xr-x 2 apache apache 4096 Mar 12 07:30 datasources
-rw-r--r-- 1 apache apache 4539 Mar 6 03:28 poller-common.php
drwxr-xr-x 2 apache apache 4096 Mar 12 07:30 post
drwxr-xr-x 2 apache apache 4096 Mar 15 09:44 pre
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 9:30 am    Post subject: Reply with quote

Hmmm. OK. Could you add in a line for me?

In Weathermap.class.php, can you add a line before 2596:
warn("PWD is ".getcwd()."\n");
and see what the output says? (it should be the path to the weathermap directory.

Also, can you confirm whether you're seeing this in the cacti logs, or the Recalc Now output or from the command line? (or all?)
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 9:55 am    Post subject: full apache log Reply with quote

Dosent show up in cacti log

[client ] PHP Warning: opendir(lib/datasources): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php
Couldn't open data Plugin directory (lib/datasources). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/pre): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php
Couldn't open pre Plugin directory (lib/pre). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php
Couldn't open post Plugin directory (lib/post). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/datasources): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open data Plugin directory (lib/datasources). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/pre): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open pre Plugin directory (lib/pre). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open post Plugin directory (lib/post). Things will probably go wrong.
[client ] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/plugins/weathermap/Weathermap.class.php:2597) in /var/www/html/plugins/weathermap/editor.php on line 67, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/datasources): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open data Plugin directory (lib/datasources). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/pre): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open pre Plugin directory (lib/pre). Things will probably go wrong.
PWD is /var/www/html
[client ] PHP Warning: opendir(lib/post): failed to open dir: No such file or directory in /var/www/html/plugins/weathermap/Weathermap.class.php on line 2597, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Couldn't open post Plugin directory (lib/post). Things will probably go wrong.
[client ] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/plugins/weathermap/Weathermap.class.php:2597) in /var/www/html/plugins/weathermap/editor.php on line 48, referer: http://replace.url.com/plugins/weathermap/editor.php?mapname=simple.conf
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 9:58 am    Post subject: Re: full apache log Reply with quote

eternal wrote:
Dosent show up in cacti log


Does this only happen with the editor? (you didn't mention it was the editor!)

I mean, if you put the example map into the configs directry, and it in the Weathermaps management page, does that get generated properly?
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 10:04 am    Post subject: Reply with quote

YEa sorry only when trying to edit a map. Pre existing maps work fine. Or creating one
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 11:16 am    Post subject: Reply with quote

eternal wrote:
YEa sorry only when trying to edit a map. Pre existing maps work fine. Or creating one


In that case, can you try adding the followig to the end of the editor-config.php file? (just before the ?> )

Code:
chdir(dirname(__FILE__));


(that's two _ each side of file)
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Thu Mar 15, 2007 11:47 am    Post subject: Reply with quote

Got it

thanks
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Mar 15, 2007 7:50 pm    Post subject: Reply with quote

eternal wrote:
Got it

thanks


Cool. pre2 will have that fix.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Mar 21, 2007 9:25 am    Post subject: Reply with quote

Howie, I just got around to installing this today. One good thing that I noticed is the map seems to render faster in both the editor and Cacti, not sure if I'm going nuts on seeing that or not, but it just seems to.

I have three bugs for you though. The Legend Text does not seem to work properly in the editor. If you put nothing in that line and hit submit you'll get:

Quote:

Notice: Uninitialized string offset: 0 in /var/www/html/plugins/weathermap/Weathermap.class.php on line 4155


and it will put "Traffic Load" in the Legend, if you open Map Properties again and hit submit, you'll only see a T appear on the Traffic Legend, even though it shows "Traffic Load" in the box.

Second buggie: In the previous version I didn't have borders around my node labels. I don't recall how I turned them off, but they were off. Now with this version they're back, and I really don't like them.

Third: Map Size apparently doesn't work. I changed mine to 1024x768 and it reverted right back to 800x600. Map appears to be ok, and the correct size, but it just doesn't seem to keep it set.

I'll let you know if I find anymore, keep up the good work, everything else looks great on it so far, head down to the pub for a drink for a job well done so far.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group