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    


Node name Question ( internal name ) !!!

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



Joined: 17 Aug 2006
Posts: 48

PostPosted: Fri Jan 05, 2007 1:07 pm    Post subject: Node name Question ( internal name ) !!! Reply with quote

Dear Howei/All,

I have to problem to change the Internal name from the WeatherMap Editor ???

For example:
I need to change the Internal name "node1167923898". Single can be changed editing the file of the maps .conf ??

I would like to change it from the graphical publisher not to have to do it from the publisher I saw.

Thanks ,
Best Regards.

Telco
Back to top
MagicOneXXX



Joined: 19 Dec 2006
Posts: 49

PostPosted: Fri Jan 05, 2007 2:02 pm    Post subject: Bug Reply with quote

AFAIK, this is either a bug or an unimplemented feature. The Editor is in either alpha or beta at the moment, so some stuff is broken.

Personally, I can't get the internal name to change either.
Back to top
chadd
Cacti User


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

PostPosted: Fri Jan 05, 2007 2:02 pm    Post subject: Re: Node name Question ( internal name ) !!! Reply with quote

TELCO wrote:
Dear Howei/All,

I have to problem to change the Internal name from the WeatherMap Editor ???

For example:
I need to change the Internal name "node1167923898". Single can be changed editing the file of the maps .conf ??

I would like to change it from the graphical publisher not to have to do it from the publisher I saw.

Thanks ,
Best Regards.

Telco


Right now, the only way I know to be able to edit the internal name is to edit the config file directly. What I do is go between the editor and VI to get everything the way I want it. I found the following method the most time efficient:

Add a node via the editor, then open the file, skip down to the end (vi ^G) change the internal node name via cut-n-paste, add the line to tell weathermap to display the node label above or below the node (or whereever) , then save and exit. Then, reload the editor in order to read in the changes you just made.

I add all the nodes I will have on the map first in the above manner.

Then, I add each link, by creating the link in the editor, then opening the config and skipping to the end of the file to the last link added. There I add the direction to which I want the link to attach to each node, save and exit.

I then go back to the editor, reload to get the new additions, and add all the other info that makes the link work.

That's basically it. When I have all the nodes, and all the links, then I use the editor to just move stuff around.

I have found that if you have LARGE maps (like me), you will need to edit your php.ini file to allow php scripts to upload and open more than the default of 2M. I have 5M+ config files... Also, give php.ini a much higher memory_limit than the default 8M, or you will have problems - whatever you can spare. I am not sure on exactly how much it could use, but I gave it 512M just to be safe. It wasn't happy with 16M or 32M (slowness and some other problems) so I just jumped it up to 512M and called it good.

Hope this helps. It took me a while to get into a rhythm creating maps. Oh, a little visio/gimp action works well for node icons I have found . Have fun.
Back to top
Howie
Cacti Guru User


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

PostPosted: Fri Jan 05, 2007 4:47 pm    Post subject: Re: Bug Reply with quote

MagicOneXXX wrote:
AFAIK, this is either a bug or an unimplemented feature. The Editor is in either alpha or beta at the moment, so some stuff is broken.

Personally, I can't get the internal name to change either.


OK. This one I have finally fixed in 0.9's editor. It should work with the old version too, so as far as I know you can download http://wotsit.thingy.com/haj/cacti/php-weathermap/editor.php.gz, and replace the existing editor.php (make a backup!). You should then be able to rename nodes (and it also tracks the links that refer to those nodes properly). If it doesn't work, just switch back, but I think it'll work.

It has been in the README as an outstanding bug for a while, though. So that makes it a feature
Back to top
Howie
Cacti Guru User


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

PostPosted: Fri Jan 05, 2007 4:50 pm    Post subject: Re: Node name Question ( internal name ) !!! Reply with quote

chadd wrote:

I have found that if you have LARGE maps (like me), you will need to edit your php.ini file to allow php scripts to upload and open more than the default of 2M. I have 5M+ config files... Also, give php.ini a much higher memory_limit than the default 8M, or you will have problems - whatever you can spare. I am not sure on exactly how much it could use, but I gave it 512M just to be safe. It wasn't happy with 16M or 32M (slowness and some other problems) so I just jumped it up to 512M and called it good.


How many nodes/links is that? or is it lots of customisation per-node?

chadd wrote:

Hope this helps. It took me a while to get into a rhythm creating maps. Oh, a little visio/gimp action works well for node icons I have found . Have fun.


This will improve when I get this AJAX editor stuff working. Whenever that turns out to be
Back to top
chadd
Cacti User


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

PostPosted: Fri Jan 05, 2007 5:06 pm    Post subject: Reply with quote

Well, I removed a lot of things from the largest map recently bringing it down to 3.2M (got rid of a lot of old equipment:), and that is ~60 nodes, and ~64 Links. (a wc of the file gave me 125 nodes and 64 links, but I know that is not right) No customization really. Nice work on this BTW. Can't wait for the new editor !

Oh, a friend of mine told me this, and I am not sure if it is in your manuals or not, but when you are aggregating links in weathermap, you can put DS space DS in the Datasource field and it will add them together.. NICE! (for those that didn't know that... like me
Back to top
Howie
Cacti Guru User


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

PostPosted: Fri Jan 05, 2007 7:01 pm    Post subject: Reply with quote

chadd wrote:
Well, I removed a lot of things from the largest map recently bringing it down to 3.2M (got rid of a lot of old equipment:), and that is ~60 nodes, and ~64 Links. (a wc of the file gave me 125 nodes and 64 links, but I know that is not right) No customization really. Nice work on this BTW. Can't wait for the new editor !

Oh, a friend of mine told me this, and I am not sure if it is in your manuals or not, but when you are aggregating links in weathermap, you can put DS space DS in the Datasource field and it will add them together.. NICE! (for those that didn't know that... like me


See the FAQ "I still have two links, but I use MLPPP, and I want to see a single link on the map for both physical lines."

You can also use it to do strange things like take the 'in' data from one rrd and the 'out' from another.

I think maybe that the manual is due a rewrite, too. It's hard to get it so that there's a useful intro, but it still shows you the more unusual stuff, though.
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