[HOWTO] Define very BIG rra "without data loss"

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

james0 wrote:When I first look at the RRA, it shows a whole year, and the Average and MAX are X and Y. When I zoom in on todays data(and todays data is the only data in the RRA so far), the average and max increase. Why is this?
Please have a look at my rrdtool related links of my signature. They will (try to) explain.
At least with rrdtool 1.2.x, there's a DEF option knows as reduce=<CF>. It may affect those differences, see http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html. This is not (yet) supported by cacti. But you may fiddle around with this to cope with your problem.
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I have little question-actually need confirmation:
If I have to look past 1 month with 5 min. average:

Code: Select all

Rows= 31 (day)*24(hour)*12( data point per hr.) = 8928
Timespan= 31(day)*24(hour)*60(min.)*60(sec.)=2678400
Steps=1
so for 2 month:

Code: Select all

Timespan=62 (day)*24(hour)*12( data point per hr.) = 17856
Timespan= 62(day)*24(hour)*60(min.)*60(sec.)=5356800
Steps=1
is it right?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The math is correct, I did not check the numbers (assuming you've used your calculator correctly :wink: )
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I used your calculation formulas :)
In your "how to" documenti I saw that steps value is 3. What does "steps" exactly means?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TFC wrote:I used your calculation formulas :)
In your "how to" documenti I saw that steps value is 3. What does "steps" exactly means?
Should have been 300, not 3. STEP defines the interval between two polling cycles. Find more help at man rrdcreate
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I just wanna see my past days data using zoom utility. For example: When my team head wants to see 72 days before with 5 min. average and my graph must be shows this graphic. I mean, cacti shows daily graph of 72 days before.
Let say 1 year..
That calculation is true or not:
Step :1
X-Factor :0.5

Rows: 366 days *24 hr. * 12 sample = 105408
Timespan : 366 days * 24 days * 60 min * 60 sec = 31622400
(I use calculator :) )
If I change "Daily (5 Minute Average)" Round Roubin archive values,and if I select all "Consolidation function", I can reach my aim or not?
I think simple question but i am really confused.
This screenshot is my settingsand decribes what i tell you. Is this settings are correct?
Attachments
rra.jpg
rra.jpg (80.04 KiB) Viewed 22054 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The math is correct.
The screenshot shows correct entries.
The file will be HUUUUUUGE.

And, you will not wnat to hear this, YOU WON'T GET EXPECTED RESULTS.
Why?
Please see a few posts above, tackling the topic of "graphical consolidation". Shortly: Do you know a computer display, which shows up 105408 horizontal pixels, one pixel for each raw data value of a complete year?
So rrdtool has to squeeze 105408 pixels into your graph, let's say defined to be 800 pixels wide. This cannot be done without consolidation.
Of course, when zooming into the graph, you will still be able to see all pixels e.g. one year in the past with full resolution. But not the whole year with full resolution.
Reinhard


PS: Please refer to first link of my sig, RRDTool Chapter, about consolidation. Depending on the question your boss want's to have answered, you can do it WITH consolidation in about most cases.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

:)
I just want to query for past and query one day period. I dont wanna show whole year in one graph.
Under this circumtance, my values are correct?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

When I dis this, something became weird :)
I didn't see anything in daily graph but i saw something in Weekly graph.
I am really really confused :)
I read rrdtutorial but that is too complicated :)
I want very simple thinh, i feel that :D
I just wanna see daily traffic graph of 3 months ago for 5 min average (I think 5 min average is equal to no consolidation that means no summarizing)
I just need some simple and basic help :)
thank you..
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

your HOWTO document images are gone!!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This thread is no longer maintained. I will close it immediately. The contents is part of the documentation found at the 1st link of my sig
R.
Locked

Who is online

Users browsing this forum: No registered users and 4 guests