Install issues, CactiEZ 0.7 and Weathermaps 0.97c

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
WinterST
Posts: 4
Joined: Wed Jun 26, 2013 2:16 am

Install issues, CactiEZ 0.7 and Weathermaps 0.97c

#1 Post by WinterST » Thu Jun 27, 2013 2:16 am

Hi,

Here is my system:
Cacti Version: 0.8.8a
Plugin Architecture Version: 3.1
Weathermap 0.97c


First some things I found and are not related to my issue:
This version of Weathermap shows up as version 0.97b in the plugin management, which I think relates to the following code in setup.php.

Code: Select all

function weathermap_version () {
        return array(   'name'          => 'weathermap',
                'version'       => '0.97b',
editor-config.php-dist is not included in the ZIP on the website http://www.network-weathermap.com/releases/0.97c although I am not sure it is needed in this version however it is discussed in the documentation.

and php-weathermap-0.97b.zip is a corrupted file/contains corrupt files, I can't extract all of its contents... (with windows explorer or 7-zip)
http://www.network-weathermap.com/files ... -0.97b.zip

also editor.php uses the function split() which is deprecated in php 5.3.0 . I got rid of php errors by replacing the original code with preg_split

Code: Select all

if( isset($_COOKIE['wmeditor']))
{
    $parts = split(":",$_COOKIE['wmeditor']); 
with this

Code: Select all

if( isset($_COOKIE['wmeditor']))
{
    $parts = preg_split("/:/",$_COOKIE['wmeditor']);
OK now to my issue I haven't been able to resolve.

I got weathermap installed so much that I can make maps in the editor with data sources from cacti however I can't view them in cacti...

Reason... I don't have wethermaps listed in the management console even though it is in user management and has a tab on the top of the screen.

any ideas why it is not appearing.

I've tested versions 0.97a, and 0.97c. I was going to test 0.97b but couldn't extract it with the tools at hand.

Cheers,

Winnie.

WinterST
Posts: 4
Joined: Wed Jun 26, 2013 2:16 am

Re: Install issues, CactiEZ 0.7 and Weathermaps 0.97c

#2 Post by WinterST » Thu Jun 27, 2013 2:21 am

Just following up with screenshot of what I see to make it clearer.
weathermap installation.png
My installation
weathermap installation.png (99.8 KiB) Viewed 3040 times
also I did not edit global.php with

Code: Select all

$plugins = array();
$plugins[] = 'weathermap';
Cacti told me to take it out.

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

Re: Install issues, CactiEZ 0.7 and Weathermaps 0.97c

#3 Post by Howie » Thu Jun 27, 2013 3:40 am

'explode' is the best replacement for split. I thought this was the one small change I made in 0.97c actually.

0.97b zip corruption is the reason for 0.97c :-) Also, because I just did a rezip, I forgot to bump the version number.

Your Cacti 0.8.8a looks TOTALLY different from mine! (downloaded from the Cacti site) - I'd suggest that in making all those cosmetic changes, somebody missed something.
Attachments
cacti-088a.png
cacti-088a.png (106.62 KiB) Viewed 3035 times
Weathermap 0.98 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: 5333
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Install issues, CactiEZ 0.7 and Weathermaps 0.97c

#4 Post by Howie » Thu Jun 27, 2013 3:41 am

I just noticed jQueryskin in your plugins - is that the 'new look'? Does Weathermap appear OK if you disable that?
Weathermap 0.98 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!)

WinterST
Posts: 4
Joined: Wed Jun 26, 2013 2:16 am

Re: Install issues, CactiEZ 0.7 and Weathermaps 0.97c

#5 Post by WinterST » Thu Jun 27, 2013 4:40 pm

Hi Howie,

That was exactly it. Disabling JQueryskin did the trick.

If I find a solution to get them both working together ill post it here.

Re explode(), yes I read that myself but stuck with what I read up on first.

Thanks for the quick and very good support,

Cheers,

Winnie

User avatar
blackstrip
Posts: 16
Joined: Tue Sep 10, 2013 10:45 pm

Re: Install issues, CactiEZ 0.7 and Weathermaps 0.97c [Solve

#6 Post by blackstrip » Wed Jul 15, 2015 10:20 am

WinterST wrote:Hi Howie,

That was exactly it. Disabling JQueryskin did the trick.

If I find a solution to get them both working together ill post it here.

Re explode(), yes I read that myself but stuck with what I read up on first.

Thanks for the quick and very good support,

Cheers,

Winnie
Because jqueryskin sub menu function not rigorous.
Just replace follow code to /plugins/jqueryskin/setup.php -> function filter_menu_item snippet to fix:

Code: Select all

function filter_menu_item($key, &$item, $realms) {
    if (array_search($key, $realms) === false) {
        if(strpos($key, '/') !== false) {
            $key = substr($key, strrpos($key, '/') + 1);
            if (strpos($key, '?') !== false) {
                $key = substr($key, 0, strpos($key, '?'));
            }
        }
        if (array_search($key, $realms) === false) {
            $item = null;
            return;
        }
    }
    if (is_array($item)) {
        foreach ($item as $k => &$subitem) {
            filter_menu_item($k, $subitem, $realms);
        }
    }
}

Post Reply