PHP errors /var/log/httpd/ssl_error_log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
op-team
Posts: 39
Joined: Fri Jun 02, 2017 6:19 am

PHP errors /var/log/httpd/ssl_error_log

Post by op-team »

Hi Guys

We are running NagiosXI 5.6.8 on a Cent0s 6.10
We are experiencing continuously error in /var/log/httpd/ssl_error_log

[root@nagios: /var/log/httpd]# tail -f ssl_error_log
...
[Fri Jan 10 14:39:27 2020] [error] [client 192.168.117.10] PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 437, referer: https://nagios-01.vcloud.lu/nagiosxi/in ... en/noc.php
[Fri Jan 10 14:39:27 2020] [error] [client 192.168.117.10] PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 437, referer: https://nagios-01.vcloud.lu/nagiosxi/in ... en/noc.php
...

[Fri Jan 10 14:39:33 2020] [error] [client 192.168.113.28] PHP Notice: Use of undefined constant host - assumed 'host' in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php(900) : eval()'d code on line 1, referer: https://nagios-01.vcloud.lu/nagiosxi/in ... &dest=auto
[Fri Jan 10 14:39:34 2020] [error] [client 192.168.113.28] PHP Notice: Use of undefined constant service - assumed 'service' in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php(1052) : eval()'d code on line 1, referer: https://nagios-01.vcloud.lu/nagiosxi/in ... &dest=auto
...

Could you please help us to solve those errors? Thanks

B.Regards
Habib
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: PHP errors /var/log/httpd/ssl_error_log

Post by tacolover101 »

are these errors causing any real issues?

it was suggested in the past to disable the php error notices by @benjaminsmith:

You can safely disable php notices as they are advisory messages by disabling them in the /etc/php.ini file.

Code: Select all

    // Report all errors except E_NOTICE
    error_reporting(E_ALL & ~E_NOTICE);

And then restart Apache.

Code: Select all

    systemctl restart httpd
more information can be found on the PHP manual - https://www.php.net/manual/en/function. ... orting.php
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP errors /var/log/httpd/ssl_error_log

Post by scottwilkerson »

Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked