W'Maps Tab - empty

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
frankmorgan
Posts: 7
Joined: Wed Jul 03, 2013 3:20 am

W'Maps Tab - empty

Post by frankmorgan »

Hi,

I'm having huge difficulty troubleshooting an issue I've got with showing maps under the Weathermaps tab in Cacti, I've had a trawl through the forums and it seems others have had this problem but the solutions and diagnostics they've found don't match anything I've got here. :(

Basically the editor is fine, the maps themselves look fine and the list is there in the management area, but when you click the tab it comes up with "You have no maps".

Looking at other posts I can confirm I have "Added" the maps correctly in management. Apparently the plugin used to work, but as I'm new to this company I'm not sure whether or not any updates or changes have been made - I have been assured this is not the case, however I can't guarantee that!

The most common shout from the error.log file for Cacti seems to be;

Code: Select all

[Tue Jul 02 10:46:17 2013] [error] [client 12.34.567.890] PHP Notice:  Undefined index:  action in /www/cacti/html/plugins/weathermap/setup.php on line 146, referer: http://cacti.mycompany.co/plugins/weathermap/weathermap-cacti-plugin.php
^^ I saw Howie posted a quick fix for this problem which I'd run but it didn't sort the problem. Also a similar error comes up for the Quicktree plugin so I'm guessing this isn't actually a problem with W'Maps at all and I'm not sure it would affect the nothing in the W'Maps tab thing I'm experiencing anyway.

It's driving me nuts, can anyone help?

Incidentally - running Cacti v0.8.7g and W'Maps v0.96a

Thanks in advance, Laura.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: W'Maps Tab - empty

Post by Howie »

Wow - this is an old error... here's the fix without upgrading though:
http://forums.cacti.net/about33361.html
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!)
frankmorgan
Posts: 7
Joined: Wed Jul 03, 2013 3:20 am

Re: W'Maps Tab - empty

Post by frankmorgan »

Hi Howie,

Thanks for your reply :)

I'd seen this fix a while ago and have applied the code changes but the problem unfortunately still stands. W'maps tab still thinks there's nothing there :(

Here's code for verification;

Code: Select all

    140 function weathermap_top_graph_refresh($refresh)
    141 {
    142         if (basename($_SERVER["PHP_SELF"]) != "weathermap-cacti-plu        gin.php")
    143                 return $refresh;
    144
    145         // if we're cycling maps, then we want to handle reloads ou        rselves, thanks
    146         if(isset( $_REQUEST["action"] ) && $_REQUEST["action"] == '        viewmapcycle')
    147         {
    148                 return(86400);
    149         }
    150         return ($refresh);
    151 }
frankmorgan
Posts: 7
Joined: Wed Jul 03, 2013 3:20 am

Re: W'Maps Tab - empty

Post by frankmorgan »

Also healthy reports back from both check.php and check-gdbug.php scripts.
frankmorgan
Posts: 7
Joined: Wed Jul 03, 2013 3:20 am

Re: W'Maps Tab - empty

Post by frankmorgan »

AH also, just been going through the error.log again and found a few variants of this error (excuse the big gap in dates, just pulling out what seems most significant as I go through);

Code: Select all

[Wed Dec 15 23:53:49 2010] [error] [client 12.34.567.890] PHP Notice:  Undefined index:  action in /www/cacti/html/include/top_graph_header.php on line 102, referer: http://cacti.mycompany.co/graphs.php?host_id=-1&template_id=-1&x=0&y=0&filter=930&graph_rows=30&page=1

Code: Select all

[Tue Jul 02 10:46:17 2013] [error] [client 12.34.567.890] PHP Notice:  Undefined index:  action in /www/cacti/html/plugins/weathermap/setup.php on line 146, referer: http://cacti.mycompany.co/plugins/weathermap/weathermap-cacti-plugin.php

Code: Select all

[Mon Jul 01 15:46:50 2013] [error] [client 12.34.567.890] PHP Notice:  Undefined index:  action in /www/cacti/html/plugins/weathermap/setup.php on line 146, referer: http://cacti.mycompany.co/data_sources.php?host_id=79&ds_rows=30&filter=&template_id=-1&method_id=-1&page=1
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: W'Maps Tab - empty

Post by Howie »

The first of those 3 is just Cacti and not Weathermap... so I think this is still the same issue from the old post. It is fixed in more recent versions of Cacti and plugin architecture.

I'd suggest an upgrade for at least Cacti+PIA. It's fairly simple to make a copy of the cacti database and test with that.
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