Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 19, 2019 1:52 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Display MAX value in Weathermap Target Gauge for a link
PostPosted: Mon May 06, 2019 7:30 am 
Offline

Joined: Mon May 06, 2019 7:11 am
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: Display MAX value in Weathermap Target Gauge for a link
PostPosted: Mon May 06, 2019 7:52 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5318
Location: United Kingdom
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:
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!)


Top
 Profile  
 
 Post subject: Re: Display MAX value in Weathermap Target Gauge for a link
PostPosted: Tue May 07, 2019 5:37 am 
Offline

Joined: Mon May 06, 2019 7:11 am
Posts: 2
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,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group