This is a cache of https://support.nagios.com/kb/article/nagios-xi-migrate-performance-data-166.html. It is a snapshot of the page at 2025-05-14T00:09:00.476+0000.
Nagios XI - Migrate Performance Data
Home » Categories » Multiple Categories

Nagios XI - Migrate Performance Data

Overview

Historical performance data that is used to generate graphs are stored in Round Robin Database (RRD) files. RRD performance data files are compiled binaries, so for a simple file transfer a user would have to have the architecture match on both machines.

If you want to migrate files from a 32bit to 64bit machine, you'll have to convert the data to XML and import it into RRD's on the new machine. The following steps will allow you to migrate the data:

On the old 32bit server:

cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
tar -cvzf perfdata.tar.gz */*.rrd.xml
for i in `find -name "*.rrd.xml"`; do rm -f $i; done
cd /var/lib/mrtg/
for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
tar -cvzf mrtgdata.tar.gz *.rrd.xml
for i in `find -name "*.rrd.xml"`; do rm -f $i; done

 

This will create the files:

  • /usr/local/nagios/share/perfdata/perfdata.tar.gz
    • This needs to be transferred to the /usr/local/nagios/share/perfdata/ directory on the new server
  • /var/lib/mrtg/mrtgdata.tar.gz
    • This needs to be transferred to the /var/lib/mrtg/ directory on the new server

 

On the new 64bit server:

cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rm -f $i; done
tar -xvzf perfdata.tar.gz
for i in `find -name "*.rrd.xml"`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
for i in `find -name "*.rrd"`; do chown nagios:nagios $i; done
for i in `find -name "*.rrd.xml"`; do rm -f $i; done

cd /var/lib/mrtg/
for i in `find -name "*.rrd"`; do rm -f $i; done
tar -xvzf mrtgdata.tar.gz
for i in `find -name "*.rrd.xml"`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
for i in `find -name "*.rrd"`; do chown nagios:nagios $i; done
for i in `find -name "*.rrd.xml"`; do rm -f $i; done

 

When this completes the historic performance data will be migrated from the old server.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

3 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios Core - Passive Monitoring with Nagios - NWC14
Viewed 11894 times since Mon, Feb 8, 2016
Nagios XI - Offloading MySQL to Remote Server
Viewed 8589 times since Thu, Jan 28, 2016
VMWare checks timing out or slow
Viewed 3837 times since Fri, Feb 11, 2022
Nagios XI - Problems with $ Signs in the Check Command
Viewed 8687 times since Tue, Jan 26, 2016
Nagios Core - Nagios as a PC Health Monitor - NWC14
Viewed 11261 times since Tue, Feb 9, 2016
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 14149 times since Wed, Apr 27, 2016
Nagios XI - Issues with mod_gearman and Performance Data Newlines: "\n"
Viewed 4429 times since Tue, Feb 2, 2016
Nagios XI - Configuring Global Event Handlers
Viewed 7285 times since Wed, Jan 27, 2016
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 13356 times since Tue, Jan 26, 2016
Nagios XI - ICMP and Ping Checks Stopped graphing
Viewed 13862 times since Mon, Jan 25, 2016