Page 1 of 1

Nagios plugins on Centos7/Php 7.2

Posted: Tue Aug 20, 2019 4:46 am
by gproietti
Hi,

Hope this is the right forum section to ask my question. If not, thank you to suggest me the most appropriate one.

I'm integrating additional Centos 7 (CentOS Linux release 7.6.1810 (Core)) machines in an already working Nagios Core installation and adding NRPE plugins for monitoring.
Due to application constraints, on such machines PHP 7.2 is installed.

During installation of nrpe I issue the command
# yum install nagios-plugins\*
But I found incompatibilities as plugins looks need php 7.1 environment
Error: Package: php-7.1.31-1.el7.remi.x86_64 (remi-php71)
Requires: php-common(x86-64) = 7.1.31-1.el7.remi
Installed: php-common-7.2.19-2.el7.remi.x86_64 (@remi-php72)
php-common(x86-64) = 7.2.19-2.el7.remi
Available: php-common-7.1.31-1.el7.remi.x86_64 (remi-php71)
php-common(x86-64) = 7.1.31-1.el7.remi
Error: Package: php-7.1.31-1.el7.remi.x86_64 (remi-php71)
Requires: php-cli(x86-64) = 7.1.31-1.el7.remi
Installed: php-cli-7.2.19-2.el7.remi.x86_64 (@remi-php72)
php-cli(x86-64) = 7.2.19-2.el7.remi
Available: php-cli-7.1.31-1.el7.remi.x86_64 (remi-php71)
php-cli(x86-64) = 7.1.31-1.el7.remi
You could try using --skip-broken to work around the problem
Do someone have suggestions to overcome such installation problem ?
I could try the --skip-broken option, but I doubt this will make a working installation or create additional problems.

BR
Giuseppe

Re: Nagios plugins on Centos7/Php 7.2

Posted: Tue Aug 20, 2019 6:36 am
by scottwilkerson
It looks like you have the remi repository for php71 enable when you have php72 pachages already installed.

I would check your remi repository setting and only enable 7.2

Re: Nagios plugins on Centos7/Php 7.2

Posted: Tue Aug 20, 2019 11:15 am
by gproietti
scottwilkerson wrote:It looks like you have the remi repository for php71 enable when you have php72 pachages already installed.

I would check your remi repository setting and only enable 7.2
I changed then enable options on remi-php71.repo and remi-php72.repo and it installed correctly

Many thanks.

Re: Nagios plugins on Centos7/Php 7.2

Posted: Tue Aug 20, 2019 11:43 am
by scottwilkerson
gproietti wrote:I changed then enable options on remi-php71.repo and remi-php72.repo and it installed correctly

Many thanks.
Great!

Locking thread