Page 1 of 1

httpd ssl logs filling up

Posted: Thu Jun 27, 2019 7:45 am
by typer100
Hi! I've this error in my ssl_error_log.

PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 437, referer: https://nagios.saq.qc.ca/nagiosxi/inclu ... en/noc.php

The SSL port is always changing.. Looks like some sort of scan.

Any info?

Re: httpd ssl logs filling up

Posted: Thu Jun 27, 2019 10:32 am
by benjaminsmith
Hello @typer100,

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
Let me know if you have any questions.

Re: httpd ssl logs filling up

Posted: Thu Jun 27, 2019 1:43 pm
by typer100
I can also just drop the packets in IPtables... Still won't fix the error.

Re: httpd ssl logs filling up

Posted: Thu Jun 27, 2019 2:45 pm
by benjaminsmith
Hello,

That notification is being generated from Nagios XI by the network operations screen component, and is not causing any problems. However, if you've disabled the error reporting for notices and re-started Apache, the notices should not show up in the logs.

PHP Manual - error_reporting