network-weathermap not creating new maps

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
webpagetech
Posts: 5
Joined: Fri Oct 25, 2013 3:19 pm

network-weathermap not creating new maps

Post by webpagetech »

I just recently installed weathermap.

I used this tutorial to install php-weathermap-0.97c.
http://www.network-weathermap.com/manua ... ditor.html

When ever I go to view maps I get... "You Have No Maps" even though I manually created one from the sample file and put it in weathermap/configs.
I can't make new maps or copy maps in the GUI.
I can edit maps in the GUI that I copy and rename from the sample file via CLI. Editing the maps worked great but I can't view them.

It wouldn't be a bid deal to drop into CLI to make the map originally if I could only view them.


Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8
Linux 3.2.0-55-generic on x86_64
Ubuntu Linux 12.04.3
PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep 4 2013 20:00:51)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
php-weathermap-0.97c

The check.php status is good on both the command line and the web browser.

editor.php...

Code: Select all

require_once 'lib/editor.inc.php';
require_once 'lib/Weathermap.class.php';

// so that you can't have the editor active, and not know about it.
$ENABLED=true;

if(! $ENABLED)
{
    print "<p>The editor has not been enabled yet. You need to set ENABLED=true at the top of editor.php</p>";
    print "<p>Before you do that, you should consider using FilesMatch (in Apache) or similar to limit who can access the editor. There is more information in the install guide section of the manual.</p>";
    exit();
}

// sensible defaults
$mapdir='configs';
$cacti_base = '/usr/share/cacti/site';
$cacti_url = 'http://graphs.mywebsite.com/';
$ignore_cacti=FALSE;
$configerror = '';
Apache error log

Code: Select all

[Fri Oct 25 15:10:55 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/lib/functions.php on line 1795, referer: http://graphs.mywebsite.com/
[Fri Oct 25 15:10:55 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/lib/functions.php on line 1795, referer: http://graphs.mywebsite.com/
[Fri Oct 25 15:10:55 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function session_unregister() is deprecated in /usr/share/cacti/site/lib/functions.php on line 410, referer: http://graphs.mywebsite.com/
[Fri Oct 25 15:10:55 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function session_unregister() is deprecated in /usr/share/cacti/site/lib/functions.php on line 410, referer: http://graphs.mywebsite.com/
[Fri Oct 25 15:10:57 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/weathermap-cacti-plugin.php
[Fri Oct 25 15:11:04 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php
[Fri Oct 25 15:11:10 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=blared&action=newmap&plug=
[Fri Oct 25 15:11:10 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=
[Fri Oct 25 15:11:10 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=
[Fri Oct 25 15:11:17 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=
[Fri Oct 25 15:11:31 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?action=newfile
[Fri Oct 25 15:14:59 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/lib/functions.php on line 1795, referer: http://graphs.mywebsite.com/cacti/index.php
[Fri Oct 25 15:14:59 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/lib/functions.php on line 1795, referer: http://graphs.mywebsite.com/cacti/index.php
[Fri Oct 25 15:14:59 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function session_unregister() is deprecated in /usr/share/cacti/site/lib/functions.php on line 410, referer: http://graphs.mywebsite.com/cacti/index.php
[Fri Oct 25 15:14:59 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function session_unregister() is deprecated in /usr/share/cacti/site/lib/functions.php on line 410, referer: http://graphs.mywebsite.com/cacti/index.php
[Fri Oct 25 15:15:01 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/weathermap-cacti-plugin.php
[Fri Oct 25 15:15:07 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php
[Fri Oct 25 15:15:09 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=fds&action=newmapcopy&plug=&sourcemap=portland.conf
[Fri Oct 25 15:15:09 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=
[Fri Oct 25 15:15:09 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=
[Fri Oct 25 15:15:13 2013] [error] [client xx.xx.xx.xx] PHP Deprecated:  Function split() is deprecated in /usr/share/cacti/site/plugins/weathermap/editor.php on line 32, referer: http://graphs.mywebsite.com/cacti/plugins/weathermap/editor.php?mapname=portland.conf&plug=

after a while of troubleshooting and re-installations of the plugin I opened up the permissions to 775 across the board so that root and www-data have rwx.

Code: Select all

ls -la weathermap/
total 380
drwxrwxr-x 9 root     www-data  4096 Oct 25 14:43 .
drwxr-xr-x 3 www-data www-data  4096 Oct 25 14:43 ..
-rwxrwxr-x 1 root     www-data 12735 Apr  3  2013 cacti-pick.php
-rwxrwxr-x 1 root     www-data 35564 Apr 10  2013 CHANGES
-rwxrwxr-x 1 root     www-data  1633 Mar 22  2013 check-gdbug.php
-rwxrwxr-x 1 root     www-data 13008 Mar 25  2013 check.php
drwxrwxr-x 2 root     www-data  4096 Oct 25 14:52 configs
-rwxrwxr-x 1 root     www-data 18011 Mar 22  2013 COPYING
drwxrwxr-x 7 root     www-data  4096 Apr 10  2013 docs
-rwxrwxr-x 1 root     www-data 49646 Oct 25 15:36 editor.php
drwxrwxr-x 2 root     www-data  4096 Apr 10  2013 editor-resources
drwxrwxr-x 2 root     www-data  4096 Apr 10  2013 images
-rwxrwxr-x 1 root     www-data    62 Mar 22  2013 index.php
drwxrwxr-x 5 root     www-data  4096 Apr 10  2013 lib
-rwxrwxr-x 1 root     www-data    65 Mar 22  2013 logout.php
-rwxrwxr-x 1 root     www-data    38 Mar 22  2013 net-data.txt
drwxrwxr-x 2 root     www-data  4096 Oct 25 15:44 output
-rwxrwxr-x 1 root     www-data 50734 Mar 22  2013 overlib.js
drwxrwxr-x 2 root     www-data  4096 Apr 10  2013 random-bits
-rwxrwxr-x 1 root     www-data  1348 Mar 25  2013 README
-rwxrwxr-x 1 root     www-data 36357 Mar 22  2013 setup.php
-rwxrwxr-x 1 root     www-data  8683 Apr  2  2013 weathermap
-rwxrwxr-x 1 root     www-data   149 Mar 22  2013 weathermap-cacti-plugin.css
-rwxrwxr-x 1 root     www-data 42134 Apr  2  2013 weathermap-cacti-plugin-mgmt.php
-rwxrwxr-x 1 root     www-data 26791 Apr  2  2013 weathermap-cacti-plugin.php
-rwxrwxr-x 1 root     www-data  1052 Mar 22  2013 weathermap-cacti-rebuild.php
-rwxrwxr-x 1 root     www-data   370 Mar 22  2013 weathermap.conf
I'm was thinking at first that the cacti user might be different than I'm expecting but even if I change the permissions to 777 I still get the same errors.

Any idea what is the problem?

Let me know if you need any additional info.

Thanks for the help.

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

Re: network-weathermap not creating new maps

Post by Howie »

Go to Manage...Weathermap, and click Add. Pick the map config file you created from the list of files.

Weathermap doesn't just pick up all files in the config directory.
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: network-weathermap not creating new maps

Post by Howie »

(also - moved to Weathermap forum)
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!)
webpagetech
Posts: 5
Joined: Fri Oct 25, 2013 3:19 pm

Re: network-weathermap not creating new maps

Post by webpagetech »

OK that worked just fine for adding the map config file to the viewable maps but I still can't create a new map with the GUI Editor. I still have to get into the CLI to create a new map. I just cp the sample.conf to some other name then I can edit it and add it to the view-able maps all though GUI functions. :)

"Do you want to:

Create A New Map:

Named: ____________ <create button>
OR
Create A New Map as a copy of an existing map:
Named: ____________ based on <drop down of map configs> <Create copy button>"

The create button and the Create copy buttons don't work for me.

When I click them they look like they send all the necessary get vars but the conf file never gets made.
URL after click:
cacti/plugins/weathermap/editor.php?mapname=newMapName&action=newmap&plug=

Ah - if this is a recent version (0.97b or newer) then the filename must end .conf

This should be clearer, sorry!
webpagetech
Posts: 5
Joined: Fri Oct 25, 2013 3:19 pm

Re: network-weathermap not creating new maps

Post by webpagetech »

um... that is weird I didn't write...
Ah - if this is a recent version (0.97b or newer) then the filename must end .conf

This should be clearer, sorry!
That did the trick. using the .conf extension successfully creates the map. Thanks!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: network-weathermap not creating new maps

Post by Howie »

I think I pressed edit instead of quote - so sorry for the confusion :-)
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!)
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: network-weathermap not creating new maps

Post by faraway89 »

Howie wrote:Go to Manage...Weathermap, and click Add. Pick the map config file you created from the list of files.

Weathermap doesn't just pick up all files in the config directory.
Hi,

In the www\cacti\plugins\weathermap\configs, there is only 1 file simple.conf, and it is used for 1st map.

When I go to Management > Weathermap > Add, it show below

Image

Image

So if I want to create new map, I have to copy ( clone) this simple.conf and rename it many times ?
Attachments
Capture2.JPG
Capture2.JPG (26.85 KiB) Viewed 7522 times
Capture.JPG
Capture.JPG (25.63 KiB) Viewed 7522 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: network-weathermap not creating new maps

Post by Howie »

You don't have to clone the existing file - just create a new something.conf file in the configs/ directory. The editor will do this for you, too. But weathermap won't process the map every five minutes until you add the new file in the Manage..Weathermaps page also.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests