Page 1 of 1

Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Tue Jun 17, 2025 1:42 pm
by jorgeaaq
Hi

I hope someone can help me

I have a very slow Nagios XI and after cheking the logs

I found that after upgrading Nagios XI, alot of error messages like this are appearing in ssl_error_log

[proxy_fcgi:error] [pid 866555:tid 866731] [client xxx.xxx.xxx.xxx:50975]
AH01071: Got error 'PHP message:
PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined arraykey "id" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined array key "title" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined array key "title" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined array key "opts" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined array key "opts" in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3032
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3036
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3041
PHP message: PHP Warning: Undefined array key "title" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3048
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3049
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3052
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3054
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3032
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3036
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3041
PHP message: PHP Warning: Undefined array key "title" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3048
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3049
PHP message: PHP Warning: Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3052
PHP message: PHP Warning:Undefined array key "id" in /usr/local/nagiosxi/html/includes/utils-menu.inc.php on line 3054'
, referer: https://xxx.xxx.xxx.xxx/nagiosxi/admin/ ... =users.php

Platform:
NagiosXI Version: 2024R1.4.4
OS: Centos Stream Release 9
HW: VM with 8 Cores E5-2695v4 and 24GB RAM

any ideas how resolve this ?

Thanks in advance

Jorge A Arenas
CSA Consultores

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Wed Jun 18, 2025 4:31 pm
by lgute
Hi @jorgeaaq,

Thanks for reaching out and reporting this issue. I will check it out.

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Thu Jun 19, 2025 9:04 am
by lgute
Hi @jorgeaaq,

With the resources you have for your XI server, I am surprised you are having performance issues. How is your disk space and how many hosts & services are you monitoring?

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Thu Jun 19, 2025 10:57 am
by jorgeaaq
Lauira

is a big installation

around 6,000 hosts and 9,000 services

In addition to a slow response time, reports stopped generating, and I had to extend the timeouts to get them to generate.

I don't know how much this error has to do with it and how much it has to do with the recent hosts and services we've added.

I hope this information helps

Jorge Arenas

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Thu Jun 26, 2025 4:07 pm
by lgute
Hi @jorgeaaq,

This may be a more complicated issue than can be addressed in this forum. To get more help, please open a support ticket here: https://support.nagios.com/, so our support team can help you.

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Mon Jun 30, 2025 10:09 pm
by AshleyMays
The error messages in your Nagios XI logs indicate that the PHP code is trying to access array keys ("id", "title", "opts") that don't exist in some arrays. This is happening in the utils-dashboards.inc.php and utils-menu.inc.php files. While these errors might not directly cause slowness, they can indicate a problem with the dashboard or menu configuration.

Here are some steps you can try to resolve this:

1. Check Custom Dashboards/Menus: If you've created any custom dashboards or menu items, review their configuration. Make sure the arrays used to define them are correctly structured and contain the necessary "id", "title", and "opts" keys. A mistake in your configuration could cause this error.
2. Repair Database: Sometimes, database issues can cause these types of errors. Try running the Nagios XI database repair script. You can usually find this script in the Nagios XI documentation or support forums.
3. Reinstall/Upgrade: Although you upgraded, it might be worth trying to reinstall Nagios XI or upgrade to the latest version again to ensure all files are correctly updated and configured. Be sure to back up your data first.
4. Check Nagios XI Forums/Support: Search the Nagios XI support forums or contact Nagios XI support directly. These errors are common, and there may be known solutions or patches available. Provide them with the error logs and system information you posted here.
5. PHP Version Compatibility: Verify that the version of PHP running on your system is compatible with your version of Nagios XI. Sometimes, PHP version issues can cause unexpected errors.

It's important to address these errors, even if they don't seem to be directly causing the slowness, as they can potentially lead to other issues in the future.

Re: Error in PHP after upgrading Nagios XI 2024R1.4.4

Posted: Thu Sep 04, 2025 10:55 pm
by roofter2
jorgeaaq wrote: Thu Jun 19, 2025 10:57 am Lauira

is a big installation

around 6,000 hosts and 9,000 services

In addition to a slow response time, reports stopped generating, and I had to extend the timeouts to get them to generate.

I don't know how much this error has to do with it and how much it has to do with the recent hosts and services we've added.

I hope this information helps

Jorge Arenas
Do you think the performance issue when monitoring large scale like 6,000 hosts and 9,000 services in Nagios mainly comes from system configuration, or from software architecture limitations? If you encounter this situation, will you optimize internally or consider opening a support ticket immediately?