Node name Question ( internal name ) !!!

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

Node name Question ( internal name ) !!!

Post by TELCO »

Dear Howei/All, :lol:

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

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 , :wink:
Best Regards.

Telco
MagicOneXXX
Cacti User
Posts: 59
Joined: Tue Dec 19, 2006 4:35 pm

Bug

Post by MagicOneXXX »

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.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Re: Node name Question ( internal name ) !!!

Post by chadd »

TELCO wrote:Dear Howei/All, :lol:

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

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 , :wink:
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.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Bug

Post by Howie »

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- ... tor.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 ;-)
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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Node name Question ( internal name ) !!!

Post by Howie »

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? :o 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 :oops:
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 »

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 :-)
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: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.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests