Page 1 of 3

Installing Nagios XI latest ver on RHEL7

Posted: Sun Dec 20, 2015 1:15 pm
by bosecorp
I am unable to install Nagios latest version on RHEL 7,

I am getting bunch of dependencies errors

Code: Select all

---> Package php-common.x86_64 0:5.4.16-21.el7 will be updated
--> Processing Dependency: php-common(x86-64) = 5.4.16-21.el7 for package: php-mbstring-5.4.16-21.el7.x86_64
---> Package php-common.x86_64 0:5.4.16-23.el7_0.3 will be an update
---> Package php70w.x86_64 0:7.0.0-1.w6 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: php70w-7.0.0-1.w6.x86_64
---> Package php70w-common.x86_64 0:7.0.0-1.w6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: php70w-common-7.0.0-1.w6.x86_64
---> Package php70w-ldap.x86_64 0:7.0.0-1.w6 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: php70w-ldap-7.0.0-1.w6.x86_64
---> Package php70w-snmp.x86_64 0:7.0.0-1.w6 will be installed
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php70w-snmp-7.0.0-1.w6.x86_64
--> Processing Conflict: 1:mariadb100u-config-10.0.22-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.0
--> Processing Conflict: php70w-common-7.0.0-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-23.el7_0.3.x86_64
Error: Package: libmcrypt-devel-2.5.8-9.el6.x86_64 (webtatic)
           Requires: libmcrypt = 2.5.8-9.el6
           Available: libmcrypt-2.5.8-9.el6.x86_64 (webtatic)
               libmcrypt = 2.5.8-9.el6
           Installing: libmcrypt-2.5.8-13.el7.x86_64 (nagiosxi-deps)
               libmcrypt = 2.5.8-13.el7
Error: Package: freetds-devel-0.91-2.el6.x86_64 (webtatic)
           Requires: freetds = 0.91-2.el6
           Available: freetds-0.91-2.el6.x86_64 (webtatic)
               freetds = 0.91-2.el6
           Available: freetds-0.91-12.git0a42888.el7.x86_64 (nagiosxi-deps)
               freetds = 0.91-12.git0a42888.el7
           Installing: freetds-0.95.19-1.el7.x86_64 (nagiosxi-deps)
               freetds = 0.95.19-1.el7
Error: Package: php70w-snmp-7.0.0-1.w6.x86_64 (webtatic)
           Requires: libnetsnmp.so.20()(64bit)
Error: Package: php70w-common-7.0.0-1.w6.x86_64 (webtatic)
           Requires: libgmp.so.3()(64bit)
Error: Package: php70w-ldap-7.0.0-1.w6.x86_64 (webtatic)
           Requires: libsasl2.so.2()(64bit)
Error: mariadb100u-config conflicts with 1:mariadb-libs-5.5.41-2.el7_0.x86_64
Error: Package: php-mbstring-5.4.16-21.el7.x86_64 (@/php-mbstring-5.4.16-21.el7.x86_64)
           Requires: php-common(x86-64) = 5.4.16-21.el7
           Removing: php-common-5.4.16-21.el7.x86_64 (@Bose-dev-rhel-x86_64-server-7)
               php-common(x86-64) = 5.4.16-21.el7
           Updated By: php-common-5.4.16-23.el7_0.3.x86_64 (Bose-dev-rhel-x86_64-server-7)
               php-common(x86-64) = 5.4.16-23.el7_0.3
           Available: php-common-5.4.16-23.el7_0.x86_64 (Bose-dev-rhel-x86_64-server-7)
               php-common(x86-64) = 5.4.16-23.el7_0
           Available: php-common-5.4.16-23.el7_0.1.x86_64 (Bose-dev-rhel-x86_64-server-7)
               php-common(x86-64) = 5.4.16-23.el7_0.1
           Available: php54w-common-5.4.45-2.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.4.45-2.w6
           Available: php55w-common-5.5.30-2.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.5.30-2.w6
           Available: php56u-common-5.6.16-1.ius.centos7.x86_64 (ius)
               php-common(x86-64) = 5.6.16-1.ius.centos7
           Available: php56w-common-5.6.14-2.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.6.14-2.w6
           Available: php56w-common-5.6.15-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.6.15-1.w6
           Available: php56w-common-5.6.16-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.6.16-1.w6
           Installing: php70w-common-7.0.0-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 7.0.0-1.w6
Error: Package: php70w-7.0.0-1.w6.x86_64 (webtatic)
           Requires: httpd-mmn = 20051115
           Installed: httpd-2.4.6-31.el7.x86_64 (@rhel-7-server-rpms)
               httpd-mmn = 20120211
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
           Available: httpd-2.4.6-17.el7.x86_64 (Bose-dev-rhel-x86_64-server-7)
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211
           Available: httpd-2.4.6-18.el7_0.x86_64 (Bose-dev-rhel-x86_64-server-7)
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211
           Available: httpd-2.4.6-19.el7_0.x86_64 (Bose-dev-rhel-x86_64-server-7)
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './1-prereqs'

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Dec 21, 2015 10:16 am
by rkennedy
Is this a fresh install? Can you please post the result of yum repolist?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Tue Dec 22, 2015 8:34 am
by bosecorp
it's a fresh install.

here you go

# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
repo id repo name status
Bose-dev-rhel-x86_64-server-7 Bose-dev-rhel-x86_64-server-7 6,990
ius/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 133
nagios-base Nagios 76
nagiosxi-deps Nagios XI Dependencies 27
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 680
rpmforge RHEL 7Server - RPMforge.net - dag 245
webtatic/x86_64 Webtatic Repository EL6 - x86_64 285
repolist: 8,436
root@nagmonus3:(12-22 08:34): /root
#

Re: Installing Nagios XI latest ver on RHEL7

Posted: Tue Dec 22, 2015 10:15 am
by lmiltchev
Can you post the entire install.log?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Tue Dec 22, 2015 7:23 pm
by rajasegar
bosecorp wrote:it's a fresh install.

here you go

# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
repo id repo name status
Bose-dev-rhel-x86_64-server-7 Bose-dev-rhel-x86_64-server-7 6,990
ius/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 133
nagios-base Nagios 76
nagiosxi-deps Nagios XI Dependencies 27
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 680
rpmforge RHEL 7Server - RPMforge.net - dag 245
webtatic/x86_64 Webtatic Repository EL6 - x86_64 285
repolist: 8,436
root@nagmonus3:(12-22 08:34): /root
#

You will need the version 7 of the repos below

Code: Select all

nagios-base                                         Nagios                                                                          151
nagiosxi-deps                                       Nagios XI Dependencies                                                           33
rhel-6-server-optional-debug-rpms                   Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs)                     3,984
rhel-6-server-optional-rpms                         Red Hat Enterprise Linux 6 Server - Optional (RPMs)                           9,288
rhel-6-server-rpms                                  Red Hat Enterprise Linux 6 Server (RPMs)                                     16,455
rhel-6-server-supplementary-debuginfo               Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs)                   39
rhel-6-server-supplementary-rpms                    Red Hat Enterprise Linux 6 Server - Supplementary (RPMs)                        576
rpmforge                                            RHEL 6Server - RPMforge.net - dag                             
Have not tried this but try changing the 6 to 7. If does not work, do it from the RedHat site.

Code: Select all

sudo subscription-manager repos --enable=rhel-6-server-optional-rpms
sudo subscription-manager repos --enable=rhel-6-server-optional-debug-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-debuginfo

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 10:07 am
by tgriep
Rajasegar, thanks for the help.
A couple of things that look wrong that have to be addressed.
1. The version 6 of the repos will have to be removed and version 7 will have to be installed.
2. It look like you have installed PHP version 7 which we currently do not support. The highest version we support in 5.6 so that will have to be resolved.

BTW, we did install XI in a fresh version of RHEL 7.2 with the optional channels enabled without any issues.

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 4:32 pm
by bosecorp
what are we suggesting as a next step?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 4:36 pm
by hsmith
bosecorp wrote:what are we suggesting as a next step?
tgriep wrote:1. The version 6 of the repos will have to be removed and version 7 will have to be installed.
2. It look like you have installed PHP version 7 which we currently do not support. The highest version we support in 5.6 so that will have to be resolved.
rajasegar wrote:
bosecorp wrote:it's a fresh install.

here you go

# yum repolist
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
repo id repo name status
Bose-dev-rhel-x86_64-server-7 Bose-dev-rhel-x86_64-server-7 6,990
ius/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 133
nagios-base Nagios 76
nagiosxi-deps Nagios XI Dependencies 27
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 680
rpmforge RHEL 7Server - RPMforge.net - dag 245
webtatic/x86_64 Webtatic Repository EL6 - x86_64 285
repolist: 8,436
root@nagmonus3:(12-22 08:34): /root
#

You will need the version 7 of the repos below

Code: Select all

nagios-base                                         Nagios                                                                          151
nagiosxi-deps                                       Nagios XI Dependencies                                                           33
rhel-6-server-optional-debug-rpms                   Red Hat Enterprise Linux 6 Server - Optional (Debug RPMs)                     3,984
rhel-6-server-optional-rpms                         Red Hat Enterprise Linux 6 Server - Optional (RPMs)                           9,288
rhel-6-server-rpms                                  Red Hat Enterprise Linux 6 Server (RPMs)                                     16,455
rhel-6-server-supplementary-debuginfo               Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs)                   39
rhel-6-server-supplementary-rpms                    Red Hat Enterprise Linux 6 Server - Supplementary (RPMs)                        576
rpmforge                                            RHEL 6Server - RPMforge.net - dag                             
Have not tried this but try changing the 6 to 7. If does not work, do it from the RedHat site.

Code: Select all

sudo subscription-manager repos --enable=rhel-6-server-optional-rpms
sudo subscription-manager repos --enable=rhel-6-server-optional-debug-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-debuginfo
Have you done any of this?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 4:38 pm
by bosecorp
I uploaded the log you asked for in my prev. post

and my version of php is the following

# rpm -qa | grep php
php-common-5.4.16-21.el7.x86_64
php-mbstring-5.4.16-21.el7.x86_64

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 4:54 pm
by tgriep
Try and remove the conflicting package and see if that helps.

Code: Select all

yum remove php70w-common