viewing graph presets for more then 2 days

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

Moderators: Developers, Moderators

nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

viewing graph presets for more then 2 days

Post by nurbo »

Hi,

I am wondering why in the graphs tab i can only see 2 days of data in my interface bits per second graphs.
If i choose 3 days or more i won't see the data for more than those 2 days in the past.

The picture i am sending attached shows what i mean.

The curious is that this does not happen to the cpu usage graphs.

Anyone can help me understand why there is this diference?

Another thing that may explain the diference, i just noticed, that if i click on the magnifying glass of a cpu graph i see the daily, weekly, monthly and yearly graphs but if i click on an interface traffic graph i only see the daily one. Whay is this happening?

Thank you very much.
Attachments
Cacti graphs.jpg
Cacti graphs.jpg (267.04 KiB) Viewed 5878 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you recently tune your rrd files so they hold "more data"?
Reinhard
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

Well i don't make much changes to what i have working now.

How can i change the rrd files so that i can hold more data?
I can see that for cpu graphs more data is stored then for traffic ones.

Thanks for the help :)
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

nurbo wrote:How can i change the rrd files so that i can hold more data?
Hi

you can edit the pre-defined RRAs (in Management -> Data Sources -> RRAs).

You can list them using this command :

Code: Select all

$ php -q add_tree.php --list-rras

Known RRAs:
id      steps   rows    timespan        name
1       1       8600    86400           Daily (5 Minute Average)
2       6       700     604800          Weekly (30 Minute Average)
3       24      775     2678400         Monthly (2 Hour Average)
4       288     797     33053184        Yearly (1 Day Average)
5       1       500     14400           Hourly (1 Minute Average)
I'm using 8600 rows for the Daily RRA (RRDtool files, for 1 data source, grow to ~ 350 kb).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

I have done the change in the console and put the same value for the number of rows in the 5 minute rras.

When i do the php command on the win2003 i get the message saying that the input file add_tree.php could not be opened.

I am trying to see if the graphs are now showing more data, more than 3 days in the past, but it doesn't seem like it. For example now here is 16:50 and i only can see back to saturday at about the same time.

Maybe i am missing something in Cacti.... if i have Cacti collecting information since January/07 shouldn't i be able to see today graph information for one day of February? Just by selecting that particular day in the From: To: fields of the Graphs View?

Please correct me if i am wrong.
Before i used simple mrtg and did not have the option to select the time frame that i wanted to see the graph data collected, now that option exists but still i can't see more than 3 days in the past or even see a particular period older than those same 3 same 3 days.

Thak you in advance for all the help.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

nurbo wrote: I am trying to see if the graphs are now showing more data, more than 3 days in the past, but it doesn't seem like it. For example now here is 16:50 and i only can see back to saturday at about the same time.

Maybe i am missing something in Cacti.... if i have Cacti collecting information since January/07 shouldn't i be able to see today graph information for one day of February? Just by selecting that particular day in the From: To: fields of the Graphs View?
That should not be a problem. Please post your whole RRA settings (select Data Source and find RRAs just below)
Reinhard
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

Now after the change to 8600 in the number of rows for the 5 minute, it looks like this:

Round Robin Archives Add

Name Steps Rows Timespan**
Daily (5 Minute Average) 1 8600 86400
Weekly (30 Minute Average) 6 700 604800
Monthly (2 Hour Average) 24 775 2678400
Yearly (1 Day Average) 288 797 33053184
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When did you apply the change? 2 days ago?
Reinhard
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

Hi,

I did the change yesterday but the scenario is the same, my graphs on the main window just show 3 days of info except for the cpu ones.

I attach an image.
Attachments
Cacti graphs_1.jpg
Cacti graphs_1.jpg (217 KiB) Viewed 5752 times
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

I have cacti working by now for more than 2 months but i can't for example see what happened two weeks ago!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm quite sure that this is due to the growing of the first consolidation level. Cacti does not allow for specifying the consolidation level used. RRDTool will then use a best fit algorithm to fetch the correct consolidation level (which in your case is the level 1 you've just grown). But as this level has not yet been filled, you see nothing in the past. Nevertheless, the data of the other consolidation levels is present (at least I assume so).
If you want to verify my assumption, please post the whole rrdtool graph statement (visit Graph Management and switch to DEBUG). I will modify it for you to let you verify it. But this is a test only.
Reinhard
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

Here is the capture in debug mode.

But why for the CPU graphs all the data is there and for the interface ones it isn't? For the cpu i can see a particular time window even if it is from two weeks ago.
Attachments
Cacti graphs_2.jpg
Cacti graphs_2.jpg (243.07 KiB) Viewed 5721 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

nurbo wrote:Here is the capture in debug mode.

But why for the CPU graphs all the data is there and for the interface ones it isn't? For the cpu i can see a particular time window even if it is from two weeks ago.
Did you modify (rrdtool resize) all rrd files? In this case, my assumption would be wrong. If you did not modify CPU rrds, may assumption may still be correct
Reinhard
nurbo
Posts: 17
Joined: Fri Aug 10, 2007 11:55 am
Location: PT

Post by nurbo »

Hi,

I am not finding where i can change "rrdtool resize" for the rrd files nor where is the difference between cpu and traffic rrd files!

The only change i made was that value for the daily rra.

This issue related to not seeing more than 2 days of traffic information is happening since the instalation.

Again i send 2 pictures of what happens when i custom select a specific period of time in the Graphs Tab. The other is a graph templat in debug mode for a cpu graph.

Bruno.
Attachments
Cacti CPU Usage1.jpg
Cacti CPU Usage1.jpg (209.35 KiB) Viewed 5625 times
Cacti CPU Usage2.jpg
Cacti CPU Usage2.jpg (159.96 KiB) Viewed 5625 times
Cacti Interface Traffic1.jpg
Cacti Interface Traffic1.jpg (163.55 KiB) Viewed 5625 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please find the correct rrd file name from the rrdtool graph statements. Then perform a "rrdtool info ..." on that rrd files and post the first 30 lines of them
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests