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
Display MAX value in Weathermap Target Gauge for a link
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Display MAX value in Weathermap Target Gauge for a link
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:
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.
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
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.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!)
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!)
Re: Display MAX value in Weathermap Target Gauge for a link
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,
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,
Who is online
Users browsing this forum: No registered users and 0 guests