Page 2 of 3

Re: Nagios XI Config Failed

Posted: Fri Mar 03, 2017 5:03 am
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

Re: Nagios XI Config Failed

Posted: Fri Mar 03, 2017 5:05 am
by bosco
please see the import config window

Re: Nagios XI Config Failed

Posted: Fri Mar 03, 2017 8:57 am
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

Re: Nagios XI Config Failed

Posted: Fri Mar 03, 2017 2:14 pm
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.

Re: Nagios XI Config Failed

Posted: Mon Mar 06, 2017 10:41 am
by tmcdonald
Please let us know if you need additional assistance.

Re: Nagios XI Config Failed

Posted: Tue Mar 07, 2017 5:37 am
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

Re: Nagios XI Config Failed

Posted: Tue Mar 07, 2017 4:30 pm
by mcapra
Can you PM me a fresh copy of the configuration files you're attempting to import?

Re: Nagios XI Config Failed

Posted: Tue Mar 14, 2017 3:57 am
by bosco
Please see the profile attached.

Mod Edit: Profile received and shared with technicians.

Re: Nagios XI Config Failed

Posted: Tue Mar 14, 2017 3:19 pm
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.

Re: Nagios XI Config Failed

Posted: Tue Mar 14, 2017 11:57 pm
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