--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/xi_tpl_host.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 911
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 905
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 905
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 905
SUCCESS
--------------------------------------
Is there a way to know which host name troubles import ? (as there are a lot of hosts in my file)
That said, it looks like whatever generated this config file had issues creating it. I would probably be best to skip importing this config file and manually and just manually create the host in XI.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Thanks for the extra info. The 'use' option defined on many of the definitions makes it so host_name isn't always needed. I did miss that before.
That said, I'd like to get a copy of the import directory as well as all the steps you took to produce the error so we can try and reproduce it here. Please also verify which version of XI you are attempting to import the files to.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
I followed up with senior tech regarding this and notices will not impact anything and can be ignored. You can disable notices by editing the /etc/php.ini file and adding/change the error_reporting line like so:
error_reporting = E_ALL & ~E_DEPRECATED
hopefully that's a little more convenient
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.