Nagios plugins on Centos7/Php 7.2

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gproietti
Posts: 2
Joined: Sat Aug 17, 2019 12:22 am

Nagios plugins on Centos7/Php 7.2

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios plugins on Centos7/Php 7.2

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
gproietti
Posts: 2
Joined: Sat Aug 17, 2019 12:22 am

Re: Nagios plugins on Centos7/Php 7.2

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios plugins on Centos7/Php 7.2

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked