How to draw lines at an angle of 90°

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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 »

Not sure what you mean by rectangular frame... you mean the box around the node? It's always centred at the POSITION point.
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 Jun 15, 2020 6:57 am Not sure what you mean by rectangular frame... you mean the box around the node? It's always centred at the POSITION point.
Hmm, i meah the box, on the link.
Attachments
Без названия1_20200615151025.png
Без названия1_20200615151025.png (84.54 KiB) Viewed 5113 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 »

Check out the diagram on the front page of the manual. It covers a lot of these (including this one).

https://www.network-weathermap.com/manu ... /howto.png
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 Jun 15, 2020 7:13 am Check out the diagram on the front page of the manual. It covers a lot of these (including this one).

https://www.network-weathermap.com/manu ... /howto.png
I have seen this picture. When i type BWLABELPOS (Example 7) nothing happens... Example:
LINK node03018-node03020
WIDTH 2
BWLABELPOS 7
NODES node03018 node03020
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 »

1) The logs will tell you that this is invalid

2) The reason it's invalid is that you need to give TWO numbers. One for the 'in' box and one for the 'out' box.
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 Jun 15, 2020 7:25 am 1) The logs will tell you that this is invalid

2) The reason it's invalid is that you need to give TWO numbers. One for the 'in' box and one for the 'out' box.
Thank you, i managed to do this!
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, your previous answers very helpful, pls, can u give another one answer for my question? :( I found similar topic, but cannot find solution for my problem.
We have a node, how i can change the color in this rectangle? By default is white. And for example, when Node crashing, it change color in red or yellow. I attach the picture below. Thank you Howie!
Attachments
Без іме6768768ні.png
Без іме6768768ні.png (8.67 KiB) Viewed 5092 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 »

Where are you getting the information that it is crashing from? Cacti status or something else?
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: Thu Jul 02, 2020 2:47 am Where are you getting the information that it is crashing from? Cacti status or something else?
From Links, i mean... when speed down to 0%, the state changes (for example) in red. Yeah, from table (Where color matches speed).
It will be a lot of manual work... nodes often have more than one link. So you'd want the total of all those links. And when you add a new link, add it to the right nodes.

Code: Select all

SCALE zerotraffic 0 0.1   255 0 0
SCALE zerotraffic 0 100  0 255 0

NODE n1
  TARGET link1.rrd link2.rrd link3.rrd
  USESCALE zerotraffic
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 »

EAleg wrote: Thu Jul 02, 2020 3:46 am
Howie wrote: Thu Jul 02, 2020 2:47 am Where are you getting the information that it is crashing from? Cacti status or something else?
From Links, i mean... when speed down to 0%, the state changes (for example) in red. Yeah, from table (Where color matches speed).
It will be a lot of manual work... nodes often have more than one link. So you'd want the total of all those links. And when you add a new link, add it to the right nodes.

Code: Select all

SCALE zerotraffic 0 0.1   255 0 0
SCALE zerotraffic 0 100  0 255 0

NODE n1
  TARGET link1.rrd link2.rrd link3.rrd
  USESCALE zerotraffic

Oka-a-y, what if vice versa? :-? How to draw so that only nodes are visible on the map? It turns out that the links should be invisible or something... There are 5 cities, say, and make sure that only they are displayed in working condition. And if the node falls off, it lights up in red.
Attachments
hren'.png
hren'.png (22.58 KiB) Viewed 5086 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 »

Do the same thing with the node targets, but don't add the links. The game is the same - you need a value to check if it's zero.
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 »

Good Day Howie, pls, tell me, how make one link between two maps, for example map#1 Kiev to map#2 London? What i must type in link or node?

I found this guide https://www.network-weathermap.com/2016 ... ween-maps/ but i cannot understand this guide )=

Thank you for answer!
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 »

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.
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 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.
E-m-m-m what i must type in the LINK? O_o Or how i must connect link?
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.
How to draw a link that will go beyond the boundaries of the map?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest