delete link not working

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

delete link not working

Post by bigrow »

Hi Folks

good morning

Here is something interesting......

I just upgraded cacti from 8.8a to 8.8c and weathermap from 097a to 097c

it look like the delete link button no longer works. I made a simple 3 node map and full meshed it.
when I select a link and click delete nothing happens it is still there. However if I delete the node
the links get removed along with the node.................... any ideas???????

thanks
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

Hi Folks

has anyone else have this same problem with the delete links?

thanks
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: delete link not working

Post by JohnYYC »

bigrow wrote:Hi Folks

has anyone else have this same problem with the delete links?

thanks

I have the same problem. I usually just edit the config manually via the command line to remove the link. But it sure would be great if we could get this fixed.
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

agreed

I can edit files vi vi by hand but some of my junior members don't know how to spell unix.......

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

Re: delete link not working

Post by Howie »

Which browser are you guys using?
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!)
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: delete link not working

Post by JohnYYC »

Howie wrote:Which browser are you guys using?
The issue is present on both windows and mac. My versions:

OS: OS X 10.9.5 and Windows 7 Enterprise
Browsers: Firefox 36.0.1 and Chrome 41.0.2272.104 (64-bit) (On both OS's)

If you need anymore info from me please let me know.

Cheers!
bboy8012
Cacti User
Posts: 54
Joined: Thu May 01, 2014 8:27 am

Re: delete link not working

Post by bboy8012 »

I actually had that issue or something similar to it where I couldn' delete a link or node. I changed the user:group on the config file under the weathmap plugin, somehow it was root:root and changed it to match the rest apache:apache
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

it does it with IE and firefox.

the delete link just doesn't delete the link.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: delete link not working

Post by Howie »

OK - and are there any errors in the Apache error log when you try?

One thing I have a mail about for this:

Code: Select all

change
               if(isset($map->links[target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;

to  
               if(isset($map->links[$target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;
Does that help?
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!)
chefwear
Posts: 3
Joined: Thu Mar 20, 2014 11:57 am

Re: delete link not working

Post by chefwear »

Howie wrote:OK - and are there any errors in the Apache error log when you try?

One thing I have a mail about for this:

Code: Select all

change
               if(isset($map->links[target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;

to  
               if(isset($map->links[$target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;
Does that help?
Yes, this fixed my issue of not being able to delete the links between nodes. Thanks, Howie.

For those wondering, the config file you need to edit is editor.php. Replace the 'if' block below the 'case "delete_link" section. I am running Weathermap version 0.97c.
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: delete link not working

Post by JohnYYC »

Howie wrote:OK - and are there any errors in the Apache error log when you try?

One thing I have a mail about for this:

Code: Select all

change
               if(isset($map->links[target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;

to  
               if(isset($map->links[$target])) {
                    $log = "delete link ".$target;
                    unset($map->links[$target]);
                    $map->WriteConfig($mapfile);
                }
                break;
Does that help?
Thanks for this. Works now.
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

ok,

I'll give this a try


if(isset($map->links[$target])) it looks like my file is missing the $ in the target variable.....

will try tomorrow
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

this is all that is necessary is that correct?
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: delete link not working

Post by JohnYYC »

bigrow wrote:this is all that is necessary is that correct?
That's all I had to do.
bigrow
Posts: 49
Joined: Wed Jun 20, 2012 10:02 am

Re: delete link not working

Post by bigrow »

it works now


thanks for the fix!!!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests