How to draw a circular, surrounded, star topology?
Like this:
[HELP]How to draw a circular, surrounded, star topology?
Moderators: Developers, Moderators
[HELP]How to draw a circular, surrounded, star topology?
- Attachments
-
- 31.png (69.02 KiB) Viewed 3387 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: [HELP]How to draw a circular, surrounded, star topology?
You can position nodes relative to each other, and you can do that with either regular pixel offsets or polar coordinates (angle+distance). So you need to do a little math to divide 360 into the number of child nodes, so that they are evenly spaced, and then do something like this:
The nice thing with this is that you can move the central node and the others will just follow.
Code: Select all
# this is the central node
NODE lax
POSITION 200 200
LABEL LAX
# this is a node 100 pixels away at 45 degrees
NODE AS1234
LABEL AS1234
POSITION lax 100r45
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!)
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!)
Re: [HELP]How to draw a circular, surrounded, star topology?
Thank you very much!Howie wrote:You can position nodes relative to each other, and you can do that with either regular pixel offsets or polar coordinates (angle+distance). So you need to do a little math to divide 360 into the number of child nodes, so that they are evenly spaced, and then do something like this:
The nice thing with this is that you can move the central node and the others will just follow.Code: Select all
# this is the central node NODE lax POSITION 200 200 LABEL LAX # this is a node 100 pixels away at 45 degrees NODE AS1234 LABEL AS1234 POSITION lax 100r45
Re: [HELP]How to draw a circular, surrounded, star topology?
A quick note to people like myself who read just that one comment in the configuration and not the whole thread, then spend half an hour creating a very nice post with example code, screenshots (spending a while regenerating the map with screenshot mode etc.) and a problem description of how things get very wrong:Howie wrote:Code: Select all
# this is a node 100 pixels away at 45 degrees POSITION lax 100r45
The comment is wrong, 100 is the angle, 45 is the distance...
Also, Howie: Could you please put this in the reference section of the manual under "Node-specific Configuration Directives" -> "POSITION"? That would have saved me some head scratching
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: [HELP]How to draw a circular, surrounded, star topology?
D'oh! Sorry!
Yes, I'll make sure it is updated (and correctly)
Yes, I'll make sure it is updated (and correctly)
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!)
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!)
Re: [HELP]How to draw a circular, surrounded, star topology?
Howie wrote:You can position nodes relative to each other, and you can do that with either regular pixel offsets or polar coordinates (angle+distance). So you need to do a little math to divide 360 into the number of child nodes, so that they are evenly spaced, and then do something like this:
The nice thing with this is that you can move the central node and the others will just follow.Code: Select all
# this is the central node NODE lax POSITION 200 200 LABEL LAX # this is a node 100 pixels away at 45 degrees NODE AS1234 LABEL AS1234 POSITION lax 100r45
This is awesome!
Who is online
Users browsing this forum: No registered users and 1 guest