RRD files from pnp4nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

RRD files from pnp4nagios

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: RRD files from pnp4nagios

Post 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.
Former Nagios employee
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: RRD files from pnp4nagios

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: RRD files from pnp4nagios

Post 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
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: RRD files from pnp4nagios

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: RRD files from pnp4nagios

Post 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.
Former Nagios employee
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: RRD files from pnp4nagios

Post by yunushaikh »

Thank you sir for your so proper explanation and clearing my doubts.

Thanks a lot
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: RRD files from pnp4nagios

Post by ssax »

Can we mark this as resolved and lock the topic or do you have any more questions pertaining to it?
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: RRD files from pnp4nagios

Post by yunushaikh »

No Sir,

Thanks a lot for you help
You can close this thread.
Locked