Apache log full of PHP Notice: entries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rrustamSAI
Posts: 17
Joined: Wed Jun 01, 2016 11:53 am

Apache log full of PHP Notice: entries

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apache log full of PHP Notice: entries

Post by scottwilkerson »

Thanks for reporting this, Attached is a new component that fixes the notices

Install through Admin -> Manage Components
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rrustamSAI
Posts: 17
Joined: Wed Jun 01, 2016 11:53 am

Re: Apache log full of PHP Notice: entries

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apache log full of PHP Notice: entries

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rrustamSAI
Posts: 17
Joined: Wed Jun 01, 2016 11:53 am

Re: Apache log full of PHP Notice: entries

Post by rrustamSAI »

Alright! Now it's quite, so nice!

Thank you so much!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apache log full of PHP Notice: entries

Post by scottwilkerson »

rrustamSAI wrote:Alright! Now it's quite, so nice!

Thank you so much!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked