Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Custom Timeframe

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
scruboy01



Joined: 05 Apr 2005
Posts: 25
Location: Grand Rapids, MI, US

PostPosted: Mon Mar 17, 2008 10:55 am    Post subject: Custom Timeframe Reply with quote

Would it be possible to specify a custom timeframe for maps, similar to viewing graphs in Cacti?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Mar 17, 2008 11:22 am    Post subject: Reply with quote

What would it do? average over that timespan?

It doesn't average at all at the moment, it's just the last values recorded.
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Mon Mar 17, 2008 1:21 pm    Post subject: Reply with quote

Howie wrote:
What would it do? average over that timespan?

It doesn't average at all at the moment, it's just the last values recorded.


I think he is meaning like a go back button.. Say it might take snap shots of the weathermaps you can go back and look at later if you wanted to see what the traffice was on the map say a day ago or ten min ago..
Back to top
scruboy01



Joined: 05 Apr 2005
Posts: 25
Location: Grand Rapids, MI, US

PostPosted: Mon Mar 17, 2008 4:04 pm    Post subject: Reply with quote

What I had pictured was being able to choose a specific time or a range. If the exact time was chosen, the map would show whatever value Cacti had at that particular time. If the range was specified, then either an average or a max from the Cacti values.
Back to top
Ahuber



Joined: 16 Nov 2006
Posts: 44
Location: BC, kootenays

PostPosted: Mon Mar 17, 2008 4:38 pm    Post subject: Reply with quote

How weird is that, I log in today to look for exactly this feature. I know it's not available currently, but for me it would be really handy. I'd request more for the exact minute (STEP) feature, so that weathermap can show me what the bandwidth utilization looked like at that point in time. ie: have a field were you can select date & time, hit the go button to create that particular map (of that STEP). It's way easier than trying to find a correlation viewing hundreds of graphs. Maybe even have buttons to move forward one step, or back. I think this is a great Idea. As for the other feature, the averaging, min, & max, I can see if being more of a "report" type function. Could be useful, but I'd like to see the STEP map. Anyone else intrested in this sorta feature?
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Mon Mar 17, 2008 4:38 pm    Post subject: Reply with quote

Yes


scruboy01 wrote:
What I had pictured was being able to choose a specific time or a range. If the exact time was chosen, the map would show whatever value Cacti had at that particular time. If the range was specified, then either an average or a max from the Cacti values.
Interesting.. That would require that the data be stored .. Currently cacti data is only stored in the RRD..

Howie Can Weathermap pull this inforamtion from the RRD in the past?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Mar 17, 2008 4:58 pm    Post subject: Reply with quote

It can, but the information effectively 'degrades' as part of the RRD process. You can use 'SET rrd_start' (it's in targets.html in the manual for details) to change when weathermap will look for data from, BUT you won't see the same thing for last week as you would have done if you asked last week, thanks to rrdtool's aggregation process.

What I was thinking about when I first saw your reply, Chris, was something a little like RRD itself, or Apple's Time Machine backup, but for weathermap images. So it keeps every 5 minutes for a day, then every 30 minutes for a week, and every 6 hours for a month etc... It would chew up a fairly large (but roughly fixed) amount of disk space, but you would have a true 'fast-forward/rewind' function then. It could also produce animations with some external help.

Is that all way over the top?
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Mon Mar 17, 2008 5:14 pm    Post subject: Reply with quote

Howie wrote:
It can, but the information effectively 'degrades' as part of the RRD process. You can use 'SET rrd_start' (it's in targets.html in the manual for details) to change when weathermap will look for data from, BUT you won't see the same thing for last week as you would have done if you asked last week, thanks to rrdtool's aggregation process.

What I was thinking about when I first saw your reply, Chris, was something a little like RRD itself, or Apple's Time Machine backup, but for weathermap images. So it keeps every 5 minutes for a day, then every 30 minutes for a week, and every 6 hours for a month etc... It would chew up a fairly large (but roughly fixed) amount of disk space, but you would have a true 'fast-forward/rewind' function then. It could also produce animations with some external help.

Is that all way over the top?



Animation.. I like it. that would be really cool.
Would make for very big feature release. ... Great Idea...


Last edited by chrisgapske on Tue Mar 18, 2008 9:06 am; edited 1 time in total
Back to top
scruboy01



Joined: 05 Apr 2005
Posts: 25
Location: Grand Rapids, MI, US

PostPosted: Mon Mar 17, 2008 5:54 pm    Post subject: Reply with quote

I like the annimation idea.

I was looking to have Weathermap pull the RRD data. It would then match up with the Cacti graphs for that timeframe.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Mar 17, 2008 6:16 pm    Post subject: Reply with quote

scruboy01 wrote:
I like the annimation idea.

I was looking to have Weathermap pull the RRD data. It would then match up with the Cacti graphs for that timeframe.


True, but you'd have to do some finagling to make the INFOURL and OVERLIBGRAPH urls reflect the timespan, which I guess is the ideal.

Actually it might not be so bad. If you calculate your target time as a unix time_t (seconds from 1970), then the same value can be used for rrd_start AND in the URLs. So you could use a SET rrd_start 1204588800 to set the rrd time, and then SET rrd_end 1205625540, which is ignored by the rrd reading stuff, but you can use it in your URLs.

https://www.mysite.net/cacti/graph_image.php?local_graph_id=2420&rra_id=0&graph_start=1204588800&graph_end=1205625540
becomes
https://www.mysite.net/cacti/graph_image.php?local_graph_id=2420&rra_id=0&graph_start={map:rrd_start}&graph_end={map:rrd_end}

You still don't get an average over the graph period, but you do get a map from a point in time with only two extra lines at the top, once it's all set up.

In fact, what I'd actually do is change the LINK DEFAULT to have
OVERLIBGRAPH https://www.mysite.net/cacti/graph_image.php?local_graph_id={link:this:graph_id}&rra_id=0&graph_start={map:rrd_start}&graph_end={map:rrd_end}
Then for each LINK, you skip the OVERLIBGRAPH line, and just add a SET graph_id 2420 (or whatever it is). Makes your config cleaner and more flexible
Back to top
scruboy01



Joined: 05 Apr 2005
Posts: 25
Location: Grand Rapids, MI, US

PostPosted: Tue Mar 18, 2008 8:44 am    Post subject: Reply with quote

Is there a way to average the data if graph_start != graph_end? How does Cacti pull the averages for a custom timeframe?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Tue Mar 18, 2008 9:34 am    Post subject: Reply with quote

scruboy01 wrote:
Is there a way to average the data if graph_start != graph_end? How does Cacti pull the averages for a custom timeframe?


You'd use rrdtool's xport command. Weathermap doesn't do that. It wouldn't be too hard to write a new datasource plugin that did though.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group