Page 1 of 1
Error messages filling up the Httpd error log
Posted: Thu Apr 23, 2020 9:18 am
by vmesquita
Hello,
I am getting tons of messages like this ones belows, which is causing the error log to reach 500Mb on some days:
[Sun Apr 12 03:14:15.849128 2020] [:error] [pid 173613] [client xxxxxx:64731] PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 425, referer:
https://nagios.selic.bc/nagiosxi/includ ... ate_flag=1
How can I fix this?
Re: Error messages filling up the Httpd error log
Posted: Thu Apr 23, 2020 9:52 am
by scottwilkerson
This has been fixed in later versions of the Operations Center component for versions greater than 5.6.x of Nagios XI
If you go to Admin -> Manage Components -> Click "Check for Updates"
Install the latest for Operations Center component
This should remove these notice messages
Re: Error messages filling up the Httpd error log
Posted: Mon Apr 27, 2020 2:20 pm
by vmesquita
Ok the update fixed that message, but now there's a set of new ones:
[Mon Apr 27 16:00:37.870879 2020] [:error] [pid 69088] [client 172.27.15.50:49160] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 484, referer:
https://nagios/nagiosxi/includes/compon ... ate_flag=1
[Mon Apr 27 16:00:37.870888 2020] [:error] [pid 69088] [client 172.27.15.50:49160] PHP Notice: Undefined variable: host_ids_str in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 495, referer:
https://nagios/nagiosxi/includes/compon ... ate_flag=1
[Mon Apr 27 16:00:37.870977 2020] [:error] [pid 69088] [client 172.27.15.50:49160] PHP Notice: Undefined variable: service_ids_str in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 499, referer:
https://nagios/nagiosxi/includes/compon ... ate_flag=1
Re: Error messages filling up the Httpd error log
Posted: Mon Apr 27, 2020 3:58 pm
by benjaminsmith
Hi
@vmesquita,
Notifications are advisory messages from PHP and will not impact the system but I can let the development team know. In the meantime, it is possible to turn the messages off in the php,ini settings.
https://stackoverflow.com/questions/286 ... hp-notices
Benjamin