php-pecl-ssh2 not available

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
wagnbeu0
Posts: 25
Joined: Tue Nov 03, 2015 5:28 am

php-pecl-ssh2 not available

Post by wagnbeu0 »

Hi, I am running Nagios XI on Centos7. Now I want to upgrade inplace to Oracle Linux8.

After installing some additional libraries my Nagios Webserver is back online:

Code: Select all

yum install php-fpm
systemctl restart php-fpm
cd /root/loader
cp *7.2* /usr/lib64/php/modules/
echo extension=ixed.7.2.lin>>/etc/php.ini
systemctl restart httpd
systemctl restart php-fpm
When I login, the subpages "Help" - "Scheduled Backups" cannot be shown. The webserver tells me when open this in a new tab that php-pecl-ssh2 is missing.
Unfortunately i cannot find this library:

Code: Select all

yum install php-pecl-ssh2
Last metadata expiration check: 0:31:06 ago on Wed 16 Aug 2023 12:49:49 PM CEST.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides php(api) = 20100412-64 needed by php-pecl-ssh2-0.12-1.el7.x86_64
  - nothing provides php(zend-abi) = 20100525-64 needed by php-pecl-ssh2-0.12-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
You have new mail in /var/spool/mail/root
How can I install it on OracleLinux8?
swolf

Re: php-pecl-ssh2 not available

Post by swolf »

Hi @wagnbeu0, thanks for reaching out.

To resolve your immediate issue, I would just make sure `epel-release` is installed on your Oracle Linux 8 server. EPEL is a standard dependency for Nagios XI and I'm surprised that you'd be able to install Nagios XI on Oracle without having that repository.

In general, though, we don't recommend doing in-place upgrades. For best results, you'll want to look at our Backup and Restore Documentation. Our main path for migration between distributions is to take a backup from one distribution and restore it to a fresh Nagios XI server of the same version on a different distribution (e.g. you would backup from CentOS 7 + Nagios XI 5.11.1 and restore to Oracle Linux 8 + Nagios XI 5.11.1). If you go this path, you shouldn't need to install any additional libraries (and if you do, I would call that a bug).

Hopefully that helps. Let us know how it turns out, and feel free to ask about any additional questions or concerns.

-Sebastian Wolf
Post Reply