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?
Error messages filling up the Httpd error log
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error messages filling up the Httpd error log
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
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
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
[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
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Error messages filling up the Httpd error log
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
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!