Import from core to XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
kbauma01
Posts: 26
Joined: Wed May 25, 2022 6:39 am

Import from core to XI

Post by kbauma01 »

I'm new to NagiosXI. I've imported my config files (Commands-->Time Periods-->Contact Templates-->Contacts-->Contact Groups-->Host Templates-->Hosts).

I brought in 2 servers to start with and when I try to delete them via the XI GUI I get this:
Host Deletion Error
Host cannot be deleted using this method

So went to CCM and deleted them from there but when I do that I see

An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.

<div>Error: There are no services defined!</div><div>Error: There are no hosts defined!</div>
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Import from core to XI

Post by gormank »

Did you import services?

viewtopic.php?t=40123&p=195610

My notes (which shouldn't be trusted) say to import in the following order.
commands.cfg
timeperiods.cfg
contacttemplates.cfg
contacts.cfg
contactgroups.cfg
hosttemplates.cfg
hosts.cfg
hostgroups.cfg
servicetemplates.cfg
services.cfg
servicegroups.cfg

copy commands.cfg to /usr/local/nagios/etc/import/
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Continue with timeperiods.cfg, and run the reconfigure script. Repeat until all files are imported.
Post Reply