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.
CCM is deleting few lines while importing config files.
-
pratik.patel
- Posts: 77
- Joined: Wed Apr 19, 2017 10:51 am
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: CCM is deleting few lines while importing config files.
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?
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?
-
pratik.patel
- Posts: 77
- Joined: Wed Apr 19, 2017 10:51 am
Re: CCM is deleting few lines while importing config files.
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.
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.
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
pratik.patel
- Posts: 77
- Joined: Wed Apr 19, 2017 10:51 am
Re: CCM is deleting few lines while importing config files.
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
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.
Sorry, there is not a way to compare the systems automatically.
You would have to verify them manually.
You would have to verify them manually.
Be sure to check out our Knowledgebase for helpful articles and solutions!