How to stop graph from updating and keep historical data

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
enyalius7
Posts: 7
Joined: Tue May 14, 2013 5:03 am

How to stop graph from updating and keep historical data

Post by enyalius7 »

Hello,

Before posting i searched a lot and could not find the answer to my question.

I am using:

Cacti Version 0.8.8a
Cacti OS unix
RRDTool Version RRDTool 1.4.x

My question is, how can I stop graph updating (I want to freeze the graph so last point should be the time i stopped the graph and not the real time) and keep historical data. If I disable "Data Sources" rrd file is still "alive" and having the real time, so after a wile i will loose all my data.

Thanks.
enyalius7
Posts: 7
Joined: Tue May 14, 2013 5:03 am

Re: How to stop graph from updating and keep historical data

Post by enyalius7 »

Any help, please :)
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: How to stop graph from updating and keep historical data

Post by paulgevers »

enyalius7 wrote:Any help, please :)
I am absolutely not sure, but maybe rrdtool asks for the current time on your machine and takes it from there. If that would be really true, you have to turn the time of your machine back... I suggest you read the man page of rrdtool

Sounds rediculous...
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
dtr
Posts: 13
Joined: Mon Feb 28, 2011 4:53 am
Location: Germany

Re: How to stop graph from updating and keep historical data

Post by dtr »

If you dont want to gather data on all graphs anymore you could simply disable the poller.

If you dont want a single graph to update you can disable the associated datasources in console->datasources. You can check if it worked by checking the last update timestamp of your rrd file with the rrdtool fetch command.

The time Interval that is shown on the graph, when you look at it in the webinterface has nothing to do with the rrd file itself. The graph is shown with the rrdtool graph command and there you can enter basically any time interval (even some time before the rrd file existed - if the rrd doesnt have values for the time interval you look at, the graph is simply empty)
enyalius7
Posts: 7
Joined: Tue May 14, 2013 5:03 am

Re: How to stop graph from updating and keep historical data

Post by enyalius7 »

Yes i know that after disabling the datasource rrd file will not be updated again
dtr wrote: The graph is shown with the rrdtool graph command and there you can enter basically any time interval (even some time before the rrd file existed - if the rrd doesnt have values for the time interval you look at, the graph is simply empty)
Also I know that if i change the url at my web browser (timestamps of zoom) i can access any time point. My question is what can i do in order my cacti webinterface will show by default the graph until the time i stopped it from datasrouce updating and not until my current date.
enyalius7
Posts: 7
Joined: Tue May 14, 2013 5:03 am

Re: How to stop graph from updating and keep historical data

Post by enyalius7 »

Ok i think there is no way to do what i want to do, because there are filters in showing graphs (last half hour, last hour..) and this is for all graphs.
I just wanted to see in the same page, graphs from different periods, until i stopped the polling for this graphs.
I mean if i stopped one graph 1 week ago and other 1 month ago and i have filter "last day" i want to see the data from the last day before i stopped the polling, so for the first graph it should be 8 (7+1) days ago from today and for the second 32 (31+1) days ago from today. But as i can see this is not the case :) filters working for current date.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How to stop graph from updating and keep historical data

Post by gandalf »

rrd files will age out even when no updates occur. Only method known to me is to increase the RRAs to add more "slots". This way, it will take more time until data will be "squeezed out"
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest