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    


can we generate a map for a given date/time ?

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



Joined: 01 Aug 2007
Posts: 3

PostPosted: Thu Aug 02, 2007 2:48 am    Post subject: can we generate a map for a given date/time ? Reply with quote

HI,

I'm new to this tool, and I have search but not found any clue :

I vould like to get weathermap to draw the state of my network at a given time instead of the last data available in the rrd files.

why ?
just because I have some months of cacti data about my network,
and that I have just discovered this amazing plugin.
So I'm in the process of building my map (a bit time consuming at first, but I get it right at last )
and now, I'd like to generate some maps about the last days (every hours/30 minutes at first) to create an animation (as explained in the article
http://www.network-weathermap.com/articles/animation

Or if someone already built a script that can generate the maps for the X last hours, with Y minutes between 2 maps, it would be great !

Thanks for any hints and help you can provide me.
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Aug 02, 2007 4:01 am    Post subject: Re: can we generate a map for a given date/time ? Reply with quote

As long as all your data is coming from RRD files, there are some extra options for the RRDtool datasource that allow you to select the time to use.

BEWARE though that the default cacti rrd setup will average your data differently for yesterday than today, and differently again for last week, so you won't see the same map that you would see if you drew it when the data was current.

If you look at the weathermap config reference under TARGET, there's a link to the details for each target. In the RRD section, you will find a mention of rrd_start. So what you would do to get yesterday's data is:

Code:

LINK DEFAULT
   SET rrd_start -1d


and that will change the start time for all your data sources. You should be able to use an absolute date like '23:59 31.12.1999', although I haven't tested that, and I wouldn't be too surprised if the space in the middle actually caused problems.
Back to top
BOB-151



Joined: 01 Aug 2007
Posts: 3

PostPosted: Thu Aug 02, 2007 7:55 am    Post subject: Reply with quote

Thanks for the answer, This works ok
(except for the generated date : it show the current time/date not the time/date of the data read in the rrd...but it's not a real issue for what I need to do.)

I have set in the beguining of my config file for the map :
(170h -> 1 week (168h) and 2 hours in this exemple.)
Code:
SET rrd_start -170h

before any node or link definitions.
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Aug 02, 2007 7:59 am    Post subject: Reply with quote

BOB-151 wrote:
Thanks for the answer, This works ok
(except for the generated date : it show the current time/date not the time/date of the data read in the rrd...but it's not a real issue for what I need to do.)

I have set in the beguining of my config file for the map :
(170h -> 1 week (168h) and 2 hours in this exemple.)
Code:
SET rrd_start -170h

before any node or link definitions.


That's because that is the date that the map was generated

Nothing to stop you adding a node that looks like the timestamp with the required text in it, and then hidden the 'real' timestamp, though.
Back to top
GLR



Joined: 21 Jul 2008
Posts: 8

PostPosted: Fri Sep 05, 2008 3:05 am    Post subject: rrd_start Reply with quote

When I read this topic and the manual (http://www.network-weathermap.com/manual/latest/pages/targets.html#rrd), I'm a little confused : if I specify a "SET rrd_start -1d", what do I get ?
- the average traffic load for the last 24 hours
- the traffic load of yesterday at the same time
- the last available traffic value between yesterday and now ?
Back to top
Howie
Cacti Guru User


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

PostPosted: Fri Sep 05, 2008 3:23 am    Post subject: Re: rrd_start Reply with quote

GLR wrote:
When I read this topic and the manual (http://www.network-weathermap.com/manual/latest/pages/targets.html#rrd), I'm a little confused : if I specify a "SET rrd_start -1d", what do I get ?
- the average traffic load for the last 24 hours
- the traffic load of yesterday at the same time
- the last available traffic value between yesterday and now ?


The second one. BUT, with rrdtool's aggregation applied, so if you only keep (e.g) 12 hours of five minute samples, yesterday's data may be aggregated to 30 minute (or whatever) samples.

The first option should be available in 0.96 - it's in 0.96test1, but it's likely to change a bit before the final version.
Back to top
GLR



Joined: 21 Jul 2008
Posts: 8

PostPosted: Fri Sep 05, 2008 4:10 am    Post subject: Re: rrd_start Reply with quote

Quote:
The second one. BUT, with rrdtool's aggregation applied, so if you only keep (e.g) 12 hours of five minute samples, yesterday's data may be aggregated to 30 minute (or whatever) samples.

OK, thank you for your answer and also for this great great tool !

Quote:
The first option should be available in 0.96 - it's in 0.96test1, but it's likely to change a bit before the final version.

Yes, I saw this, that's very good news !
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