Page 1 of 1

PHP errors /var/log/httpd/ssl_error_log

Posted: Fri Jan 10, 2020 8:47 am
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

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

Posted: Fri Jan 10, 2020 2:18 pm
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

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

Posted: Mon Jan 13, 2020 9:29 am
by scottwilkerson