Page 1 of 1
RRD files from pnp4nagios
Posted: Wed Sep 02, 2015 6:53 am
by yunushaikh
Hello Experts,
I noticed that my pnp4nagios folder is growing day by day because of .rrd files present in the var/perfdata folder. Is there any possibility to store this pnp4Nagios graph files in MySQL database so that this does not gets stored on my Nagios server.
Please suggest the solution as my /usr partition is getting affected by this.
Re: RRD files from pnp4nagios
Posted: Wed Sep 02, 2015 9:14 am
by tmcdonald
Those files are themselves database files, so there is not a way (that I know of) to put them in another database. The good news is the RRD files themselves never grow in size, so you can get a very accurate estimate of how much disk space you will need.
Re: RRD files from pnp4nagios
Posted: Wed Sep 02, 2015 9:25 am
by yunushaikh
Ok sir,
Thats very nice to hear that those files will not grow in size.
Then where does the graph data goes to? if they don't grow in size.
I am just trying to clear my doubt. Will the file sizes remain as it is till whenever we use nagios? Is this what you want to say.
Re: RRD files from pnp4nagios
Posted: Wed Sep 02, 2015 10:28 am
by jdalrymple
RRD files are initialized upon creation with placeholder data. Think of it as full of zeros to begin with, then as time goes on those zeros are replaced with useful data.
Make sense?
http://oss.oetiker.ch/rrdtool/doc/rrdcr ... tml#___top
Re: RRD files from pnp4nagios
Posted: Thu Sep 03, 2015 3:00 am
by yunushaikh
Ok I got that understanding.
but will these file size increase one all those zeros are filled in and it has no more space to fill the data later stage?
Re: RRD files from pnp4nagios
Posted: Thu Sep 03, 2015 9:13 am
by tmcdonald
RRD stands for Round-Robin Database. Once data reaches "the end" of the file, it wraps back around and starts overwriting old data. But since it averages out data over long time periods, you still retain some historical data just not each and every check that was performed.
Re: RRD files from pnp4nagios
Posted: Thu Sep 03, 2015 1:36 pm
by yunushaikh
Thank you sir for your so proper explanation and clearing my doubts.
Thanks a lot
Re: RRD files from pnp4nagios
Posted: Thu Sep 03, 2015 2:25 pm
by ssax
Can we mark this as resolved and lock the topic or do you have any more questions pertaining to it?
Re: RRD files from pnp4nagios
Posted: Fri Sep 04, 2015 3:11 am
by yunushaikh
No Sir,
Thanks a lot for you help
You can close this thread.