Why does my Cacti save the last 8 hours data ?

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

Moderators: Developers, Moderators

Post Reply
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Why does my Cacti save the last 8 hours data ?

Post by fairysky »

I setup and keep my cacti running for a couple of weeks.
But I have a big problem that my cacti system only save and display the last 8 hours data ?
I could not save any data and graphic before 8 hours.
I checked the settings and figure out the root cause. But I failed.
I hope someone here can help me on it. Thank you very much !
(If you don`t understand what I said, please verify my pic in the attachment.)
Attachments
Why does my Cacti save the last 8 hours data ?
Why does my Cacti save the last 8 hours data ?
Why - Only 8 hours data..JPG (156.58 KiB) Viewed 2175 times
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

anybody help me !
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

what polling interval are you using, 5 Min, 1 Min, 10 seconds ??
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:what polling interval are you using, 5 Min, 1 Min, 10 seconds ??
Every minute
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

Now, did you change any of the RRA settings which define the timespan for the amount of data points to be stored in the RRD files ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:Now, did you change any of the RRA settings which define the timespan for the amount of data points to be stored in the RRD files ?
Please verify my screen-shot.
Attachments
11.JPG
11.JPG (53.32 KiB) Viewed 2162 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

Hi

First, you can use this post here to see what these numbers do to your rrd files ( in regards to data kept ):
http://forums.cacti.net/viewtopic.php?f=6&t=49190

For some example values to work with, you can refer to this post. Please be aware that any changes to these require you to delete and re-create all your graphs.
http://forums.cacti.net/viewtopic.php?p=115847#p115847
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:Hi

First, you can use this post here to see what these numbers do to your rrd files ( in regards to data kept ):
http://forums.cacti.net/viewtopic.php?f=6&t=49190

For some example values to work with, you can refer to this post. Please be aware that any changes to these require you to delete and re-create all your graphs.
http://forums.cacti.net/viewtopic.php?p=115847#p115847
I seems not to figure out the root cause. I`m a little confused now.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

Well, your RRA settings are for 5 minute polling and not for a 1 minute. So to translate the settings you have to a 1 minute polling interval, this gives us:

Hourly ( Steps: 1, Rows: 500 ) = 8,33 hours of data is kept before being overwritten.
Daily ( Steps: 1, Rows: 600 ) = 10 hours of data is kept before being overwritten.
Weekly ( Steps: 6, Rows: 700 ) = 3 days of data is kept before being overwritten.
Monthly ( Steps: 24, Rows: 775 ) = 13 days of data is kept before being overwritten.
Yearly ( Steps: 288, Rows: 797 ) = 159 days of data is kept before being overwritten.

So none of these hold enough data for your graphs to display a continuous block.

THis happens if you only switch the polling interval from 5 minutes to 1 minute without thinking about the consequences and without changing the RRA values accordingly.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:Well, your RRA settings are for 5 minute polling and not for a 1 minute. So to translate the settings you have to a 1 minute polling interval, this gives us:

Hourly ( Steps: 1, Rows: 500 ) = 8,33 hours of data is kept before being overwritten.
Daily ( Steps: 1, Rows: 600 ) = 10 hours of data is kept before being overwritten.
Weekly ( Steps: 6, Rows: 700 ) = 3 days of data is kept before being overwritten.
Monthly ( Steps: 24, Rows: 775 ) = 13 days of data is kept before being overwritten.
Yearly ( Steps: 288, Rows: 797 ) = 159 days of data is kept before being overwritten.

So none of these hold enough data for your graphs to display a continuous block.

THis happens if you only switch the polling interval from 5 minutes to 1 minute without thinking about the consequences and without changing the RRA values accordingly.
Sorry for my foolish, please tell me what I should change for 1 minute polling ? Thank you!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

I posted this on my message with the 2 links, look at this post here:

http://forums.cacti.net/viewtopic.php?p=115847#p115847
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:I posted this on my message with the 2 links, look at this post here:

http://forums.cacti.net/viewtopic.php?p=115847#p115847

Do I need to "rebuild poller cache" after change ?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

As said earlier: you need to delete all graphs and re-create them.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
fairysky
Posts: 10
Joined: Sun Jan 12, 2014 8:57 pm

Re: Why does my Cacti save the last 8 hours data ?

Post by fairysky »

phalek wrote:As said earlier: you need to delete all graphs and re-create them.
Sorry, I still failed to fix this issue by your suggestion.
Do I need to change this settings from 600 to 120 ?
Anyway, thank you very much.
Attachments
image2.JPG
image2.JPG (135.95 KiB) Viewed 2130 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Why does my Cacti save the last 8 hours data ?

Post by phalek »

Yes indeed , Steps to 60 and HEartbeat to 120. Exactly as your screenshot shows it !
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests