Graph the value difference per interval

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Graph the value difference per interval

Post by Devroush »

Hi,

Sorry for the (probably) unclear title, but I couldn't come up with anything better. I've made a script that reads in some values, 4 to be precise. For 2 of them, I want to use a GAUGE. However for the other 2, I want to graph the difference for each interval. For example in the 5-minute graph, I want to see the difference between time A en time A + 5min. If at 10pm the value is 1000 and at 10:05pm 1010, then I want to show just 10 on the 5-minute graph.
However for the yearly graph (with 1 day average), I want to show the difference for each day.
I hope my question is clear enough? Is this even possible?

Thanks in advance.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph the value difference per interval

Post by BSOD2600 »

Devroush wrote:For example in the 5-minute graph, I want to see the difference between time A en time A + 5min. If at 10pm the value is 1000 and at 10:05pm 1010, then I want to show just 10 on the 5-minute graph.
Use the CDEF called 'make per 5 minutes', which should do this for you. You'll find it in your graph templates.
Devroush wrote:However for the yearly graph (with 1 day average), I want to show the difference for each day.
I recommend you read through the documentation site and/or the rrdtool site on how rrdtool consolidates your data. You can increase the history so rrdtool doesn't consolidate your data for a whole year, but the files are going to be giant.
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Post by Devroush »

thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest