Page 1 of 1

Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 3:54 pm
by jpipitone
I've built a new NagiosXI server - and imported the config successfully. Everything is working fine with exception of the performance graphs.

I chose not to migrate existing performance graph data, and when I went back to my previous backup, we don't have the /usr/local/nagios/share/perfdata folder included in the backup.

How can we have MRTG and NagiosXI to just re-generate these RRDs? I checked the /var/lib/mrtg directory and it doesn't appear that .rrd's are being created. The only file in there is an mrtg.ok file. /usr/local/nagios/share only has .rrd's for localhost.

Re: Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 4:01 pm
by rkennedy
The .rrd files will regenerate if configuration files are in the MRTG folder @ /etc/mrtg/conf.d/

Do you have the configuration files on your new machine?

Re: Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 4:08 pm
by jpipitone
No. In a previous support message I had asked if there was anything else I needed to backup, and I was told just the files inside /usr/local/nagios/share.

What are my options now?

Re: Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 4:30 pm
by rkennedy
I actually tested this, and the .rrd files do get backed up with the script. Do you have them in your original backup.tar.gz?

Re: Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 6:07 pm
by jpipitone
I didn't use the backup script - support told me I needed to manually import the config files because we switched platforms - went from 32 bit to 64 bit.

See this thread:

https://support.nagios.com/forum/viewto ... 16&t=40300

I have a backup that I made with the shell script of the full config from a few days ago - I'll try to copy the config files over from a previous backup.

Re: Re-create .rrd files after config import

Posted: Thu Sep 22, 2016 6:13 pm
by jpipitone
That worked! Thank you for your help.

Re: Re-create .rrd files after config import

Posted: Fri Sep 23, 2016 10:04 am
by rkennedy
Ah - yes, that would cause an issue. Glad to hear I was able to point you in the right direction though! Our backup document actually doesn't mention the RRD data, but it does indeed take the backup.

Going to close this one up and mark it as resolved.