howardjones / network-weathermap

Network Weathermap draws diagrams from data
http://www.network-weathermap.com/
MIT License
425 stars 95 forks source link

Graph links are wrong calulcated #214

Open lichtl opened 5 years ago

lichtl commented 5 years ago

Hi,

I seem to have a strange bug with the weathermap. For some reason some links are calculated incorrect. Please see below screenshots. I already tried to figure out what exactly happend (it seems that this started when I added some more graphs into cacti).

--- Weathermap

image

image

image

image

--- Settings

image

image

Below is the config. I played aout with the cacti_use_ifspeed/no_cacti_extra but it doesn't have any effect. What might be special is that the poller interval is set to every minute (5min cron interval) and cacti is collecting based on 1 minute and 5 minute invervall. However all graphs on the map are 1minute polling values.

# Automatically generated by php-weathermap v1.0.0dev
SET rrd_use_poller_output 1
SET cacti_use_ifspeed 1
SET dsstats_no_cacti_extras 1

FONTDEFINE 99 /opt/www//cacti/plugins/weathermap/VeraBd.ttf 6
FONTDEFINE 100 /opt/www/cacti/plugins/weathermap/VeraBd.ttf 7
FONTDEFINE 101 /opt/www/cacti/plugins/weathermap/VeraBd.ttf 8
FONTDEFINE 102 /opt/www/cacti/plugins/weathermap/VeraBd.ttf 8

TITLE TEST Map
WIDTH 1720
HEIGHT 800
HTMLSTYLE overlib
KEYFONT 102
TIMEPOS 10 10 Last Update: %b %d %Y %H:%M:%S

KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0

# All settings for scale DEFAULT
        SCALE DEFAULT 0    0      190 190 190
        SCALE DEFAULT 0    10     0 255 0  100 255 0
        SCALE DEFAULT 10   15     100 255 0  150 255 0
        SCALE DEFAULT 15   25     150 255 0  200 255 0
        SCALE DEFAULT 25   40     200 255 0  225 255 0
        SCALE DEFAULT 40   45     225 255 0  255 255 0
        SCALE DEFAULT 45   55     255 255 0
        SCALE DEFAULT 55   65     255 255 0  255 224 0
        SCALE DEFAULT 65   75     255 224 0  255 200 0
        SCALE DEFAULT 75   80     255 200 0  255 150 0
        SCALE DEFAULT 80   90     255 150 0  255 50 0
        SCALE DEFAULT 90   100    255 50 0  255 0 0

# All settings for legend DEFAULT
        KEYPOS DEFAULT 1566 17 Traffic Load
        KEYSTYLE DEFAULT vertical 300

SET nowarn_clipping 1

# End of global section

# TEMPLATE-only NODEs:
NODE DEFAULT
        MAXVALUE 100

# regular NODEs:

NODE DUS03.DE
        LABEL DUS03
        ICON images/router_up.gif
        POSITION 850 250

NODE AMS01.NL
        LABEL AMS01
        ICON images/router_up.gif
        POSITION 550 250

NODE LON37.UK
        LABEL LON37
        ICON images/router_up.gif
        POSITION 347 159

NODE DUB16.IE
        LABEL DUB16
        ICON images/router_up.gif
        POSITION 50 50

NODE GAMS
        LABEL GAMS
        POSITION 777 359

NODE AIX
        LABEL AIX
        POSITION 550 50

NODE NIX
        LABEL NIX
        POSITION 675 50

NODE NAMS
        LABEL NAMS
        POSITION 455 42

NODE VAMS
        LABEL VAMS
        POSITION 770 51

# TEMPLATE-only LINKs:
LINK DEFAULT
        WIDTH 5
        ARROWSTYLE compact
        BWSTYLE angled
        BWFONT 100
        COMMENTFONT 99
        COMMENTFONTCOLOR 0 0 0
        BWLABEL bits
        COMMENTPOS 70 30
        BANDWIDTH 10G

# regular LINKs:
LINK DUS03.DE-AMS01.NL
        WIDTH 8
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=889
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=889
        TARGET /opt/www/cacti-release-1.1.38/rra/147/889.rrd
        INCOMMENT ae2
        OUTCOMMENT ae1
        NODES DUS03.DE AMS01.NL
        BANDWIDTH 40G

LINK AMS01.NL-LON37.UK
        WIDTH 8
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=10
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=10
        COMMENTPOS 70 50
        TARGET /opt/www/cacti-release-1.1.38/rra/3/10.rrd
        INCOMMENT ae1
        OUTCOMMENT ae1
        NODES AMS01.NL LON37.UK
        BANDWIDTH 40G

LINK DUB16.IE-AMS01.NL
        WIDTH 6
        VIASTYLE angled
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=672
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=672
        TARGET /opt/www/cacti-release-1.1.38/rra/115/672.rrd
        INCOMMENT ae5
        OUTCOMMENT ae2
        NODES DUB16.IE AMS01.NL
        VIA 322 34
        BANDWIDTH 20G

LINK AMS01.NL-NIX
        WIDTH 4
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=22
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=22
        TARGET /opt/www/cacti-release-1.1.38/rra/3/22.rrd
        OUTCOMMENT ae0.1550
        NODES AMS01.NL NIX
        BANDWIDTH 2.5G

LINK AMS01.NL-GAMS
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=4
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=4
        TARGET /opt/www/cacti-release-1.1.38/rra/3/4.rrd
        OUTCOMMENT xe-0/1/1
        NODES AMS01.NL GAMS

LINK AMS01.NL-AIX
        WIDTH 6
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=12
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=12
        TARGET /opt/www/cacti-release-1.1.38/rra/3/12.rrd
        OUTCOMMENT ae3
        NODES AMS01.NL AIX
        BANDWIDTH 20G

LINK AMS01.NL-NAMS
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=23
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=23
        TARGET /opt/www/cacti-release-1.1.38/rra/3/23.rrd
        NODES AMS01.NL NAMS

LINK AMS01.NL-VAMS
        WIDTH 2
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=21
        OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=21
        TARGET /opt/www/cacti-release-1.1.38/rra/3/21.rrd
        NODES AMS01.NL VAMS
        BANDWIDTH 1G

# That's All Folks!
howardjones commented 5 years ago

Do you actually use Boost? If not, do you get the same issue without

SET rrd_use_poller_output 1

at the top?

lichtl commented 5 years ago

I use boost. I will try to deactivate boost for testing and check.

howardjones commented 5 years ago

I suspect it's the combination of polling time not matching the cron time, and use_poller_output. I don't think I've ever tested that...

lichtl commented 5 years ago

I disabled boost and disabled rrd_user_poller_output and map now looks okay (I still see a slightly difference between the value on the map and on the graph (but maybe just related to the small time difference).

lichtl commented 5 years ago

I just changed cron time to 1 minute. But once I enable boost it breaks

howardjones commented 5 years ago

Hopefully I will try this setup over the weekend.

FredNeuberger commented 5 years ago

Hey Howard, did you have the chance to test this yet?

howardjones commented 5 years ago

No, and my dev box is dead and in pieces on my workbench this evening :-(

howardjones commented 5 years ago

Dead/dying mobo. New dev system ordered.