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.

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 MAXSET 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.

Who is online

Users browsing this forum: No registered users and 2 guests

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