Page 1 of 1

CCM is deleting few lines while importing config files.

Posted: Sun Apr 30, 2017 11:11 am
by pratik.patel
I am trying to migrate from nagios core to nagio xi.
While importing cofig files from CCM, host/service name is getting deleted. It is really a headache to add them manually as there are lots of to do manually.
I have also tried "import tool" (php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg)suggested by nagios xi installation but having same problem.

Re: CCM is deleting few lines while importing config files.

Posted: Mon May 01, 2017 10:33 am
by dwhitfield
What version of Core and XI are you using?

Can you tar/zip up your configs and PM them so I can test? If you PM them, please make sure you post in this thread so that it pops back up on our support dashboard.

Also, could you post a screenshot of exactly what you are seeing in the CCM?

Re: CCM is deleting few lines while importing config files.

Posted: Tue May 02, 2017 7:24 am
by pratik.patel
Nagios Core 3.3.1
Nagios xi - 5.4.4

I was able to find the issue as in some of the files instead of "host_name" "host" was used and I replaced all host with host_name.

Now the main issue is migration is not considering exclude host/hostgroup.

For example:
define service{
use generic-05min-checker
hostgroup_name XYZ
host_name !ABC
....
}

This one is not getting import.

Have the same problem for hostgroups exclude.

Re: CCM is deleting few lines while importing config files.

Posted: Tue May 02, 2017 1:55 pm
by tgriep
The importing of configurations that have excludes in them is a known issue.
When the import happens, it will remove the exclude and for not, the only workaround is to add them back manually after the import is done.

Re: CCM is deleting few lines while importing config files.

Posted: Thu May 04, 2017 9:28 am
by pratik.patel
Hi

I have moved all the config files to nagios xi from nagios core but there is a difference in total hosts and services numbers.

Is there any way to compare which host/service is missing?

Thanks,
Pratik

Re: CCM is deleting few lines while importing config files.

Posted: Thu May 04, 2017 2:10 pm
by tgriep
Sorry, there is not a way to compare the systems automatically.
You would have to verify them manually.