cacti weathermap link status does not refresh

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Laurpp
Posts: 2
Joined: Wed Apr 01, 2015 11:38 am

cacti weathermap link status does not refresh

Post by Laurpp »

Hi guys, i have an issue with my weathermap.The problem is as follows...when a link goes down thw scale from weathermap is configured to turn the colour of the link in red...basically i have the scale between 0 an 0 bps to colour RED.
Then when the link gets up...traffic flows through it...cacti graphs the traffic,when i move the pointer on the link it pops up the graph,showing traffic but the colour of the link remains red...it does not turn green as it should be.

I have boost installed on cacti and also the weathermap is configured to get the values directly from the pollers output.

From my poiny of view it seesm that the weathermap does not read the values from the rrd.

If you have ideeas please comment here...

I have performed the following
1. Delete the link and add it again...same issue
2. Delete the whole config from the weathermap and add it again...same issue
3. Added the graph...the rrd on another link ....it turns the new one also in red-this means that it has something with that particular rrd
4. I have the conclusion that the links are randomly turning to red
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: cacti weathermap link status does not refresh

Post by Howie »

Did you try what should be the FIRST faultfinding step - look at the logs? :-)

(cacti.log)
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!)
Laurpp
Posts: 2
Joined: Wed Apr 01, 2015 11:38 am

Re: cacti weathermap link status does not refresh

Post by Laurpp »

Hi

I have checked the logs and i do not see nothing unusual.

The configuration of the link is :

LINK SRBM111-SRBM211-2nd-link
WIDTH 3
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=25737
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=25737&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /var/www/cacti/rra/srbm111_traffic_in_27396.rrd
NODES SRBM111:0:-30 SRBM211:0:-30
VIA 514 94

What i have also seen that weathermap is doing this looking action 19 times a second for each RRD.
04/01/2015 06:55:29 AM - WEATHERMAP: Poller[0] WM poller_output: Looking for /var/www/cacti/rra/srbm111_traffic_in_27396.rrd (27396) (<path_rra>/srbm111_traffic_in_27396.rrd)
there is no difference between a link red and a green link.

I will also add the first part of the configuration :



BACKGROUND images/background-gray-1024.png
WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib
KEYFONT 1
TIMEPOS 13 5 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 838 448 Traffic Load
KEYSTYLE DEFAULT horizontal 150
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 0 0
SCALE DEFAULT 0 50 0 240 0
SCALE DEFAULT 50 90 255 192 0
SCALE DEFAULT 90 100 255 0 255

SET rrd_use_poller_output 1
SET key_hidezero_DEFAULT 1

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
BWLABEL none
BANDWIDTH 10000M
Attachments
Red Links that do carry traffic
Red Links that do carry traffic
output.png (234.5 KiB) Viewed 2323 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: cacti weathermap link status does not refresh

Post by Howie »

The "looking for" lines are just the poller_output function watching for data in the stream from the poller.

What happens if you turn off poller_output mode? You will get old data, but you will also get more traditional error messages for things like the file not existing or not having the DS names you expect. That's about the only reason I can think of why it would be failing for one link in a map.

Also, your popup graph there is for 1st-link, but the config and log lines are for 2nd-link. Does 2nd-link have non-zero traffic? (rrd filename matches target, link is named 2nd-link - without seeing 1st-link I can't know that they don't have the same config, but that graph isn't from the link you have shown the config for).

[extra tip: if you add 'set screenshot_mode 1' at the top of the map file, it'll blank out all your hostnames etc with xxx automatically - you can even add the map in Cacti a second time, and use the 'map settings' to have only one of the two copies treated that way - there are examples at the bottom of this page: http://blog.larsstrand.no/2010/01/netwo ... ermap.html ]
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests