Page 1 of 1

Small issue with the Linux Configuration Wizard

Posted: Sat Apr 12, 2025 12:14 pm
by DBAFOX
Hi ,

Seem to have a small Using the Linux Configuration wizard. We are using it to config for a RHEL server (no other linux os types to test).
I can can configure a server with the NCPA wizard ,
however when I use the Linux Configuration wizard , it appears to not complete the page rendering ( I've attached a page image ) .
As you can see, incomplete and missing navigation buttons. The only thing we can do at that point, reload the page which starts the wizard over.

I know we can just use the generic NCPA wizard , but would like to just resolve this for other team members.

has anyone else experienced this ? is is a Bug and is there Fix ?

Details:
Nagios XI Version: 2024R1.4.1 running on RHEL 9.5
NCPA Version: 3.1.3 running on RHEL 8.10

Thanks,
DBFox

Re: Small issue with the Linux Configuration Wizard

Posted: Mon Apr 14, 2025 4:47 pm
by lgute
Hi @DBAFOX,

Thanks for reaching out.

Would you please run the following command in a terminal session?

Code: Select all

tail -f /var/log/php-fpm/www-error.log
... then navigate to Step 2 again (or reload the inner frame) and let us know if the tail spits out any errors?

Re: Small issue with the Linux Configuration Wizard

Posted: Tue Apr 15, 2025 4:16 pm
by DBAFOX
From the tail command:
[root@dshs4avssnagios ~]# tail -f /var/log/php-fpm/www-error.log
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php:979"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "Stack trace:"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#0 /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php(394): include()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#1 /usr/local/nagiosxi/html/includes/utils-configwizards.inc.php(105): linux_server_configwizard_func()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#2 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): make_configwizard_callback()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#3 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): show_step3()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#4 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): route_request()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#5 /usr/local/nagiosxi/html/config/monitoringwizard.php(2): sg_load()"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: "#6 {main}"
[15-Apr-2025 16:11:26] WARNING: [pool www] child 866651 said into stderr: " thrown in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 979"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined array key "disk" in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 521"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "NOTICE: PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 521"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined array key "logical" in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 979"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php:979"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "Stack trace:"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#0 /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php(394): include()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#1 /usr/local/nagiosxi/html/includes/utils-configwizards.inc.php(105): linux_server_configwizard_func()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#2 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): make_configwizard_callback()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#3 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): show_step3()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#4 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): route_request()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#5 /usr/local/nagiosxi/html/config/monitoringwizard.php(2): sg_load()"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: "#6 {main}"
[15-Apr-2025 16:16:30] WARNING: [pool www] child 866651 said into stderr: " thrown in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 979"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 871440 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 871440 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 871440 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 868093 said into stderr: "NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/nagiosxi/html/ajaxhelper.php on line 732"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 868093 said into stderr: "NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/nagiosxi/html/ajaxhelper.php on line 733"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 852447 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 852447 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"
[15-Apr-2025 16:18:27] WARNING: [pool www] child 852447 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined variable $not_neptune in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0"

the screen is now showing me something different -- a gateway timeout message (all black -- had to highlight the text to see it )


Sincerely
Darryl -- DBAFOX

Re: Small issue with the Linux Configuration Wizard

Posted: Tue Apr 15, 2025 4:31 pm
by DBAFOX
On another server -- we get to step #2 -- same visual output --
here is the tail -f command output

[root@dshs4avssnagios ~]# tail -f /var/log/php-fpm/www-error.log
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php:979"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "Stack trace:"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#0 /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php(394): include()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#1 /usr/local/nagiosxi/html/includes/utils-configwizards.inc.php(105): linux_server_configwizard_func()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#2 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): make_configwizard_callback()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#3 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): show_step3()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#4 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): route_request()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#5 /usr/local/nagiosxi/html/config/monitoringwizard.php(2): sg_load()"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: "#6 {main}"
[15-Apr-2025 16:28:52] WARNING: [pool www] child 875437 said into stderr: " thrown in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 979"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "NOTICE: PHP message: PHP Warning: Undefined array key "logical" in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 525"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 525"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php:525"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "Stack trace:"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#0 /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php(394): include()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#1 /usr/local/nagiosxi/html/includes/utils-configwizards.inc.php(105): linux_server_configwizard_func()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#2 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): make_configwizard_callback()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#3 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): show_step3()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#4 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): validate_step3()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#5 /usr/local/nagiosxi/html/config/monitoringwizard.php(0): route_request()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#6 /usr/local/nagiosxi/html/config/monitoringwizard.php(2): sg_load()"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: "#7 {main}"
[15-Apr-2025 16:32:06] WARNING: [pool www] child 875121 said into stderr: " thrown in /usr/local/nagiosxi/html/includes/configwizards/linux-server/steps/step2.php on line 525"

Re: Small issue with the Linux Configuration Wizard

Posted: Wed Apr 16, 2025 4:44 pm
by lgute
Hi @DBAFOX,

It is likely the PHP Fatal error's that are causing the problem. I will create an issue so the developers can take a look at it.

If it is a Gateway Timeout, there may be some issue between the XI server and the NCPA server.

Just to clarify, are you having this issue with the Linux Server wizard, the Linux Server (legacy) wizard or something else?

Re: Small issue with the Linux Configuration Wizard

Posted: Sat Apr 19, 2025 6:04 pm
by DBAFOX
Hi @lgute ,

It is with the Linux Wizard (using NCPA ) . We are not using NRPE .

It happens pretty consistently. I think i know what the gateway issue is with the NCPA -- we can disregard that for now.

Thank you for your assistance, let me know if you need anything else :D

Sincerely,
DBAFox :)

Re: Small issue with the Linux Configuration Wizard

Posted: Mon Apr 21, 2025 4:47 pm
by lgute
Hi @DBAFOX,

Thanks for the update. Please let us know if you could use more assistance or have any questions.