Display MAX value in Weathermap Target Gauge for a link

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
BlackSwan
Posts: 2
Joined: Mon May 06, 2019 7:11 am

Display MAX value in Weathermap Target Gauge for a link

#1 Post by BlackSwan » Mon May 06, 2019 7:30 am

Hello Cacti Community,
I am trying to create a weathermap displaying the maximum packet loss reading for the last 24h instead of current values on link labels (I thought it makes more sense).
Data source is an RRD file containing SLA information like latency, jitter, etc.
I tried to look in the Documentation for a way to do this but i couldn't find a straightforward answer. I also tried the example below but it doesn't seem to work.

TARGET gauge:/routers/sla-2-jitter.rrd:PacketLossSD:-:MAX gauge:/routers/sla-2-jitter.rrd:-:PacketLossDS:MAX

Thank you for sharing your thoughts!

Edit: typo

User avatar
Howie
Cacti Guru User
Posts: 5333
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Display MAX value in Weathermap Target Gauge for a link

#2 Post by Howie » Mon May 06, 2019 7:52 am

Not sure where the example came from, but that definitely doesn't work...

You can change the aggregation function, but only for a whole map. It isn't very well documented, but it looks like:

Code: Select all

SET rrd_cf MAX
SET rrd_period 24h
At the top of the map file should get you what you want (as long as that's a 24 hour maximum for all data on the map).

To do this with more control over which sources get average/max/min, the dsstats Cacti plugin might help, as long as your required time periods align with its built-in ones. In that case there is a different Weathermap TARGET format, but you can choose between more statistics and change it per TARGET. It should also be quicker, if performance is an issue (short poll times, lots of maps).

Edit: Nevermind, I just noticed the path to your RRDs, and realised Cacti plugins aren't an option. You're stuck with the map-global change for the moment. Having this look for item-specific SET first would be a good future change though.
Weathermap 0.98 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!)

BlackSwan
Posts: 2
Joined: Mon May 06, 2019 7:11 am

Re: Display MAX value in Weathermap Target Gauge for a link

#3 Post by BlackSwan » Tue May 07, 2019 5:37 am

Hello Howie,
Thank you for the reply! A global SET would get the job done for now, but as you said, a per link SET would be an interesting feature to this amazing tool.
Regards,

Post Reply