Page 2 of 3

Re: Installing Nagios XI latest ver on RHEL7

Posted: Wed Dec 23, 2015 4:59 pm
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?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Fri Dec 25, 2015 8:57 am
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

Re: Installing Nagios XI latest ver on RHEL7

Posted: Sun Dec 27, 2015 9:18 pm
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

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Dec 28, 2015 10:30 am
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?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Thu Dec 31, 2015 10:26 am
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

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Jan 04, 2016 11:34 am
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?

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Jan 04, 2016 2:33 pm
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

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Jan 04, 2016 5:30 pm
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

Re: Installing Nagios XI latest ver on RHEL7

Posted: Sat Jan 09, 2016 3:54 pm
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.

Re: Installing Nagios XI latest ver on RHEL7

Posted: Mon Jan 11, 2016 1:18 pm
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.