Correct value on Weather Map

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
DanielU
Posts: 18
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Correct value on Weather Map

Post by DanielU »

I am trying to present data from cacti graphs on Node on Weather Map.
There are sessions and traffic of pool Big IP F5 traffic balancer.

Fragment of code:

Code: Select all

NODE node_f5_PAC_traffic
	LABEL PAC {node:this:bandwidth_in:%d}MB 
	LABELOUTLINECOLOR none
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=9287
	NOTES Pool_PAC Traffic
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=9287
	TARGET gauge:/usr/share/cacti/rra/f5_x_pool_traffic_in_9805.rrd:pool_traffic_out:-
	POSITION x 80 -50

NODE node_f5_PAC_sessions
	LABEL PAC {node:this:bandwidth_in:%k}
	LABELOUTLINECOLOR none
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=9159
	NOTES Pool_PAC Sessions
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=9159
	TARGET gauge:/usr/share/cacti/rra/f5_x_poolconnections_9677.rrd:PoolConnections:-
	POSITION x 80 -30
	MAXVALUE 1000
On screenshots below, you can see value 440186 on first red one,
Weather Map
Weather Map
01.PNG (1.8 KiB) Viewed 5362 times
while the real value on chart is 3,52MB
Traffic
Traffic
03.PNG (2.63 KiB) Viewed 5362 times
The second value which represent sessions is correct
Sessions
Sessions
02.PNG (2.04 KiB) Viewed 5362 times

What is the correct syntax of:

Code: Select all

  LABEL PAC {node:this:bandwidth_in:%d}MB 
????


I had tried few bandwidth_in: possibilities and no results.



Data source debug of incorrect node

Code: Select all

Data Source Debug
/usr/bin/rrdtool create \
/usr/share/cacti/rra/f5_x_pool_traffic_in_9805.rrd \
--step 300  \
DS:pool_traffic_in:COUNTER:600:0:1000000000 \
DS:pool_traffic_out:COUNTER:600:0:1000000000 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Correct value on Weather Map

Post by Howie »

So the first value is actual traffic? Don't use gauge:

Normal SNMP traffic counters count bytes. So to get bits/sec both Cacti and Weathermap multiply by 8. In weathermap gauge: tells it to not do that. I think for your case, it DOES need to do that. Classic symptoms: "my value is almost but not quite 10x smaller than I expected to see"

(Some weird devices don't use the normal interface MIB and you have to figure out what is going on. e.g. FC fabrics often count 32-bit words)
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!)
DanielU
Posts: 18
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Correct value on Weather Map

Post by DanielU »

Howie,
what a response time :D

Target guage is incorrect?

Code: Select all

TARGET gauge:/usr/share/cacti/rra/f5_x_poolconnections_9677.rrd:PoolConnections:-
As I wrote my value presented on weather map is 440186 while the real on graph is 3,52MB
The ratio is 125065,69288389513108614232209738
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Correct value on Weather Map

Post by Howie »

440186 x 8 = 3521488
aka 3.52M
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!)
DanielU
Posts: 18
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Correct value on Weather Map

Post by DanielU »

How can I change type of data or recalculate that to get exact value?
I mean in weathermap conf file.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Correct value on Weather Map

Post by Howie »

REMOVE THE GAUGE: PREFIX
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!)
DanielU
Posts: 18
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Correct value on Weather Map

Post by DanielU »

Ok. I have success. Thanks Howie.
Meanwhile I had made some more tries.

Code: Select all

NODE node_f5_PAC
	LABEL PAC {node:this:bandwidth_in:%k}
	LABELOUTLINECOLOR none
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=9287
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=9287
	TARGET rrd:/usr/share/cacti/rra/f5_x_pop_pool_traffic_in_9805.rrd:pool_traffic_out:-  
	POSITION x 80 -50
	MAXVALUE 20000000
So TARGET rrd:/usr/share/ca.... was the answer.

And..
04.PNG
04.PNG (1.27 KiB) Viewed 5351 times
It is exactly the same value as chart shows.

Howie, you are great!!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Correct value on Weather Map

Post by Howie »

You shouldn't need the rrd: either, but you do you.
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!)
DanielU
Posts: 18
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Correct value on Weather Map

Post by DanielU »

I 've tried both and both working

TARGET /usr/share/cacti/rra/f5_pool_traffic_in_9805.rrd:pool_traffic_out:-
and
TARGET rrd:/usr/share/cacti/rra/f5_pool_traffic_in_9805.rrd:pool_traffic_out:-

Thanks

PS Sorry that I seemingly didn't listen you but I couldn't find working syntax.
PPS I wrote once again working examples for admins having the same problems
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests