Page 1 of 1

Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 12:51 pm
by rrustamSAI
This seems to be started after upgraded 5.5 -> 5.6 back in May.

confirmed /etc/php.ini entry -> display_errors = Off

Nagios XI 5.6.6
CentOS 7.7
Apache 2.4.6
PHP 5.4.16
PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 425

Re: Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 1:07 pm
by scottwilkerson
Thanks for reporting this, Attached is a new component that fixes the notices

Install through Admin -> Manage Components

Re: Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 1:23 pm
by rrustamSAI
Nice that did stop the "Undefined" spamming.

Now that stop, I'm seeing other entries:
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491

Re: Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 1:24 pm
by scottwilkerson
This is an old component that was for a deprecated integration, you can safely delete the whole folder

Code: Select all

rm -rf /usr/local/nagiosxi/html/includes/components/nagiosim

Re: Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 1:33 pm
by rrustamSAI
Alright! Now it's quite, so nice!

Thank you so much!

Re: Apache log full of PHP Notice: entries

Posted: Thu Oct 03, 2019 1:54 pm
by scottwilkerson
rrustamSAI wrote:Alright! Now it's quite, so nice!

Thank you so much!
Great!

Locking thread