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
PHP errors /var/log/httpd/ssl_error_log
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: PHP errors /var/log/httpd/ssl_error_log
are these errors causing any real issues?
it was suggested in the past to disable the php error notices by @benjaminsmith:
it was suggested in the past to disable the php error notices by @benjaminsmith:
more information can be found on the PHP manual - https://www.php.net/manual/en/function. ... orting.php
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact: