Unable to import data from Nagios-VM on Cent6 to Cent7 VM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ccasho
Posts: 3
Joined: Mon Sep 10, 2018 2:43 pm

Unable to import data from Nagios-VM on Cent6 to Cent7 VM

Post by ccasho »

Using the migration tool, trying to export data from the /static folders into a transportable file. The migration tool seems to be striping out all the data from the files as when they are imported into the VM on cent7, none of the services are there.

Is there a specific way to export data from the /static folder?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to import data from Nagios-VM on Cent6 to Cent7 V

Post by mcapra »

Does copying+pasting the files from one static/ path to the other work? If not, what sort of error messages are your seeing?

Per the official documentation regarding static configurations:
Configuration files in this directory are processed by the monitoring engine (Nagios Core), but are not
imported into the Nagios XI web configuration GUI Core Configuration Manager (CCM).
Now if you wanted to convert those static files into objects that live in the Core Config Manager, that's a totally different set of instructions:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Which requires you to put those files in specific places, run a "preparation" script on them, and import the objects in a specific order.
Former Nagios employee
https://www.mcapra.com/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to import data from Nagios-VM on Cent6 to Cent7 V

Post by lmiltchev »

@ccasho, make sure you don't have the same objects defined in both places - in the CCM and in the static directory. You didn't have to prep/import configs if you wanted to keep them in the static. Simply copy/paste from one static to the other would do, as suggested by @mcapra.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked