Hi - we are using PHP version 8.1.27 on RHEL 9.
Here's an error we received when trying to do an offline upgrade to Nagios XI 2024R1.1.2: "Unable to find a match: php-imap"
We've tried to install this function in php, however it is not directly supported in RHEL9/php 8.1.27. Anyone have any ideas?
Here's an output of the upgrade command:
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Wed May 15 12:38:41 PM EDT 2024
DISTRO INFO:
RedHatEnterpriseServer
9.3
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.8.1.lin
Sourceguardian extension found for PHP version 8.1
Sourceguardian extension already in php.ini
PHP Deprecated: Optional parameter $t declared before required parameter $dbh is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/db.inc.php on line 463
PHP Deprecated: Optional parameter $view declared before required parameter $e is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils-graphs.inc.php on line 116
PHP Deprecated: Optional parameter $name declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils-notificationmethods.inc.php on line 72
PHP Deprecated: Optional parameter $mode declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils-notificationmethods.inc.php on line 72
PHP Deprecated: Optional parameter $user_id declared before required parameter $key is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utils-users.inc.php on line 1774
PHP Deprecated: Optional parameter $mode declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/highcharts/highcharts.inc.php on line 47
PHP Deprecated: Optional parameter $mode declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/nagiosbpi/nagiosbpi.inc.php on line 101
PHP Deprecated: Optional parameter $mode declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/perfdata/perfdata.inc.php on line 286
PHP Deprecated: Optional parameter $mode declared before required parameter $result is implicitly treated as a required parameter in /tmp/nagiosxi/nagiosxi/basedir/html/includes/components/usermacros/usermacros.inc.php on line 89
Checking required prereqs...
Please wait...
OLD VERSION: 60101
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 140 kB/s | 4.1 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStre 137 kB/s | 4.5 kB 00:00
EPEL 9 115 kB/s | 2.3 kB 00:00
Server 9 96 kB/s | 2.0 kB 00:00
Red Hat Satellite Client 6 for RHEL 9 x86_64 (R 125 kB/s | 3.8 kB 00:00
Workstation 9 97 kB/s | 2.0 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - Supplem 118 kB/s | 3.7 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 127 kB/s | 4.1 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStre 145 kB/s | 4.5 kB 00:00
EPEL 9 106 kB/s | 2.3 kB 00:00
Server 9 96 kB/s | 2.0 kB 00:00
Red Hat Satellite Client 6 for RHEL 9 x86_64 (R 128 kB/s | 3.8 kB 00:00
Workstation 9 102 kB/s | 2.0 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - Supplem 127 kB/s | 3.7 kB 00:00
No match for argument: php-imap
Error: Unable to find a match: php-imap
Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
-
- Posts: 1
- Joined: Thu May 16, 2024 7:27 am
-
- Posts: 318
- Joined: Wed Aug 23, 2023 11:27 am
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Hi @cochran,
It sounds like you may be missing some dependencies in your offline environment. I've included our steps for offline installation/upgrade here just in case it contains any useful information to you in this regard:
https://assets.nagios.com/downloads/nag ... onment.pdf
Per the bottom of page 2, you do need to make sure that your offline environment has access to RHEL Base, AppStream, EPEL, and codeready-builder-for-rhel-9-x86_64-rpms. From the research I did on this I believe EPEL is the specific package you need for this php-imap extension. You'll also need to make sure your php.ini file is updated with "extension=imap" assuming the php-imap extension you install goes in the default php extension directory, otherwise you'll need to specify it in this format:
Make sure to restart apache after making any php config changes:
Let us know if you have any other questions about this!
It sounds like you may be missing some dependencies in your offline environment. I've included our steps for offline installation/upgrade here just in case it contains any useful information to you in this regard:
https://assets.nagios.com/downloads/nag ... onment.pdf
Per the bottom of page 2, you do need to make sure that your offline environment has access to RHEL Base, AppStream, EPEL, and codeready-builder-for-rhel-9-x86_64-rpms. From the research I did on this I believe EPEL is the specific package you need for this php-imap extension. You'll also need to make sure your php.ini file is updated with "extension=imap" assuming the php-imap extension you install goes in the default php extension directory, otherwise you'll need to specify it in this format:
Code: Select all
extension=/path/to/extension/mysqli.so
Code: Select all
sudo systemctl restart httpd
-
- Posts: 1
- Joined: Tue May 28, 2024 1:42 am
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
How can one ensure that the php.ini file is properly configured to load the required php-imap extension in the offline environment?jsimon wrote: ↑Thu May 16, 2024 10:47 am Hi @cochran,
It sounds like you may be missing some dependencies in your offline environment. I've included our steps for offline installation/upgrade here just in case it contains any useful information to you in this regard:
https://assets.nagios.com/downloads/nag ... onment.pdf monopoly go
Per the bottom of page 2, you do need to make sure that your offline environment has access to RHEL Base, AppStream, EPEL, and codeready-builder-for-rhel-9-x86_64-rpms. From the research I did on this I believe EPEL is the specific package you need for this php-imap extension. You'll also need to make sure your php.ini file is updated with "extension=imap" assuming the php-imap extension you install goes in the default php extension directory, otherwise you'll need to specify it in this format:Make sure to restart apache after making any php config changes:Code: Select all
extension=/path/to/extension/mysqli.so
Let us know if you have any other questions about this!Code: Select all
sudo systemctl restart httpd
Last edited by dieter33 on Sun Jun 09, 2024 11:59 pm, edited 1 time in total.
-
- Developer
- Posts: 361
- Joined: Tue Jun 06, 2017 9:48 am
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Hi @cochran and @dieter33, thanks for reaching out.
I agree that php-imap isn't available on any EL9 distro and shouldn't be required to complete an upgrade. It's possible that this is fixed in release 2024R1.1.3 - when I download the offline tarball for this distribution, none of the RPMs inside require php-imap. Please let me know if you're still seeing the problem on the latest release and I'll try to help troubleshoot.
I agree that php-imap isn't available on any EL9 distro and shouldn't be required to complete an upgrade. It's possible that this is fixed in release 2024R1.1.3 - when I download the offline tarball for this distribution, none of the RPMs inside require php-imap. Please let me know if you're still seeing the problem on the latest release and I'll try to help troubleshoot.
Developer @ Nagios 2017-05-15 thru 2024-08-06
-
- Posts: 11
- Joined: Tue Mar 31, 2020 9:22 am
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Hi dieter33,
We had a similar issue on rhel8 and needed to install from specific nagios repo.
Olivier
We had a similar issue on rhel8 and needed to install from specific nagios repo.
Olivier
Code: Select all
# dnf install https://repo.nagios.com/nagios/8/nagios-repo-8-2.el8.noarch.rpm
# dnf list installed php-imap
Updating Subscription Management repositories.
Installed Packages
php-imap.x86_64 7.2.11-1.el8 @nagiosxi-deps
-
- Posts: 337
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Hi oliviergautreau
Which version of RHEL were you doing that on? It looks like you're using an RHEL 8 repository to get the older package.
Which version of RHEL were you doing that on? It looks like you're using an RHEL 8 repository to get the older package.
Please let us know if you have any other questions or concerns.
-Jason
-Jason
-
- Posts: 2
- Joined: Mon Jul 15, 2024 11:00 pm
Re: Upgrade issue with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Users of Nagios XI have reported encountering an Bitlife issue when attempting to upgrade to version 2024R1.1.1, which includes Nagios Core 4.4.13. The upgrade process fails due to an incorrect MySQL root password.
The upgrade process prompts for the MySQL root password.
Entering the correct password results in an error message indicating that the password is invalid.
The upgrade process prompts for the MySQL root password.
Entering the correct password results in an error message indicating that the password is invalid.