httpd ssl logs filling up

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
typer100
Posts: 41
Joined: Tue Sep 25, 2018 7:22 am

httpd ssl logs filling up

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: httpd ssl logs filling up

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
typer100
Posts: 41
Joined: Tue Sep 25, 2018 7:22 am

Re: httpd ssl logs filling up

Post by typer100 »

I can also just drop the packets in IPtables... Still won't fix the error.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: httpd ssl logs filling up

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked