Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Link colors on the wrong side

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Rahvin_



Joined: 28 Dec 2007
Posts: 2

PostPosted: Fri Dec 28, 2007 11:14 pm    Post subject: [SOLVED] Link colors on the wrong side Reply with quote

My weathermap install draws the collors on the wrong side of the link as you can see in the following image. The bandwidth numbers on the link are correct, there is 25 mbit outgoing and 12 incoming. The purple arrow should point the other way and so should the blue one. Swapping them around by changing the order of the NODES or by changing the DS order in TARGET swaps both the label and the arrows, so its still the wrong order.


Picture 5.png
 Description:
 Filesize:  20.11 KB
 Viewed:  1740 Time(s)

Picture 5.png


Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2037
Location: United Kingdom

PostPosted: Sat Dec 29, 2007 6:43 am    Post subject: Reply with quote

Could you paste the whole config for that link please? (and the DEFAULT link)

My guess at the moment is that since you changed the position of the labels, it's not hard to get the in/out the wrong way around in the BWLABELPOS line.

It would normally be a high number then a low number: BWLABELPOS 75 25 is the default, for example.
Back to top
Rahvin_



Joined: 28 Dec 2007
Posts: 2

PostPosted: Sat Dec 29, 2007 8:11 am    Post subject: Reply with quote

Howie wrote:
Could you paste the whole config for that link please? (and the DEFAULT link)

My guess at the moment is that since you changed the position of the labels, it's not hard to get the in/out the wrong way around in the BWLABELPOS line.

It would normally be a high number then a low number: BWLABELPOS 75 25 is the default, for example.

Thx very much, that was indeed the problem.
BWLABELPOS 35 65

I guess I accidently swapped them when up and down were 0. I changed it to 65 35 and now it's ok.
Back to top
gkhnyldrm



Joined: 30 Apr 2008
Posts: 11
Location: Denizli,Turkey

PostPosted: Fri May 02, 2008 3:37 am    Post subject: Reply with quote

My weathermap links shows the colours on the wrong side and cacti images are wrong too,download and upload lines are inverted. Because of this wrong images I think weathermap retrieves wrong data from cacti and creates wrong links. To correct both upload and download traffic I changed inbound data source to -> (traffic_out) and outbound data source to -> (traffic_in) then cacti graphs recovered but links are still wrong. Then I undo my changes,Here is my weathermap image http://193.255.52.200/

For example 'mühendislik' has 250% outbound traffic and 20% inbound traffic,but it must be 250% download and 20%upload.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2037
Location: United Kingdom

PostPosted: Fri May 02, 2008 3:52 am    Post subject: Reply with quote

gkhnyldrm wrote:
My weathermap links shows the colours on the wrong side and cacti images are wrong too,download and upload lines are inverted. Because of this wrong images I think weathermap retrieves wrong data from cacti and creates wrong links. To correct both upload and download traffic I changed inbound data source to -> (traffic_out) and outbound data source to -> (traffic_in) then cacti graphs recovered but links are still wrong. Then I undo my changes,Here is my weathermap image http://193.255.52.200/

For example 'mühendislik' has 250% outbound traffic and 20% inbound traffic,but it must be 250% download and 20%upload.


Please post some of your weathermap config. Weathermap fetches the data you tell it to, so it's probably an issue in the config. You shouldn't need to change anything in Cacti.

If Cacti was showing the wrong data in the graph though, then that is an issue with your Cacti configuration (or the device that it is collecting data from).
Back to top
gkhnyldrm



Joined: 30 Apr 2008
Posts: 11
Location: Denizli,Turkey

PostPosted: Fri May 02, 2008 5:10 am    Post subject: Reply with quote

my weathermap config is below;

Code:
# Automatically generated by php-weathermap v0.95b


WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib

KEYPOS DEFAULT 868 61 Trafik Yükü
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   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

# DEFAULT definitions:
NODE DEFAULT
   MAXVALUE 100

LINK DEFAULT
   WIDTH 4
   BANDWIDTH 10M


# End of DEFAULTS section

# Node definitions:
NODE node09414
   LABEL FEF-C Blok
   POSITION 98 80

NODE node09420
   LABEL Mühendislik
   POSITION 50 260

NODE node09426
   LABEL Hastane
   POSITION 34 156

NODE node09431
   LABEL Egitim
   POSITION 33 395

NODE node09447
   LABEL Morfoloji
   POSITION 53 535

NODE node09479
   LABEL Lojmanlar
   POSITION 116 620

NODE node09489
   LABEL Havuz
   POSITION 300 550

NODE node09496
   ICON images/8814.PNG
   POSITION 470 342

NODE node01213
   LABEL FEF-B Blok
   POSITION 214 47

NODE node01220
   LABEL FEF-A Blok
   POSITION 342 46

NODE node01567
   LABEL Hali Saha
   POSITION 300 725

NODE node01583
   LABEL IIBF-A Blok
   POSITION 466 549

NODE node01588
   LABEL IIBF-B Blok
   POSITION 470 725

NODE node01686
   LABEL Temiz Enerji Evi
   POSITION 491 144

NODE node01691
   LABEL Toprak Enerji Evi
   POSITION 520 86

NODE node01699
   LABEL Kapali Spor Salonu
   POSITION 545 40

NODE node02154
   ICON images/Router.png
   POSITION 636 389

NODE node02484
   LABEL Bekilli MYO
   POSITION 855 661

NODE node02490
   LABEL Buldan MYO
   POSITION 752 725

NODE node02498
   LABEL Honaz MYO
   POSITION 924 270

NODE node02503
   LABEL Honaz Ek Bina
   POSITION 913 349

NODE node02509
   LABEL PAUHayat
   POSITION 921 463

NODE node02524
   LABEL Denizli MYO
   POSITION 654 725

NODE node02532
   LABEL Çivril MYO
   POSITION 921 584

NODE node02537
   LABEL ULAKBIM
   ICON images/Cloud-Filled.png
   POSITION 743 63

NODE node02771
   ICON images/firewall3.png
   POSITION 587 204


# End of NODE section

# Link definitions:
LINK node01213-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=88
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=88&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_91.rrd
   NODES node01213 node09496

LINK node09414-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=93
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=93&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_96.rrd
   NODES node09414 node09496

LINK node01220-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=83
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=83&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_86.rrd
   NODES node01220 node09496

LINK node09426-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=80
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=80&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_83.rrd
   NODES node09426 node09496

LINK node09447-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=81
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=81&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_84.rrd
   NODES node09447 node09496

LINK node09496-node09479
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=86
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=86&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_89.rrd
   NODES node09496 node09479
   BANDWIDTH 2M

LINK node09489-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=87
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=87&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_90.rrd
   NODES node09489 node09496

LINK node01583-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=82
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=82&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_85.rrd
   NODES node01583 node09496

LINK node09489-node01567
   WIDTH 2
   NODES node09489 node01567

LINK node01583-node01588
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=109
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=109&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/iibfa_blok_5500_traffic_in_112.rrd
   NODES node01583 node01588

LINK node01220-node01686
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=108
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=108&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/fefa_blok_5500_traffic_in_111.rrd
   NODES node01220 node01686

LINK node01220-node01691
   WIDTH 2
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=107
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=107&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/fefa_blok_5500_traffic_in_110.rrd
   NODES node01220 node01691

LINK node01220-node01699
   WIDTH 2
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=106
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=106&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/fefa_blok_5500_traffic_in_109.rrd
   NODES node01220 node01699
   BANDWIDTH 2M

LINK node02154-node02524
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=102
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=102&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_105.rrd
   NODES node02154 node02524
   BANDWIDTH 2M

LINK node02154-node02484
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=100
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=100&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_103.rrd
   NODES node02154 node02484
   BANDWIDTH 2M

LINK node02154-node02490
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=101
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=101&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_104.rrd
   NODES node02154 node02490
   BANDWIDTH 2M

LINK node02154-node02498
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=99
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=99&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_102.rrd
   NODES node02154 node02498
   BANDWIDTH 2M

LINK node02154-node02503
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=103
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=103&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_106.rrd
   NODES node02154 node02503
   BANDWIDTH 2M

LINK node02154-node02509
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=104
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=104&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_107.rrd
   NODES node02154 node02509
   BANDWIDTH 2M

LINK node02154-node02532
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=97
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=97&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_100.rrd
   NODES node02154 node02532
   BANDWIDTH 2M

LINK node09496-node02771
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=90
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=90&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_93.rrd
   NODES node09496:N node02771:W
   BANDWIDTH 100M

LINK node02154-node02537
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=98
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=98&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_101.rrd
   NODES node02154 node02537
   BANDWIDTH 70M

LINK node09431-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=95
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=95&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_98.rrd
   NODES node09431:E node09496:W
   VIA 230 340

LINK node09496-node09431
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=94
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=94&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_97.rrd
   NODES node09431:E node09496:W
   VIA 238 395

LINK node09420-node09496
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=92
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=92&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/8800_traffic_in_95.rrd
   NODES node09420 node09496


LINK node02771-node02154
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=105
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=105&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/site/rra/3com6040_traffic_in_108.rrd
   NODES node02771 node02154:N
   BANDWIDTH 100M


# End of LINK section

# That's All Folks!



Quote:
If Cacti was showing the wrong data in the graph though, then that is an issue with your Cacti configuration (or the device that it is collecting data from)


yes cacti is showing wrong data,upload and download traffic is inverted. I changed the inbound data source to 'traffic out' and outbound data source to 'traffic in' then cacti graphs recovered but weathermap links are still wrong side of the nodes.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2037
Location: United Kingdom

PostPosted: Fri May 02, 2008 6:24 am    Post subject: Reply with quote

gkhnyldrm wrote:


yes cacti is showing wrong data,upload and download traffic is inverted. I changed the inbound data source to 'traffic out' and outbound data source to 'traffic in' then cacti graphs recovered but weathermap links are still wrong side of the nodes.


Just to clarify, did you change the graph template, or the data template? If you only changed the graph template, then Cacti is still storing data in the wrong DS names. I think something is pretty broken in Cacti if you are seeing this, but you can fix it for weathermap, at least.

Code:

TARGET  yourrrd.rrd:traffic_out:traffic_in

will make Weathermap swap over the input and output directions.
Back to top
gkhnyldrm



Joined: 30 Apr 2008
Posts: 11
Location: Denizli,Turkey

PostPosted: Mon May 05, 2008 4:51 am    Post subject: Reply with quote

OK it's SOLVED!

I have changed the link's configuration;

Code:
NODES node09447 node09496

to
Code:
NODES node09496 node09447


then in cacti console I have changed the inbound data source to traffic_out and outbound data source to traffic_in. It works!

thank you boss.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2037
Location: United Kingdom

PostPosted: Mon May 05, 2008 5:43 am    Post subject: Reply with quote

Then maybe you have misunderstood something...

In a Link, where you have NODES A B, the target should always refer to an interface on node A. So 'in' means 'in to node A' and 'out' means 'out of node A'.

If you do *both* the things you said (swap the nodes, and swap the in/out in cacti), then you end up back where you started!
Back to top
gkhnyldrm



Joined: 30 Apr 2008
Posts: 11
Location: Denizli,Turkey

PostPosted: Mon May 05, 2008 6:17 am    Post subject: Reply with quote

Quote:
If you do *both* the things you said (swap the nodes, and swap the in/out in cacti), then you end up back where you started!

yes I have both swapped the nodes and data sources in cacti.

I have swapped the data sources in cacti only at first,graph's statics (upload-download) recovered but link ways(and colors too) still wrong.

then I swapped only nodes in weathermap,this time link ways fixed but cacti graphs were still has wrong data.

At last I have swapped both nodes and data sources,now both cacti graphs and weathermap links are correct.

By the way,cacti was retrieving correct statics from all other devices but retrieving wrong statics from only 1 switch,I changed the configuration(in cacti graph management and weathermap links config) of that switch only. I have not edited any other devices configuration. Maybe the switch's own configuration is causing reverse upload and download statics.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group