Link circuit in curve forms in Weathermap 0.81

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
TELCO
Cacti User
Posts: 59
Joined: Thu Aug 17, 2006 9:37 am

Link circuit in curve forms in Weathermap 0.81

Post by TELCO »

Dear All , :lol:

I need to add more of 1 Link between 2 nodes. It is why I need to know how as to place links in form of curves so that links is not superposed to me between the 2 nodes. How I make this ? :oops:

Thanks :wink:
Best Regards
TELCO
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Link circuit in curve forms in Weathermap 0.81

Post by Howie »

TELCO wrote:Dear All , :lol:

I need to add more of 1 Link between 2 nodes. It is why I need to know how as to place links in form of curves so that links is not superposed to me between the 2 nodes. How I make this ? :oops:

Thanks :wink:
Best Regards
TELCO
It's in the manual, and the FAQ (several different variations). Both the manual and FAQ are in the docs/ folder of the zip file. The entry is "I need to have more than one link from node A to node B, but they just overlap...how can I do this?"
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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

From Howie's manual:

http://wotsit.thingy.com/haj/cacti/php- ... /main.html
LINK sync-site2a
NODES sync site2
WIDTH 3
VIA 650 380
TARGET data/sync_traffic_in_251.rrd
OVERLIBGRAPH http://support.mynet.net/cacti/graph_im ... _width=300
BANDWIDTH 1M
INFOURL http://support.mynet.net/cacti/graph.ph ... aph_id=252
TELCO
Cacti User
Posts: 59
Joined: Thu Aug 17, 2006 9:37 am

Post by TELCO »

Ok ! Correct. :D


Editing the configuration file of the map (.conf ) I could do it correctly. There is some form to do it in graphical form with the version of WeatherMap 0.81. It does not bother to me to have to editing the configuration file of the map. ??
I need see the position in the map ( X , Y )

My great problem is not to see the positions ( X , Y ) from the Weathermap 0.81 editor . :oops:

There is some way to see the positions from the editor of the Weathermap 0.81 editor ?? :roll:


Thanks :wink:
Best Regards
TELCO
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TELCO wrote:Ok ! Correct. :D


Editing the configuration file of the map (.conf ) I could do it correctly. There is some form to do it in graphical form with the version of WeatherMap 0.81. It does not bother to me to have to editing the configuration file of the map. ??
I need see the position in the map ( X , Y )

My great problem is not to see the positions ( X , Y ) from the Weathermap 0.81 editor . :oops:

There is some way to see the positions from the editor of the Weathermap 0.81 editor ?? :roll:


Thanks :wink:
Best Regards
TELCO
It's not really an 'easy' way, but what I do is create a node where I want the curve to go, then look in the config file with a text editor to get those coordinates. The next version of the editor will be better for this.
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Is there any update on getting security for the editor.php? Just sort of uneasy the longer I go with everyone who has weathermap access being able to get to editor if they know the URL.. I will take a hack for the time being ;-)...
TELCO
Cacti User
Posts: 59
Joined: Thu Aug 17, 2006 9:37 am

Post by TELCO »

:o With some version of WeatherMap can be done the curves from the graphical editor ??? I have version 0.81.

To as he would have it to upgrade ???

As I can upgrade of easy form my version to another more safe ???


Thanks :wink:
Best Regards
TELCO
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TELCO wrote::o With some version of WeatherMap can be done the curves from the graphical editor ??? I have version 0.81.

To as he would have it to upgrade ???

As I can upgrade of easy form my version to another more safe ???
0.82 is the latest. 0.9 is coming soon. Neither have much new in the editor. After 0.9 I will work on the editor some more, because 0.9 makes a LOT of changes in the rest of the program.

Someone else is working on another editor too, but I know that it doesn't do VIAs yet (or even is released).

Upgrading from one version to the next is fairly painless. Just make sure to back up your config files, move everything out of the way, unzip the new one, and put your configs and images back. If you don't see problems with 0.81, then 0.82 is not very different. Have a look at the CHANGES log on the website - it's small bugfixes.
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

So, does anyone have a way to force a person to have 'admin' privileges to access the editor.php page? Sorry if you have already answered this Howie, but I have not found the answer.. Thanks in advance.
TELCO
Cacti User
Posts: 59
Joined: Thu Aug 17, 2006 9:37 am

Post by TELCO »

Dear Howie ,

:o As I can segure the access to my editor ??? I want to avoid that somebody that knows the URL hack the site or modifies the maps. :oops:

Thanks :wink:
Best Regards
TELCO
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote:So, does anyone have a way to force a person to have 'admin' privileges to access the editor.php page? Sorry if you have already answered this Howie, but I have not found the answer.. Thanks in advance.
The editor knows nothing about Cacti (apart from that picker page), so no permissions changes in Cacti will make much difference.

chmod 0 editor.php or chown -R not-the-webserver-user configs/; chmod 644 configs/* is what I use. Then unix takes care of things for you. It assumes that anyone with admin access to cacti also has admin access to the box, I guess...

For apache, you could also use a FilesMatch section to require some additional Basic Auth or something similar for editor.php

It might be possible to link this into Cacti if you use external auth with Cacti, but I don't know anything about how/if that works.
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Howie wrote:
chadd wrote:So, does anyone have a way to force a person to have 'admin' privileges to access the editor.php page? Sorry if you have already answered this Howie, but I have not found the answer.. Thanks in advance.
The editor knows nothing about Cacti (apart from that picker page), so no permissions changes in Cacti will make much difference.

chmod 0 editor.php or chown -R not-the-webserver-user configs/; chmod 644 configs/* is what I use. Then unix takes care of things for you. It assumes that anyone with admin access to cacti also has admin access to the box, I guess...

For apache, you could also use a FilesMatch section to require some additional Basic Auth or something similar for editor.php


But if I changed the permissions as you suggested, then I would have to change them back if I wanted to use the editor to edit the config files.. Right? I mean, the www user (or apache) user has to have write access to those files for the editor to work, no? Anyway, I guess it's not too big of a deal to remember to change the permissions to read only for the www user after I am done with the editor each time. I wonder how difficult it would be to add a section to the editor.php that hooks it into the authentication mechanism for Cacti?
It might be possible to link this into Cacti if you use external auth with Cacti, but I don't know anything about how/if that works.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote: But if I changed the permissions as you suggested, then I would have to change them back if I wanted to use the editor to edit the config files.. Right? I mean, the www user (or apache) user has to have write access to those files for the editor to work, no?
Yup.
chadd wrote: Anyway, I guess it's not too big of a deal to remember to change the permissions to read only for the www user after I am done with the editor each time. I wonder how difficult it would be to add a section to the editor.php that hooks it into the authentication mechanism for Cacti?
You need to (at least) create a whole bunch of entries in the Cacti auth table in setup.php for each possible command the editor might get. Since I'm planning on rewriting the editor soon, I'm not going to spend the time on the old one. I did try it quickly once before (when I first added the Cacti plugin stuff), and there was another problem, although I don't recall what it was right now. Something to do with names clashing.
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!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Thanks a ton Howie. I just took a look at it quickly, and it did seem like a lot of work. I just ended up changing the permissions on the editor.php file to 0600. That way the www user can't run it, and I don't have to worry about permissions on all the config files getting hosed up. When I want to use it, I will change it back to 0644 and it will work again. Thanks again. Defiantly looking forward to the re-write of the editor. This is a great project, and all my bosses always think the maps are the greatest thing since sliced bread ;-), but they are a lot of work..
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests