Nagios XI Config Failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosco
Posts: 40
Joined: Thu Nov 24, 2016 5:34 am

Re: Nagios XI Config Failed

Post by bosco »

[quote="bosco"]HI I have,


deleted previous import configuration and now preparing for a fresh import.Please advise in which priority should i go with import.i have attached a config
You do not have the required permissions to view the files attached to this post.
bosco
Posts: 40
Joined: Thu Nov 24, 2016 5:34 am

Re: Nagios XI Config Failed

Post by bosco »

please see the import config window
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI Config Failed

Post by rkennedy »

The linked documents are the best in my experience, the important part to make sure is you import everything in the correct order to avoid dependency issues.

Code: Select all

php /usr/local/nagiosxi/tools/xiprepimport.php orig/commands.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/dependencies.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hostgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/servicegroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/services.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/templates.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/timeperiods.cfg
Former Nagios Employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios XI Config Failed

Post by bwallace »

I ditto rkennedy's suggestion. Let us know if the outcome is any different this time around, perhaps something was imported out of step previously.
Be sure to check out the Knowledgebase for helpful articles and solutions!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Config Failed

Post by tmcdonald »

Please let us know if you need additional assistance.
Former Nagios employee
bosco
Posts: 40
Joined: Thu Nov 24, 2016 5:34 am

Re: Nagios XI Config Failed

Post by bosco »

Still getting the error :roll:

You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?,()=Entry name::corporate_windows_nonprod_services_template inside tbl_servicetemplate successfully inserted


Entry name::corporate_linux_prod_services_template inside tbl_servicetemplate successfully inserted
Entry name::corporate_retail_prod_services_template inside tbl_servicetemplate successfully inserted
Entry name::corporate_windows_nonprod_services_template inside tbl_servicetemplate successfully inserted
Entry name::corporate_linux_nonprod_services_template inside tbl_servicetemplate successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_empty_host inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
Entry config_name::_multiple_hosts inside tbl_service successfully inserted
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI Config Failed

Post by mcapra »

Can you PM me a fresh copy of the configuration files you're attempting to import?
Former Nagios employee
https://www.mcapra.com/
bosco
Posts: 40
Joined: Thu Nov 24, 2016 5:34 am

Re: Nagios XI Config Failed

Post by bosco »

Please see the profile attached.

Mod Edit: Profile received and shared with technicians.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI Config Failed

Post by mcapra »

Are you certain that profile contains all of the files you are attempting to import? I don't see any _multiple_hosts.cfg file or any of the mentioned templates. You may need to copy the files directly using scp or sftp.

I did a basic regex grep through all the files and couldn't find anything that would match the problematic characters. The import tool uses a similar process; It parses host_name directives and looks for those characters using a regex match.
Former Nagios employee
https://www.mcapra.com/
bosco
Posts: 40
Joined: Thu Nov 24, 2016 5:34 am

Re: Nagios XI Config Failed

Post by bosco »

I took profile from Nagios XI GUI, you can gather a profile via Admin -> System Profile -> Download Profile.

is there any other method to fetch this via winscp
Locked