How to draw lines at an angle of 90°

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

Howie wrote: Mon Sep 28, 2020 2:34 am UImm, I wrote the guide, so I guess I'm the wrong person to answer...

You get the URL of the other map's Cacti page, and you put it in INFOURL for the node you want to click on the first map.
Or, for example, there is a large area, this area includes regions. And for example, the first map is an area where large cities are located, and when you click on a city, an area (second map) opens up that adjoins this city.

How do this?
Attachments
map.png
map.png (35.45 KiB) Viewed 7447 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to draw lines at an angle of 90°

Post by Howie »

From your diagram - you make the regions in the big map NODEs, and add an INFOURL line with the URL of the other map.

To make a map link arrow that literally goes off the side of a map (so you can't see all of it), you can place NODEs off the side of the map. (e.g. map width is 1000, NODE has POSITION 1200 200)

But those are two completely different things. I don't understand which one you want.
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!)
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

Howie wrote: Mon Sep 28, 2020 4:44 am From your diagram - you make the regions in the big map NODEs, and add an INFOURL line with the URL of the other map.

To make a map link arrow that literally goes off the side of a map (so you can't see all of it), you can place NODEs off the side of the map. (e.g. map width is 1000, NODE has POSITION 1200 200)

But those are two completely different things. I don't understand which one you want.
Both options were useful to me, thanks)
And now another question, what if these cards ALREADY exist?
For example, a map with Kiev and London? How to make a link between them? I need to add a node?
Your answers really help me, thank you for your help. There is no one else to ask.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to draw lines at an angle of 90°

Post by Howie »

Make them into nodes. Add a link between the nodes. Links can only go between nodes.

You can make the node look like the existing 'card' by making it a NODE with no label and an ICON which is an image of the existing card.

e.g. use something like Greenshot, or Paint.net to grab the box as a separate PNG file. And then:

Code: Select all

NODE kiev
   POSITION 200 500
   ICON my-kiev-box.png
   LABEL 
   # ^^ to remove the label from the node
   LABELOUTLINECOLOR none
   # ^^ to remove the box around the label
   
 [same kind of thing for London]
   
 LINK link1
    NODES kiev london
    [normal link config for target, if you want it]
    
 
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!)
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

Thank you, another question, how to combine two physical channels into one?
I saw a link to the guide, but the link is broken) =
That is, it turns out that we combine two links.

And... how find id node?( its for target.
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

And can i add small animation on map? Example, fire, when node crashes.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to draw lines at an angle of 90°

Post by Howie »

EAleg wrote: Mon Sep 28, 2020 5:46 am And can i add small animation on map? Example, fire, when node crashes.
No.
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: How to draw lines at an angle of 90°

Post by Howie »

EAleg wrote: Mon Sep 28, 2020 5:44 am Thank you, another question, how to combine two physical channels into one?
I saw a link to the guide, but the link is broken) =
That is, it turns out that we combine two links.

And... how find id node?( its for target.
What do you want to see on the map? One link? Two links?

For one link, draw the map as usual, and use the portchannel interface for the target.

For two links, add two links. And then use either VIA or offsets (look in the LINKS page of the manual) to make it so they are not on top of each other.
Here's an example: viewtopic.php?t=22867
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!)
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

No, no, where i can find this id? more than a month I can not find. Sorry. Portchannel we can sign...
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

Even when I go to the device where the link is on top, the router number is written at the end, and it's still not the same.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to draw lines at an angle of 90°

Post by Howie »

I don't understand what you mean by ID, but this is where you would find the target filename to use (replace <path_rra> with the path to your cacti rra directory):
2020-09-28 16_31_55-Console -_ Data Sources.png
2020-09-28 16_31_55-Console -_ Data Sources.png (34.95 KiB) Viewed 7425 times
2020-09-28 16_32_48-Console -_ Data Sources -_ (Edit).png
2020-09-28 16_32_48-Console -_ Data Sources -_ (Edit).png (24.77 KiB) Viewed 7425 times
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!)
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

I want, that colour or icon changes when NODE dawn, for this i must point in TARGET id NODE. and one more thing, I do not use Cacti, I have a LibreNMS... Thank you for answer ^_^
EAleg
Cacti User
Posts: 51
Joined: Wed Jun 10, 2020 3:56 am

Re: How to draw lines at an angle of 90°

Post by EAleg »

Hello Howie, how to add Cyrillic?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests