z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

Some errors on php upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.

Some errors on php upgrade

Postby DonForigua » Sat Feb 05, 2022 7:02 pm

Hello

i've upgraded php from 7.2 to 7.4 following this manual on oracle linix 8.4:

https://support.nagios.com/kb/article/n ... 7-860.html

When the unix admin made commands:

yum -y remove php-* its delete some important dependencies:

Code: Select all
This system is receiving updates from Unbreakable Linux Network or Spacewalk.
Updating Subscription Management repositories.
Unable to read consumer identity
Repository ol8_baseos_latest is listed more than once in the configuration
Repository ol8_appstream is listed more than once in the configuration
Transaction ID : 95
Begin time     : Fri 04 Feb 2022 08:20:47 PM -05
Begin rpmdb    : 1908:02ea25072ca5cb01d08a2c0c7fc7f3c8c22e3f7d
End time       : Wed 31 Dec 1969 07:00:00 PM -05 (-1644024047 seconds)
End rpmdb      :
User           : root <root>
Return-Code    : Failure: 1
Releasever     :
Command Line   : -y remove php-*
Comment        :
Packages Altered:
** Removed ansible-2.9.25-1.el8.noarch                                           @@System
** Removed cyrus-sasl-devel-2.1.27-5.el8.x86_64                                  @@System
** Removed fping-4.2-2.el8.x86_64                                                @@System
** Removed freetds-1.1.20-1.el8.x86_64                                           @@System
** Removed freetds-devel-1.1.20-1.el8.x86_64                                     @@System
** Removed freetds-libs-1.1.20-1.el8.x86_64                                      @@System
** Removed httpd-2.4.37-43.0.2.module+el8.5.0+20484+42218d4f.1.x86_64            @@System
** Removed httpd-filesystem-2.4.37-43.0.2.module+el8.5.0+20484+42218d4f.1.noarch @@System
** Removed libc-client-2007f-24.el8.x86_64                                       @@System
** Removed libgfortran-8.4.1-1.0.4.el8.x86_64                                    @@System
** Removed libmcrypt-2.5.8-26.el8.x86_64                                         @@System
** Removed libmcrypt-devel-2.5.8-26.el8.x86_64                                   @@System
** Removed libpq-13.3-1.el8_4.x86_64                                             @@System
** Removed libquadmath-8.4.1-1.0.4.el8.x86_64                                    @@System
** Removed libserf-1.3.9-9.module+el8.3.0+7671+a87d5147.x86_64                   @@System
** Removed libssh2-1.9.0-5.el8.x86_64                                            @@System
** Removed mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64                   @@System
** Removed mod_http2-1.15.7-3.module+el8.4.0+20024+b87b2deb.x86_64               @@System
** Removed mod_ssl-1:2.4.37-43.0.2.module+el8.5.0+20484+42218d4f.1.x86_64        @@System
** Removed mysql-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64                   @@System
** Removed mysql-common-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64            @@System
** Removed mysql-devel-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64             @@System
** Removed mysql-errmsg-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64            @@System
** Removed mysql-libs-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64              @@System
** Removed mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64            @@System
** Removed nagiosxi-deps-el8-5.8.7-1.noarch                                      @@System
** Removed net-snmp-1:5.8-20.el8.x86_64                                          @@System
** Removed net-snmp-perl-1:5.8-20.el8.x86_64                                     @@System
** Removed net-snmp-utils-1:5.8-20.el8.x86_64                                    @@System
** Removed nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch   @@System
** Removed openblas-0.3.12-1.el8.x86_64                                          @@System
** Removed openblas-threads-0.3.12-1.el8.x86_64                                  @@System
** Removed openldap-devel-2.4.46-17.el8_4.x86_64                                 @@System
** Removed oracle-logos-httpd-84.5-1.0.1.el8.noarch                              @@System
** Removed pcre-cpp-8.42-4.el8.x86_64                                            @@System
** Removed pcre-devel-8.42-4.el8.x86_64                                          @@System
** Removed pcre-utf16-8.42-4.el8.x86_64                                          @@System
** Removed pcre-utf32-8.42-4.el8.x86_64                                          @@System
** Removed perl-Config-IniFiles-3.000002-3.el8.noarch                            @@System
** Removed perl-Config-Tiny-2.24-1.el8.noarch                                    @@System
** Removed perl-Crypt-DES-2.07-19.1.el8.x86_64                                   @@System
** Removed perl-Digest-SHA1-2.13-23.el8.x86_64                                   @@System
** Removed perl-IO-Socket-INET6-2.72-12.el8.noarch                               @@System
** Removed perl-IO-stringy-2.111-9.el8.noarch                                    @@System
** Removed perl-LWP-Protocol-https-6.07-4.module+el8.3.0+7692+542c56f9.noarch    @@System
** Removed perl-Mail-Sender-1:0.903-7.el8.noarch                                 @@System
** Removed perl-Math-Calc-Units-1.07-26.el8.noarch                               @@System
** Removed perl-Module-Implementation-0.09-15.el8.noarch                         @@System
** Removed perl-Module-Runtime-0.016-2.el8.noarch                                @@System
** Removed perl-Net-DNS-1.15-1.el8.noarch                                        @@System
** Removed perl-Net-SNMP-6.0.1-25.el8.1.noarch                                   @@System
** Removed perl-Params-Validate-1.29-5.el8.x86_64                                @@System
** Removed perl-SNMP_Session-1.13-17.el8.noarch                                  @@System
** Removed perl-Socket6-0.28-6.el8.x86_64                                        @@System
** Removed perl-XML-Simple-2.25-1.el8.noarch                                     @@System
** Removed php-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                      @@System
** Removed php-cli-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                  @@System
** Removed php-common-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64               @@System
** Removed php-devel-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                @@System
** Removed php-fpm-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                  @@System
** Removed php-gd-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                   @@System
** Removed php-imap-7.2.11-1.el8.x86_64                                          @@System
** Removed php-json-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                 @@System
** Removed php-ldap-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                 @@System
** Removed php-mbstring-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64             @@System
** Removed php-mysqlnd-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64              @@System
** Removed php-odbc-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                 @@System
** Removed php-pdo-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                  @@System
** Removed php-pear-1:1.10.5-9.module+el8.2.0+5510+6771133c.noarch               @@System
** Removed php-pecl-ssh2-1.2-2.el8.x86_64                                        @@System
** Removed php-pgsql-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                @@System
** Removed php-process-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64              @@System
** Removed php-snmp-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                 @@System
** Removed php-xml-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64                  @@System
** Removed platform-python-devel-3.6.8-38.0.1.el8_4.x86_64                       @@System
** Removed postgresql-10.17-1.module+el8.4.0+20190+84323769.x86_64               @@System
** Removed postgresql-server-10.17-1.module+el8.4.0+20190+84323769.x86_64        @@System
** Removed protobuf-lite-3.5.0-13.el8.x86_64                                     @@System
** Removed python3-babel-2.5.1-5.el8.noarch                                      @@System
** Removed python3-jinja2-2.10.1-2.el8_0.noarch                                  @@System
** Removed python3-jmespath-0.9.0-11.el8.noarch                                  @@System
** Removed python3-numpy-1:1.14.3-9.el8.x86_64                                   @@System
** Removed python3-rpm-generators-5-6.el8.noarch                                 @@System
** Removed python3-rrdtool-1.7.0-16.el8.x86_64                                   @@System
** Removed python3-simplejson-3.17.0-2.el8.x86_64                                @@System
** Removed python36-devel-3.6.8-2.0.1.module+el8.4.0+20103+1849b5f9.x86_64       @@System
** Removed rpmdevtools-8.10-8.0.1.el8.noarch                                     @@System
** Removed shellinabox-2.20-9.el8.x86_64                                         @@System
** Removed snmptt-1.4-0.1.el8.noarch                                             @@System
** Removed sshpass-1.06-9.el8.x86_64                                             @@System
** Removed subversion-1.10.2-4.module+el8.3.0+9645+c2a98c55.x86_64               @@System
** Removed subversion-libs-1.10.2-4.module+el8.3.0+9645+c2a98c55.x86_64          @@System
** Removed tftp-5.2-24.el8.x86_64                                                @@System
** Removed utf8proc-2.1.1-5.module+el8.3.0+7671+a87d5147.x86_64                  @@System
** Removed xinetd-2:2.3.15-24.el8.x86_64                                         @@System


I can restore the system install some lost dependencies

Code: Select all
ID     | Command line                                                                                                                           | Date and time    | Action(s)      | Altered
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   101 | install net-snmp-utils                                                                                                                 | 2022-02-04 22:30 | I, U           |    5 EE
   100 | install perl-Net-SNMP                                                                                                                  | 2022-02-04 21:59 | Install        |    4 EE
    99 | install php-mysql                                                                                                                      | 2022-02-04 21:55 | Install        |    1 EE
    98 | install mysql-libs                                                                                                                     | 2022-02-04 21:51 | Install        |    2 EE
    97 | install mod_ssl                                                                                                                        | 2022-02-04 20:58 | Install        |    1 EE


but i still have some issues

for example the ssh web terninal:

Code: Select all
[Sat Feb 05 18:37:25.930566 2022] [proxy_http:error] [pid 2521157:tid 140575319766784] [client 186.29.20.47:55520] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://xxxxxxx/nagiosxi/admin/sshterm.php


other question from the erased dependencies what should i reinstall

thanks for your help
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Some errors on php upgrade

Postby ssax » Mon Feb 07, 2022 10:57 am

Do you have an XI RPM install?

Code: Select all
rpm -qa | grep nagiosxi


Make sure the changes in the attached file are done on EL8:

php-fpm timeout issue.txt
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
 
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Some errors on php upgrade

Postby DonForigua » Fri Mar 18, 2022 9:07 am

Hi sorry for the late reply

we were renewed our support :)

No, i dont have this rpm installed.

the next changes was applied
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Some errors on php upgrade

Postby DonForigua » Fri Mar 18, 2022 10:39 am

Hello

Im still get the nex issue when i try to use the web ssh interface

Code: Select all
Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Some errors on php upgrade

Postby gsmith » Mon Mar 21, 2022 1:53 pm

Hi

What version of XI are you running?

If it is < 5.8.8 you could try an update to see if that restores the dependencies Nagios needs.

You could also go through the list of what was removed and install them again, except for any php 7.2 items

Thanks
gsmith
 
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Some errors on php upgrade

Postby DonForigua » Mon Mar 21, 2022 5:37 pm

Gello dear gsmith

We made an upgrade fron 5.8.7 to 5.8.8 and the issue is still present
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Some errors on php upgrade

Postby gsmith » Tue Mar 22, 2022 10:48 am

Hi

Here is a process I used on a Centos8 system:
dnf install https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module list php

Disable the 7.2 module that is enabled:
dnf module reset php:7.2
dnf module list php
dnf module enable php:remi-7.4
dnf install php php-imap php-opcache php-devel php-gd php-ldap php-mbstring php-pdo php-pdo-dblib php-mysqlnd php-pgsql php-pear
sed -i "s:;date.timezone =.*:date.timezone = ${PHPTZ}:" /etc/php.ini
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nag ... est.tar.gz
tar zxf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -rf /etc/php.d/sourceguardian.ini
./init.sh
sed -i '/^PHP script/d' xi-sys.cfg
sed -i '/^1)/d' xi-sys.cfg
sed -i '/^2)/d' xi-sys.cfg
sed -i '/^3)/d' xi-sys.cfg
./install-sourceguardian-extension.sh


Edit /etc/php.ini and add 'extension=ixed.7.4.lin' directive
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename
;
; For example:
;
; extension=mysqli
;
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
; extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;
; added for php 7.4
extension=ixed.7.4.lin


Restart the server
shutdown -r now


Since you are running Oracle Linux 8 you will need to validate this procedure on a Test Server before you
attempt to make the change on Production.


Thanks
gsmith
 
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Some errors on php upgrade

Postby DonForigua » Wed Mar 23, 2022 6:18 pm

Hello dear gsmith

we already have php 7.4

Code: Select all
php -v
PHP 7.4.28 (cli) (built: Feb 15 2022 13:23:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies


Code: Select all
Package php-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-imap-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-opcache-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-devel-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-gd-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-ldap-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-mbstring-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-pdo-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-pdo-dblib-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-mysqlnd-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-pgsql-7.4.28-1.el8.remi.x86_64 is already installed.
Package php-pear-1:1.10.13-1.el8.remi.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Some errors on php upgrade

Postby tgriep » Thu Mar 24, 2022 9:18 am

The shellinabox package needs to be re-installed on the server as the web ssh interface uses it.

Code: Select all
dnf install shellinabox


Then start the daemon and enable it to start at boot.

Code: Select all
systemctl start shellinaboxd
systemctl enable shellinaboxd


Then see if the web ssh interface works.

Thank you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 9157
Joined: Thu Oct 30, 2014 9:02 am

Re: Some errors on php upgrade

Postby DonForigua » Thu Mar 24, 2022 4:49 pm

Hello the meesage still appear

i have an aditional issue

some quick actions has been disapeared
You do not have the required permissions to view the files attached to this post.
DonForigua
 
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Next

Return to Nagios XI

Who is online

Users browsing this forum: mister_monitor and 13 guests