Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Link circuit in curve forms in Weathermap 0.81

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
TELCO



Joined: 17 Aug 2006
Posts: 48

PostPosted: Thu Jan 04, 2007 11:26 am    Post subject: Link circuit in curve forms in Weathermap 0.81 Reply with quote

Dear All ,

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 ?

Thanks
Best Regards
TELCO
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Thu Jan 04, 2007 11:55 am    Post subject: Re: Link circuit in curve forms in Weathermap 0.81 Reply with quote

TELCO wrote:
Dear All ,

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 ?

Thanks
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?"
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Jan 04, 2007 11:59 am    Post subject: Reply with quote

From Howie's manual:

http://wotsit.thingy.com/haj/cacti/php-weathermap/manual/0.81/pages/main.html

Quote:

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_image.php?local_graph_id=248&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
BANDWIDTH 1M
INFOURL http://support.mynet.net/cacti/graph.php?rra_id=all&local_graph_id=252
Back to top
TELCO



Joined: 17 Aug 2006
Posts: 48

PostPosted: Thu Jan 04, 2007 1:28 pm    Post subject: Reply with quote

Ok ! Correct.


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 .

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


Thanks
Best Regards
TELCO
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Thu Jan 04, 2007 3:13 pm    Post subject: Reply with quote

TELCO wrote:
Ok ! Correct.


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 .

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


Thanks
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.
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri Jan 05, 2007 11:43 am    Post subject: Reply with quote

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 ...
Back to top
TELCO



Joined: 17 Aug 2006
Posts: 48

PostPosted: Fri Jan 05, 2007 11:48 am    Post subject: Reply with quote

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
Best Regards
TELCO
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Fri Jan 05, 2007 12:08 pm    Post subject: Reply with quote

TELCO wrote:
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.
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri Jan 05, 2007 12:13 pm    Post subject: Reply with quote

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.
Back to top
TELCO



Joined: 17 Aug 2006
Posts: 48

PostPosted: Fri Jan 05, 2007 12:17 pm    Post subject: Reply with quote

Dear Howie ,

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.

Thanks
Best Regards
TELCO
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Fri Jan 05, 2007 12:19 pm    Post subject: Reply with quote

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.
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri Jan 05, 2007 12:25 pm    Post subject: Reply with quote

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.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Fri Jan 05, 2007 12:32 pm    Post subject: Reply with quote

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.
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri Jan 05, 2007 12:54 pm    Post subject: Reply with quote

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..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group