Creating a Map does nothing

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
netbus
Posts: 1
Joined: Thu Jul 11, 2013 12:48 pm

Creating a Map does nothing

Post by netbus »

I am running Cacti on a Raspberry Pi with Debian Squeezy.
Today I installed the Weathermap Plugin.
I open the editor, input some name for the map and click create.
But I dont get a feedback or a map :-? . It does nothing.
I also tried to edit the simple.conf with the editor but it doesnt save my changes.
My folder has the right permissions.

Code: Select all

07/11/2013 07:55:15 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Thu, 11 Jul 13 19:55:15 +0200: 1 maps were run in 10 seconds with 0 warnings.
07/11/2013 07:55:15 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Wrote map to /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.png and /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.thumb.png
07/11/2013 07:55:06 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/11/2013 07:55:05 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Map: /var/www/cacti/plugins/weathermap/configs/simple.conf -> /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.html & /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.png
07/11/2013 07:55:05 PM - WEATHERMAP: Poller[0] Weathermap 0.97c starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/11/2013 07:55:05 PM - SYSTEM STATS: Time:2.6243 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/11/2013 07:50:10 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Thu, 11 Jul 13 19:50:10 +0200: 1 maps were run in 6 seconds with 0 warnings.
07/11/2013 07:50:10 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Wrote map to /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.png and /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.thumb.png
07/11/2013 07:50:05 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/11/2013 07:50:04 PM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Map: /var/www/cacti/plugins/weathermap/configs/simple.conf -> /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.html & /var/www/cacti/plugins/weathermap/output/2d3f3231965aefa3dea2.png
07/11/2013 07:50:04 PM - WEATHERMAP: Poller[0] Weathermap 0.97c starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/11/2013 07:50:04 PM - SYSTEM STATS: Time:1.7030 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/11/2013 07:45:05 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Thu, 11 Jul 13 19:45:05 +0200: 0 maps were run in 0 seconds with 0 warnings. 
Please help.
KamranJ
Posts: 4
Joined: Tue Jul 23, 2013 4:06 am

Re: Creating a Map does nothing

Post by KamranJ »

Hi netbus

did you manage to get this working? I have the exact same issue - running weathermap 0.97c. The first issue I had was directory permissions which I just blew away with 777 (I know its not the right thing to do but this is just a lab box), but now when I try to create a new map nothing happens

I have ran my logs in debug mode but getting nothing usefull in them, anyone have any other ideas?

07/23/2013 09:45:05 AM - SYSTEM STATS: Time:4.5062 Method:cmd.php Processes:1 Threads:N/A Hosts:15 HostsPerProcess:15 DataSources:266 RRDsProcessed:151
07/23/2013 09:40:06 AM - SYSTEM SYSLOG STATS:Time:0.08 Deletes:0 Incoming:0 Removes:0 XFers:1 Alerts:0 Alarms:0 Reports:0
07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Tue, 23 Jul 13 09:40:06 +0100: 0 maps were run in 0 seconds with 0 warnings.
07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Final: memory_get_usage() says 12.1MBytes used. Limit is 512M
07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:242] Iterated all 0 maps.
07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:109] Iterating all maps.
07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Initial: memory_get_usage() says 12.1MBytes used. Limit is 512M

07/23/2013 09:40:06 AM - WEATHERMAP: Poller[0] Weathermap 0.97c starting - DEBUG mode is on
KamranJ
Posts: 4
Joined: Tue Jul 23, 2013 4:06 am

Re: Creating a Map does nothing

Post by KamranJ »

I guess noone knows the answer to this one..
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Creating a Map does nothing

Post by Howie »

What filename are you using for your new map? The editor in 0.97b/c will ignore filenames that don't fit a pattern to avoid some security issues (like writing .php files, for example).

The cacti.log doesn't show anything for the editor because it doesn't run from the cacti poller. Look in the apache error_log for editor-related errors.
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!)
KamranJ
Posts: 4
Joined: Tue Jul 23, 2013 4:06 am

Re: Creating a Map does nothing

Post by KamranJ »

Hi Howie

Sorry for the late reply - I have tried a few names CPT / CapeTown capetown / cape nothing works

I have had a look through my apache error log file as well and nothing shows up

[root@XXXXX httpd]# tail error_log -F
[Wed Aug 07 14:33:58 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Aug 07 14:33:58 2013] [notice] Digest: done
[Wed Aug 07 14:33:58 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Aug 07 14:35:35 2013] [error] [client 172.17.XX.XXX] File does not exist: /var/www/html/favicon.ico
[Wed Aug 07 14:36:53 2013] [notice] caught SIGTERM, shutting down
[Wed Aug 07 14:38:08 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 07 14:38:08 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Aug 07 14:38:08 2013] [notice] Digest: done
[Wed Aug 07 14:38:09 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Aug 07 14:44:28 2013] [error] [client 172.17.25.252] File does not exist: /var/www/html/favicon.ico


Im not sure if it helps but I was originally seeing the below in my error logs

[error] [client 172.17.x.x] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Johannesburg' for 'SAST/2.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 676, referer: http://172.17.x.x/cacti/plugins/weather ... wmap&plug=

But I resolved them with adding a date.timezone in php.ini and am no longer getting these errors
jascott
Posts: 3
Joined: Tue Apr 09, 2013 2:35 pm

Re: Creating a Map does nothing

Post by jascott »

I am getting the same problem. Apache log doesn't show anything useful.

[Wed Aug 07 11:44:09 2013] [error] [client xxxx] PHP Deprecated: Function split() is deprecated in /var/www/html/cacti-0.8.8a/plugins/weathermap/editor.php on line 32, referer: http://xxxx/cacti/plugins/weathermap/ed ... wmap&plug=
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Creating a Map does nothing

Post by Howie »

jascott wrote:I am getting the same problem. Apache log doesn't show anything useful.

[Wed Aug 07 11:44:09 2013] [error] [client xxxx] PHP Deprecated: Function split() is deprecated in /var/www/html/cacti-0.8.8a/plugins/weathermap/editor.php on line 32, referer: http://xxxx/cacti/plugins/weathermap/ed ... wmap&plug=
It does show you something useful!

So on line 32 of editor.php change split to explode.
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!)
KamranJ
Posts: 4
Joined: Tue Jul 23, 2013 4:06 am

Re: Creating a Map does nothing

Post by KamranJ »

Hi All

Managed to find a work around - its a permissions problem (I think) but my Linux knowledge isn't good enough to find a real fix

if you cp the sameple.conf file into a new file, the editor will show "read-only" even if you do a ls -l and it shows that apache and cacti users have full permissions to it

I simply created the new file, the did a chmod 777 on the file and everything sprung into action. Im assuming the editor uses a different account to create the files, but I cant work out which account it is...

Strange there is nothing in any log file for it

Would be good if someone can tell me where I can find the user account used by the editor

Hope this helps people

Kamran
jascott
Posts: 3
Joined: Tue Apr 09, 2013 2:35 pm

Re: Creating a Map does nothing

Post by jascott »

Thanks Howie. I did see the other forum post about using preg_split as well. I change split to explode and I know longer have that error message in the log.
netconnected
Posts: 9
Joined: Wed Apr 21, 2010 6:49 am
Location: Paris

Re: Creating a Map does nothing

Post by netconnected »

Hello all,

I have the same problem (and same workaround of KamranJ) :
when I try to create, or copy, one map with Editor : nothing.

In shell, if I copy one config file (and do chown www-data ... like configs folder), I can (fortunately) modify In Editor.
The behavior stay strange, because, I can create link but, if I want to remove one link, impossible with the button. I need to edit link and remove. I haven't this problem with nodes.

I have Debian 6, Cacti 0.8.8b and Weathermap 0.97c

I replace split by explode for avoid this message : "PHP Deprecated: Function split() ..." but that is not resolve my problem.

If you have any idea or news...
Have good week end !
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Creating a Map does nothing

Post by Howie »

Please can you paste the full config of the map you are trying to delete links from? I can only think it might be to do with unusual names for nodes or links.

If you can add links, then the file permissions are OK.
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!)
netconnected
Posts: 9
Joined: Wed Apr 21, 2010 6:49 am
Location: Paris

Re: Creating a Map does nothing

Post by netconnected »

Hi, sorry for my late reply, I thought we had not answered me, and, I goes in holiday...

So, I try to reproduce the problems just before this message and, all works !?
* map creation : ok
* map copy : ok
* Delete link : ok

Recently, I needed to reboot the machine, maybe that help to solve.

Thank
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests