Timespan browsing

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Timespan browsing

Post by Instigater »

I would like to see timespan scrolling feature. As you see, I have zoomed in to roughly 40 hours. Pressing buttons below the graph (red in my imangination) should output the graph that displays 40 hours before or after this current graph. This should give me quite quick and detailed overview on particular data.
Technical realization.
We can see graph technical details by pressing that wrench button.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1135454479 \
--end=1135547647 \
--title="UPS-LT-AEC - Output Loading" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/12/24 22\:01\:19 To 2005/12/25 23\:54\:07\c" \
COMMENT:"  \n" \
--vertical-label="percent" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti-0.8.6g/rra/upsltaec_load_875.rrd":load:AVERAGE \
LINE2:a#8D00BA:"Load"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" 
Interesting part is this:

Code: Select all

--start=1135454479 \
--end=1135547647 \
All we have to do is just subtract start time from end time. This give us current timespan value.

Adding (to go to future)

Code: Select all

--start=1135547647 \
--end=1135640815 \
or subtracting (go deeper into past)

Code: Select all

--start=1135361311 \
--end=1135454479 \
from current values will represent nearby graphs of current timespan.

What do you think? Is it useful or not?

PS. Soon going to post templates for AEC UPSes.
Attachments
feature_request.jpg
feature_request.jpg (52.05 KiB) Viewed 6442 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Does the Date/time Selector not fill your needs? This is not exactly, what you've asked for, I know. But shifting would surely depend on the timespan of the given graph. E.g. a daily graph would be shifted by something between 12 and 24 hours, whereas a yearly graph better should be shifted by a somehow bigger amount :wink: So what about shifting, lets say, by 75% of the given timespan?
Reinhard
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

And what if the rra span you are viewing does have data for the interval?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

lvm -> of course it shifting depends on current zoom. 75 percentage use might be more user-friendlier.

rony -> I believe there should be some time and/or more verification done. I'm not programmer so it's up to you to implement or not . Right now it's just an idea about what cacti lacks to be even more better.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is actually pretty easy, under the timespan selector, it would display "Custom" and the date range would be displayed as expected. The real issue is how do we make the "forward" and "backward" links. Some DHTML or JavaScript tricks might do it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Implemented as a patch to svn branch 0.8.6h, see Time Shifter
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

lvm,

You rule!

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Confirmed to work with cacti 0.8.6g as well.
Currently thinking about version 0.2 :wink:
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Find my new work at [revisitied] Time Shifter V0.2
Reinhard
wizard
Posts: 16
Joined: Thu Aug 04, 2005 4:16 pm

Installed on 0.8.6f successfully

Post by wizard »

Thanks - this is way cool.

Now, if I can get two timeframes side-by-side... my pet project ;-)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

using two browser tabs with different settings does not help?
Reinhard
wizard
Posts: 16
Joined: Thu Aug 04, 2005 4:16 pm

Post by wizard »

Yes, it helps, but it does not have the same visual impact as seeing both graphs at the same time.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests