VIASTYLE angled issues

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

VIASTYLE angled issues

Post by rufi86 »

HI

I have some issues with VIASTYLE angled. How can i configure that ?
LINK node08140-node04456a
NODES node08140 node04456
VIASTYLE angled
VIA 147 158
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: VIASTYLE angled issues

Post by rufi86 »

???
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: VIASTYLE angled issues

Post by Pucho »

Have you read your own post?

What's that you want? If VIASTYLE is not doing what you need, post an screenshot, otherwise people would have to create a map with your setting to give you any advise.

What's wrong with your settings?
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: VIASTYLE angled issues

Post by rufi86 »

Pucho wrote:Have you read your own post?

What's that you want? If VIASTYLE is not doing what you need, post an screenshot, otherwise people would have to create a map with your setting to give you any advise.

What's wrong with your settings?

This is what I want to achieve

Image

This is my current config of 'node01187' to 'node05052'
LINK node01187-node05052
NODES node01187 node05052
VIA 379 798
And part of global config
# Automatically generated by php-weathermap v0.97a


BACKGROUND images/WAN_Edge_Cacti_BACKGROUND_v3.png
WIDTH 1125
HEIGHT 1049
HTMLSTYLE overlib
KEYFONT 1
TITLE WAN Edge v2
TIMEPOS 1123 6 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 513 448 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1 255 255 255
SCALE DEFAULT 1 10 140 0 255
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0

SET key_hidezero_DEFAULT 1

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
LABELFONT 1
MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
WIDTH 3
BWLABEL bits
BANDWIDTH 10000M

Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: VIASTYLE angled issues

Post by Atreides »

Hello,
I think you need to use multiple VIA :

LINK sw-GI9
VIASTYLE angled
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=475
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=475&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /var/www/html/cacti/rra/sw_traffic_in_478.rrd
NODES sw GI9
VIA 1200 835
VIA 1450 835
VIA 1450 620

For each corner you make, you need a VIA with coordonates. In my example I have 3 VIA's, 3 90 degree corners. It looks like this :
Attachments
via style angled 3 corners.jpg
via style angled 3 corners.jpg (15.11 KiB) Viewed 2862 times
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: VIASTYLE angled issues

Post by Pucho »

Yes, that's right.

This is an example:

Code: Select all

# regular NODEs:
NODE Test
	LABEL Test
	ICON images/BladeChassis.jpg
	POSITION 118 87

NODE Test2
	LABEL Test2
	ICON 100 100 images/Cisco2960-24.png
	POSITION 601 98


# regular LINKs:
LINK Test-Test2
	WIDTH 5
	VIASTYLE angled
	NODES Test Test2
	VIA 118 300
	VIA 601 300
	BANDWIDTH 1000M
And this is what you get
chrome_2017-07-26_09-42-23.png
chrome_2017-07-26_09-42-23.png (23.87 KiB) Viewed 2858 times
As Atreides said, you could play even more by adding more VIAs.

Cheers,
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: VIASTYLE angled issues

Post by rufi86 »

How can I do multiple VIA from Link properties in weathermap edit ?
I think i can do only one VIA from GUI? right ?
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: VIASTYLE angled issues

Post by Atreides »

Imho you should edit directly on config file on server. I found out that editing in GUI is tricky and can ruin everything, you need to be extra carefull when you start a new line, or put a space.
Edit with nano/vi/vim from linux server.
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: VIASTYLE angled issues

Post by Pucho »

You could simply do it from the EDIT button BUT yes, be careful. I think the GUI would be better because you want to look at the results and the very moment and not be ALT TABing all the time to look at the results...

I only edit the file on the box for things like SCALES that you can't do it on any way from the GUI.
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests