Coreuiproxy log error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nietonoshana
Posts: 26
Joined: Thu Jul 04, 2013 1:05 pm

Coreuiproxy log error

Post by nietonoshana »

Hello Nagios team

I have a problem with error

Code: Select all

PHP Warning: fread() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/includes/components/nagioscore/coreuiproxy.inc.php on line 447
PHP Warning: fread() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/includes/components/nagioscore/coreuiproxy.inc.php on line 446
The log with this error takes 100 percent of the free disk in a couple of hours.

I do not know the reason why this error starts to occur, it may be that for several hours it does not appear and suddenly it happens
Nagios installed is Nagios XI version: 5.7.5 in Red Hat Enterprise Linux release 8.2

Right now all I do is clean the log file
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Coreuiproxy log error

Post by benjaminsmith »

HI,

Besides that message filling up your logs, have you noticed any other issues with your system?

Since this is filling up your logs so quickly. I would turn off the logging of warnings and messages for the time being. These are advisory messages and do not indicate a fatal error.

Code: Select all

error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE);
At this point in the code, it may be unable to input data. Let's check the permissions settings on the cgi scripts.

Code: Select all

 ls -l /usr/local/nagios/sbin/*
--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!
nietonoshana
Posts: 26
Joined: Thu Jul 04, 2013 1:05 pm

Re: Coreuiproxy log error

Post by nietonoshana »

Hello @benjaminsmith

Nagios xi stops working and indicates that the database is repaired, but this is because the server runs out of space, database service stop, and need liberate space and start database service

Code: Select all

[root@nagios php-fpm]# ls -l /usr/local/nagios/sbin/*
-rwxrwxr-x. 1 nagios nagios 329328 sep 24 15:22 /usr/local/nagios/sbin/archivejson.cgi
-rwxrwxr-x. 1 nagios nagios 314720 sep 24 15:22 /usr/local/nagios/sbin/avail.cgi
-rwxrwxr-x. 1 nagios nagios 302128 sep 24 15:22 /usr/local/nagios/sbin/cmd.cgi
-rwxrwxr-x. 1 nagios nagios 273680 sep 24 15:22 /usr/local/nagios/sbin/config.cgi
-rwxrwxr-x. 1 nagios nagios 318784 sep 24 15:22 /usr/local/nagios/sbin/extinfo.cgi
-rwxrwxr-x. 1 nagios nagios 269760 sep 24 15:22 /usr/local/nagios/sbin/histogram.cgi
-rwxrwxr-x. 1 nagios nagios 249160 sep 24 15:22 /usr/local/nagios/sbin/history.cgi
-rwxrwxr-x. 1 nagios nagios 249136 sep 24 15:22 /usr/local/nagios/sbin/notifications.cgi
-rwxrwxr-x. 1 nagios nagios 327024 sep 24 15:22 /usr/local/nagios/sbin/objectjson.cgi
-rwxrwxr-x. 1 nagios nagios 240912 sep 24 15:22 /usr/local/nagios/sbin/outages.cgi
-rwxrwxr-x. 1 nagios nagios 236816 sep 24 15:22 /usr/local/nagios/sbin/outages-xml.cgi
-rwxrwxr-x. 1 nagios nagios 245024 sep 24 15:22 /usr/local/nagios/sbin/showlog.cgi
-rwxrwxr-x. 1 nagios nagios 322904 sep 24 15:22 /usr/local/nagios/sbin/status.cgi
-rwxrwxr-x. 1 nagios nagios 240904 sep 24 15:22 /usr/local/nagios/sbin/status-json.cgi
-rwxrwxr-x. 1 nagios nagios 321072 sep 24 15:22 /usr/local/nagios/sbin/statusjson.cgi
-rwxrwxr-x. 1 nagios nagios 269824 sep 24 15:22 /usr/local/nagios/sbin/statusmap.cgi
-rwxrwxr-x. 1 nagios nagios 261472 sep 24 15:22 /usr/local/nagios/sbin/statuswml.cgi
-rwxrwxr-x. 1 nagios nagios 249152 sep 24 15:22 /usr/local/nagios/sbin/statuswrl.cgi
-rwxrwxr-x. 1 nagios nagios 269672 sep 24 15:22 /usr/local/nagios/sbin/summary.cgi
-rwxrwxr-x. 1 nagios nagios 261488 sep 24 15:22 /usr/local/nagios/sbin/tac.cgi
-rwxrwxr-x. 1 nagios nagios 241000 sep 24 15:22 /usr/local/nagios/sbin/tac-xml.cgi
-rwxrwxr-x. 1 nagios nagios 277968 sep 24 15:22 /usr/local/nagios/sbin/trends.cgi
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Coreuiproxy log error

Post by benjaminsmith »

Hi @nietonoshana,

The permissions look good, thank you. Can you send me the system profile along with the following file:

Code: Select all

/usr/local/nagios/etc/cgi.cfg

Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
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