Page 1 of 1

Operations Center spamming logs with PHP Undefined variable

Posted: Wed May 08, 2019 10:43 am
by rpike
For example:

PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 425

I confirmed that "display_errors = Off" is in /etc/php.ini.
Is there any other way to stop these messages?

I also have the spinning "Update in progress".

Nagios XI version: 5.6.1
CentOS release 6.10 (Final)
PHP Version: 5.3.3

Re: Operations Center spamming logs with PHP Undefined varia

Posted: Wed May 08, 2019 1:40 pm
by benjaminsmith
Hello @rpike,

This is a known issue with upgrades that should be resolved in a later release. However, if you can stop the page, then run the upgrade from the command line instead:

Code: Select all

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh
sh ./upgrade.sh
and let me know if you able to successfully upgrade. As far as the notices, try to set display_errors = 0 and then re-start Apache.

Code: Select all

service httpd restart