Page 1 of 1

Configuration Wizards problem

Posted: Tue Nov 28, 2017 10:29 am
by Francesco
Hi support,
Selecting the appropriate wizard environment tab, the dashboard remains empty.
The search work propertly and selcting the uncategorized tab all configuration wizards is displayed.
Thank you

Re: Configuration Wizards problem

Posted: Tue Nov 28, 2017 11:08 am
by lmiltchev
What is the Nagios XI version that you are currently running? Have you made any mods/tweaks to the system prior to experiencing this issue?

Have you tried "force update" of all components, wizards, and dashlets by running the commands below?

Code: Select all

cd /tmp/nagiosxi
./upgrade -f
Note: If you already removed the "original" install directory from the /tmp, you will have to re-download the tarball from here:
https://assets.nagios.com/downloads/nag ... rsions.php

If this doesn't work, start a running tail on the apache error log:

Code: Select all

tail -f /var/log/httpd/error_log
then, go to Configure > Configuration Wizards, click on the "Linux" tab, wait for a few seconds, stop the tail command by pressing Ctrl+c, and post the output on the forum.

Re: Configuration Wizards problem

Posted: Tue Nov 28, 2017 11:27 am
by npolovenko
@Francesco, You can also try to update the wizards. Please go to Admin/System Extensions(in the left column), Manage Config Wizards, and then click on 1)Check for updates 2)Install updates.

Re: Configuration Wizards problem

Posted: Wed Nov 29, 2017 8:53 am
by Francesco
Hi,
Below the request data:

Nagios XI version
Nagios XI 5.4.11

I have upgrade Nagios XI from xi-2014r2.7 to 5.4.11.

The server Nagios XI can not reach the internet repo.

Below the output of error_log:

[Wed Nov 29 14:51:01 2017] [error] [client ***.***.***.***] PHP Notice: Undefined index: requires_version in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 0, referer: http://*******.local/nagiosxi/config/monitoringwizard.php
[Wed Nov 29 14:51:01 2017] [error] [client ***.***.***.***] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/configwizards/autodiscovery/autodiscovery.inc.php on line 79, referer: http://*******.local/nagiosxi/config/monitoringwizard.php
[Wed Nov 29 14:51:01 2017] [error] [client ***.***.***.***] PHP Warning: explode() expects parameter 2 to be string, array given in /usr/local/nagiosxi/html/includes/utils-macros.inc.php on line 0, referer: http://*******.local/nagiosxi/config/monitoringwizard.php
[Wed Nov 29 14:51:01 2017] [error] [client ***.***.***.***] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/utils-macros.inc.php on line 0, referer: http://*******.local/nagiosxi/config/monitoringwizard.php

Thank you

Re: Configuration Wizards problem

Posted: Wed Nov 29, 2017 10:16 am
by npolovenko
@Francesco, Can you check what version of PHP you're running with the following command:

Code: Select all

php -v
And please upload the monitoringwizard.php file from the /usr/local/nagiosxi/html/config directory so that I could verify it.

Re: Configuration Wizards problem

Posted: Wed Nov 29, 2017 10:55 am
by Francesco
Hi npolovenko,

php version

# php -v
PHP 5.3.3 (cli) (built: Jul 3 2015 03:10:33)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Request file attached.

Thank you

Re: Configuration Wizards problem

Posted: Wed Nov 29, 2017 1:03 pm
by npolovenko
@Francesco, The file looks about right. I noticed that it's using php sourceguardian. So let's check what version you have on your system. Please post the output of:

Code: Select all

 php -i | grep -i guardian 
Also, this command should show you the path to sourceguardian.ini file. Please post the contents of that file here as well.
Thanks.