Re-create .rrd files after config import

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re-create .rrd files after config import

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Re-create .rrd files after config import

Post 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?
Former Nagios Employee
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Re-create .rrd files after config import

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Re-create .rrd files after config import

Post 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?
Former Nagios Employee
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Re-create .rrd files after config import

Post 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.
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: Re-create .rrd files after config import

Post by jpipitone »

That worked! Thank you for your help.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Re-create .rrd files after config import

Post 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.
Former Nagios Employee
Locked