Page 1 of 1

Bulk Host Cloning and Import wizard / 5.5.2

Posted: Mon Aug 27, 2018 4:28 am
by tom987
After upgrading to Nagios XI 5.5.2 (running on CentOS 7.4.1708) the bulk host cloning and import wizard stopped working. Hosts and services cloned get empty host/service information such as e.g. check intervals, notification settings, even empty check commands. Thus, after running the wizard we get an un-applyable, invalid configuration.

We have been able to track down the problem to the wizard calling nagiosql_read_host_config_from_file() and nagiosql_read_service_config_from_file() which both return a completely empty config. Unfortunately, due to their implementation being obfuscated(?) we have not been able to advance further.

HTTP-Errorlog for one run of the wizard with one host and a few services is included below.

Unfortunately, we are currently about to monitor quite a few very similar hosts and not being able to mass configure them will be a real pain.

Is there already a solution or a workaround?

Kind regards,
Tom

Code: Select all

[Mon Aug 27 10:21:19.296689 2018] [:error] [pid 21336] [client 10.54.16.10:48714] PHP Notice:  Undefined index: tpl in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 0, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:20.892474 2018] [:error] [pid 21260] [client 10.54.16.10:33217] PHP Notice:  Undefined index: tpl in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 0, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219252 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 613, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219286 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219294 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219314 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219318 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219322 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219326 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219329 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219333 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219337 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219341 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php
[Mon Aug 27 10:21:26.219345 2018] [:error] [pid 21423] [client 10.54.16.10:45016] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/configwizards/bulkhostimport/bulkhostimport.inc.php on line 667, referer: http://10.180.3.128/nagiosxi/config/monitoringwizard.php


Re: Bulk Host Cloning and Import wizard / 5.5.2

Posted: Mon Aug 27, 2018 7:19 am
by scottwilkerson
This is a know issue, but here's how to fix it.

Remove any un-applyable items.
Go to CCM -> Tools -> Config File Management
Delete Files
Write Files

Now the Bulk Import Wizard should work properly to add new items.

Re: Bulk Host Cloning and Import wizard / 5.5.2

Posted: Mon Aug 27, 2018 9:39 am
by tom987
Yes, that did the trick. The wizard works again after having deleted/written config files. Headache is gone :-)

Thanks a lot!

Re: Bulk Host Cloning and Import wizard / 5.5.2

Posted: Mon Aug 27, 2018 9:50 am
by scottwilkerson
tom987 wrote:Yes, that did the trick. The wizard works again after having deleted/written config files. Headache is gone :-)

Thanks a lot!
Great!

Glad it is resolved.

Locking