Installing Nagios XI latest ver on RHEL7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by ssax »

It looks like this is a custom system, you have webtatic repo on there and that's usually installed when you're trying to upgrade some packages (like php and other packages) outside of the standard RHEL repos.

This part from the logs is especially worrying since we definitely don't support php 7:

Code: Select all

Error: Package: php70w-common-7.0.0-1.w6.x86_64 (webtatic)
Are you sure this is a fresh install?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by bosecorp »

I don't have that package

here is what I have

# rpm -qa | grep php*
phonon-4.6.0-9.el7.x86_64
php-common-5.4.16-21.el7.x86_64
xz-libs-5.1.2-9alpha.el7.x86_64
php-mbstring-5.4.16-21.el7.x86_64
xz-5.1.2-9alpha.el7.x86_64
graphite2-1.2.2-5.el7.x86_64
phonon-backend-gstreamer-4.6.3-3.el7.x86_64
root@nagmonus3:(12-25 08:55): /root
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by bosecorp »

I was able to resolve the prev. dependencies issues. it took me several hours. this installation was not straight forward.


This is the new error

** Ooops, one of many bad things happened:

a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.

b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.

c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.

d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...

Consider following the instructions in doc/mrtg-unix-guide.txt
ERROR: Subcomponent 'mrtg' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by lmiltchev »

Try installing the required packages by running:

Code: Select all

yum install libmcrypt-devel freetds-devel php-mbstring -y
then rerun the fullinstall. Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by bosecorp »

it does not work

# yum install libmcrypt-devel freetds-devel php-mbstring -y
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Nothing to do
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by lmiltchev »

Try adding the epel repo by running:

Code: Select all

yum install epel-release
then run:

Code: Select all

yum clean all
and rerun the "fullinstall". Did this fix the issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by bosecorp »

Nothing. No luck

root@nagmonus3:(01-04 14:32): /root
# yum install epel-release
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
Bose-dev-rhel-x86_64-server-7 | 1.5 kB 00:00:00
Nothing to do
root@nagmonus3:(01-04 14:32): /root
# yum clean all
Loaded plugins: product-id, rhnplugin, subscription-manager
Cleaning repos: Bose-dev-rhel-x86_64-server-7 nagios-base nagiosxi-deps
Cleaning up everything
root@nagmonus3:(01-04 14:32): /root
# yum install libmcrypt-devel freetds-devel php-mbstring -y
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
(1/2): nagios-base/primary | 9.2 kB 00:00:00
(2/2): nagiosxi-deps/primary | 9.9 kB 00:00:00
Bose-dev-rhel-x86_64-server-7 | 1.5 kB 00:00:00
Bose-dev-rhel-x86_64-server-7/group | 621 kB 00:00:00
Bose-dev-rhel-x86_64-server-7/updateinfo | 525 kB 00:00:00
Bose-dev-rhel-x86_64-server-7/primary | 7.6 MB 00:00:00
Bose-dev-rhel-x86_64-server-7 6990/6990
nagios-base 76/76
nagiosxi-deps 27/27
Nothing to do
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Installing Nagios XI latest ver on RHEL7

Post by tgriep »

Can you run the fullinstall on the server again and post the install.log file here so we can review it.
Can you run this as root on the server and post the /tmp/yumlist.txt file?

Code: Select all

yum list installed > /tmp/yumlist.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Installing Nagios XI latest ver on RHEL7

Post by bosecorp »

same, I have been able to determined that the issue is with MRTG

here is the same error

checking gd.h presence... yes
checking for gd.h... yes

** Ooops, one of many bad things happened:

a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.

b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.

c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.

d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...

Consider following the instructions in doc/mrtg-unix-guide.txt
ERROR: Subcomponent 'mrtg' installation failed - exiting.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Installing Nagios XI latest ver on RHEL7

Post by hsmith »

Is there a particular reason you have both architectures of gd installed on your system?

Try to remove gd.i686 and see if this resolves anything.
Former Nagios Employee.
me.
Locked