Page 1 of 1

ERROR IN PHP WITH NAGIOS 5.8.3 UPGRADE

Posted: Wed Jun 09, 2021 3:09 am
by igae1
Hi,

I have updated the version of nagios to 5.8.3 and at the end it shows me the following errors/warnings:

Code: Select all

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
PHP Notice:  Call made to exec_sql_query() when DB handler does not exist
#0  exec_sql_query(nagiosxi, SELECT * FROM xi_options WHERE name='active_poller_interval', ) called at [/usr/local/nagiosxi/html/includes/utils.inc.php:1044]
#1  get_option(active_poller_interval) called at [/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php:41]
#2  bpi_dashlet_init() called at [/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php:9]
#3  include_once(/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php) called at [/usr/local/nagiosxi/html/includes/dashlets.inc.php:21]
#4  require_once(/usr/local/nagiosxi/html/includes/dashlets.inc.php) called at [/usr/local/nagiosxi/html/includes/common.inc.php:12]
#5  require_once(/usr/local/nagiosxi/html/includes/common.inc.php) called at [/usr/local/nagiosxi/html/includes/components/componenthelper.inc.php:9]
#6  require_once(/usr/local/nagiosxi/html/includes/components/componenthelper.inc.php) called at [/usr/local/nagiosxi/html/includes/components/actions/actions.inc.php:7]
in /usr/local/nagiosxi/html/includes/db.inc.php on line 529

PHP Warning:  session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/nagiosxi/html/includes/components/nagiosxicustomendpoints/nagiosxicustomendpoints.inc.php:50) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 125
PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/nagiosxi/html/includes/components/nagiosxicustomendpoints/nagiosxicustomendpoints.inc.php:50) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 125
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/nagiosxi/html/includes/components/nagiosxicustomendpoints/nagiosxicustomendpoints.inc.php:50) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 185
PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/nagiosxi/html/includes/components/nagiosxicustomendpoints/nagiosxicustomendpoints.inc.php:50) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 186
Connection timed out after 15001 milliseconds

Nagios XI Upgrade Complete!
How can I solve that??

Thanks.

Regards.

Re: ERROR IN PHP WITH NAGIOS 5.8.3 UPGRADE

Posted: Wed Jun 09, 2021 12:41 pm
by benjaminsmith
Hi,

It does look like the upgrade completed successfully. Are you able to log into Nagiso XI and does the version indicator in the bottom left read 5.8.3?

Those messages are PHP warnings, which will not cause any fatal errors but are advisory messages reporting that PHP sees an issue in the script but the issue does not stop the script from running successfully.

I can check the Apache logs for you in the system profile for any errors.

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

Regards,
Benjamin

Re: ERROR IN PHP WITH NAGIOS 5.8.3 UPGRADE

Posted: Thu Jun 10, 2021 2:48 am
by igae1
benjaminsmith wrote:Hi,

It does look like the upgrade completed successfully. Are you able to log into Nagiso XI and does the version indicator in the bottom left read 5.8.3?

Those messages are PHP warnings, which will not cause any fatal errors but are advisory messages reporting that PHP sees an issue in the script but the issue does not stop the script from running successfully.

I can check the Apache logs for you in the system profile for any errors.

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

Regards,
Benjamin
Hi,

Thanks for the reply, I can read in the bottom left 5.8.3. I send you pm with profile.zip.

Thanks so much.

Re: ERROR IN PHP WITH NAGIOS 5.8.3 UPGRADE

Posted: Thu Jun 10, 2021 11:35 am
by benjaminsmith
Hi,

Thank you, we received the profile. The database log looks good, the PHP notice is there since it could not make a connection to the nagiosxi database. This could have been just a temporary issue during the upgrade.

Is the system currently functioning as expected? Try to tail the Apache log as you load the interface, and let me know if you see any new errors.

Code: Select all

tail -f /var/log/httpd/*error_log
Thanks,
Benjamin