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-create .rrd files after config import
Re: Re-create .rrd files after config import
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?
Do you have the configuration files on your new machine?
Former Nagios Employee
Re: Re-create .rrd files after config import
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?
What are my options now?
Re: Re-create .rrd files after config import
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
Re: Re-create .rrd files after config import
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.
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
That worked! Thank you for your help.
Re: Re-create .rrd files after config import
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.
Going to close this one up and mark it as resolved.
Former Nagios Employee