Some errors on nagios update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Some errors on nagios update

Post by DonForigua »

Good afternoon

when i upgrade the testing nagios i get this error

Code: Select all

Deprecated: Function get_magic_quotes_gpc() is deprecated in /usr/local/nagiosxi/html/includes/utils.inc.php on line 262

Deprecated: Function get_magic_quotes_gpc() is deprecated in /usr/local/nagiosxi/html/includes/utils.inc.php on line 262

Deprecated: Array and string offset access syntax with curly braces is deprecated in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPUsers.php on line 520

Warning: session_name(): Cannot change session name when headers already sent in /usr/local/nagiosxi/html/includes/utils.inc.php on line 107

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/local/nagiosxi/html/includes/utils.inc.php on line 110

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/local/nagiosxi/html/includes/utils.inc.php on line 111

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/local/nagiosxi/html/includes/utils.inc.php on line 112

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/local/nagiosxi/html/includes/utils.inc.php on line 118

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /usr/local/nagiosxi/html/includes/utils.inc.php on line 121

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/local/nagiosxi/html/includes/utils.inc.php on line 122

Warning: session_start(): Cannot start session when headers already sent in /usr/local/nagiosxi/html/includes/utils.inc.php on line 125

Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/utils.inc.php on line 156

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/nagiosxi/html/includes/utils.inc.php:262) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 185

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/nagiosxi/html/includes/utils.inc.php:262) in /usr/local/nagiosxi/html/includes/utils.inc.php on line 186

Nagios XI Upgrade Complete!
---------------------------

You can access the Nagios XI web interface by visiting:
    http://192.168.1.118/nagiosxi/
the php version is

Code: Select all

PHP 7.4.27 (cli) (built: Dec 14 2021 17:17:06) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Some errors on nagios update

Post by pbroste »

you're possibly missing the character set settings in your php config, please edit this file:

/usr/local/nagiosxi/html/config.inc.php

Under each of these lines that define the db connections:

"db" => 'nagiosxi',
...
"db" => 'nagios',
...
"db" => 'nagiosql',

Add this:

"charset" => 'utf8',

So they look like this:

"db" => 'nagiosxi',
"charset" => 'utf8',
...
"db" => 'nagios',
"charset" => 'utf8',
...
"db" => 'nagiosql',
"charset" => 'utf8',

Let us know how that looks,
Perry
Locked