Nagios XI installation on CentOS 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hpgedda
Posts: 2
Joined: Mon Feb 01, 2016 3:55 am

Nagios XI installation on CentOS 7

Post by hpgedda »

Any helpful suggestions or solutions much appreciated. I do have an issue, similar to the one described here:

https://support.nagios.com/forum/viewto ... 6&p=169970

I am running a 7.2 Versioned Cent OS where the installation fails as " The script that failed was: './A-subcomponents' "

make[1]: *** [avail.cgi] Error 1
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/cgi'
make: *** [all] Error 2
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
Subcomponents installation failed - exiting
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: './A-subcomponents'
[hpgedda@SRVR nagiosxi]$


****************************************************************************************************************************************
[hpgedda@SRVR nagiosxi]$ cat /etc/*release*
CentOS Linux release 7.2.1511 (Core)
Derived from Red Hat Enterprise Linux 7.2 (Source)
cat: /etc/lsb-release.d: Is a directory
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
cpe:/o:centos:centos:7

[hpgedda@SRVR nagiosxi]$ uname -a
Linux SRVR.fsc.ghplandus.com 3.10.0-327.4.4.el7.x86_64 #1 SMP Tue Jan 5 16:07:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[hpgedda@SRVR nagiosxi]$
****************************************************************************************************************************************

[hpgedda@SRVR nagiosxi]$
[hpgedda@SRVR nagiosxi]$ yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: centos.sonn.com
* epel: mirror.ancl.hawaii.edu
* extras: repos.dfw.quadranet.com
* rpmforge: merlin.fit.vutbr.cz
* updates: centos.host-engine.com
nagios-base 76/76
nagiosxi-deps 27/27
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,007
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 9,356
extras/7/x86_64 CentOS-7 - Extras 191
nagios-base Nagios 76
nagiosxi-deps Nagios XI Dependencies 27
rpmforge RHEL 7 - RPMforge.net - dag 245
updates/7/x86_64 CentOS-7 - Updates 541
repolist: 19,443
[hpgedda@SRVR nagiosxi]$

****************************************************************************************************************************************

Moderators Note: This post was split/edited.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI installation on CentOS 7

Post by hsmith »

Can you please post the full installation log?
Former Nagios Employee.
me.
hpgedda
Posts: 2
Joined: Mon Feb 01, 2016 3:55 am

Re: Nagios XI installation on CentOS 7

Post by hpgedda »

Thanks for response. Please find as listed the requested LOG. Side note, the website when I try log in gives a Nagios -Website Content - Apache Error ( as attached here ).

=======================================================================================


]0;hpgedda@SRVR:/[hpgedda@SRVR /]$ ls
[0m[01;36mbin[0m [01;34mboot[0m [01;34mdev[0m [01;34metc[0m [01;34mhome[0m [01;36mlib[0m [01;36mlib64[0m [01;34mlost+found[0m [01;34mmedia[0m [01;34mmnt[0m [01;34mopt[0m [01;34mproc[0m [01;34mroot[0m [01;34mrun[0m [01;36msbin[0m [01;34msrv[0m [01;34mstore[0m [01;34msys[0m [30;42mtmp[0m [01;34musr[0m [01;34mvar[0m
]0;hpgedda@SRVR:/[hpgedda@SRVR /]$
]0;hpgedda@SRVR:/[hpgedda@SRVR /]$
]0;hpgedda@SRVR:/[hpgedda@SRVR /]$ tm[K[Kcd tmp
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$ ls
[0m[01;34mnagiosxi[0m
[01;34msystemd-private-3434bbcc70cc429c83a19e584485f8e4-httpd.service-eOfP7r[0m
[01;34msystemd-private-3434bbcc70cc429c83a19e584485f8e4-mariadb.service-wKaUcK[0m
[01;34msystemd-private-3434bbcc70cc429c83a19e584485f8e4-vmtoolsd.service-QWNt7L[0m
[01;31mxi-5.2.3.tar.gz[0m
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$
]0;hpgedda@SRVR:/tmp[hpgedda@SRVR tmp]$ cd nagiosxi/
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$ ins[K[K[Kls
[0m[01;32m0-repos[0m cpan installed.mrtg [01;31mnagiosxi-deps-5.2.3-1.noarch.rpm[0m
[01;32m10-phplimits[0m dashlets.txt installed.mysql [01;31mnagiosxi-deps-el7-5.2.3-1.noarch.rpm[0m
[01;32m11-sourceguardian[0m [01;32mD-chkconfigalldaemons[0m installed.phplimits [01;31mnagiosxi-deps-suse11-5.2.3-1.noarch.rpm[0m
[01;32m12-mrtg[0m [01;32mdebianmods[0m installed.prereqs [01;34mpackages[0m
[01;32m13-cacti[0m [01;32mE-importnagiosql[0m installed.repos [01;32mrpminstall[0m
[01;32m14-timezone[0m [01;32mfedoramods[0m installed.selinux [01;32mrpmupgrade[0m
[01;32m1-prereqs[0m [01;32mfix-nagiosadmin[0m installed.services [01;34msourceguardian[0m
[01;32m2-usersgroups[0m [01;32mF-startdaemons[0m installed.sourceguardian [01;34msubcomponents[0m
[01;32m3-dbservers[0m [01;32mfullinstall[0m installed.sudoers [01;32msusemods[0m
[01;32m4-services[0m [01;32mfunctions.sh[0m installed.timezone [01;34mtools[0m
[01;32m5-sudoers[0m [01;32mget-os-info[0m installed.usersgroups [01;32mubuntumods[0m
[01;32m6-firewall[0m [01;32mget-version[0m [01;32minstall-html[0m [01;32muninstall-crontab-nagios[0m
[01;32m7-sendmail[0m [01;32minit-auditlog[0m install.log [01;32muninstall-crontab-root[0m
[01;32m8-selinux[0m [01;32minit-mysql[0m [01;32minstall-nagiosxi-init[0m [01;32mupgrade[0m
[01;32m9-dbbackups[0m [01;32minit.sh[0m [01;32minstall-pnptemplates[0m verify-prereqs.php
[01;32mA-subcomponents[0m [01;32minit-xidb[0m [01;32minstall-sourceguardian-extension.sh[0m [01;34mvmsetup[0m
[01;32mB-installxi[0m [01;32minstall-2012-prereqs[0m [01;32minstall-sudoers[0m wizards.txt
[01;32mC-cronjobs[0m installed.dbbackups [01;32minstall-templates[0m xi-sys.cfg
CHANGELOG.txt installed.dbservers [01;34mlicenses[0m [01;32mxivar[0m
components.txt installed.firewall [01;34mnagiosxi[0m [01;32mZ-webroot[0m
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$
]0;hpgedda@SRVR:/tmp/nagiosxi[hpgedda@SRVR nagiosxi]$ [Kcat install.log
Nagios XI Installation Log
==========================
DATE: Mon Feb 1 00:45:20 PST 2016

DISTRO INFO:
CentOS
7.2.1511
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.2.3
major=5
minor=2.3
releasedate=2015-12-07
release=514

Configuring Repos...
rpmforge-release RPM installed OK
epel-release RPM installed OK
Repo configured OK
Installing prerequisites...
Loaded plugins: fastestmirror
Examining /tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
/tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: does not update installed package.
Examining /tmp/nagiosxi/nagiosxi-deps-el7-5.2.3-1.noarch.rpm: nagiosxi-deps-el7-5.2.3-1.noarch
/tmp/nagiosxi/nagiosxi-deps-el7-5.2.3-1.noarch.rpm: does not update installed package.
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.keystealth.org
* epel: mirror.nexcess.net
* extras: mirror.sanctuaryhost.com
* rpmforge: mirrors.ircam.fr
* updates: mirror.tzulo.com
Package python-pymssql-2.1.1-1.el7.x86_64 already installed and latest version
Package python-simplejson-3.3.3-1.el7.x86_64 already installed and latest version
Package perl-Net-SNMP-6.0.1-7.el7.noarch already installed and latest version
Package perl-Mail-IMAPClient-3.37-1.el7.noarch already installed and latest version
Nothing to do
Fixing php-mcrypt bug...
Prerequisites installed OK
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl restart mariadb.service
Initializing MySQL...
Saved password aaaaa worked...
MySQL initialized OK
Database servers initialized OK
/etc/services updated
sudoers configured OK
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.sonn.com
* epel: mirror.utexas.edu
* extras: mirror.rackspace.com
* rpmforge: mirrors.neterra.net
* updates: centos.host-engine.com
Package iptables-services-1.4.21-16.el7.x86_64 already installed and latest version
Nothing to do
# Generated by iptables-save v1.4.21 on Mon Feb 1 00:45:27 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [33519:2919683]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Mon Feb 1 00:45:27 2016
Firewall rules updated OK
Step completed OK
SELinux Disabled
Database backups configured OK
PHP limits configured OK
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Installed SourceGuardian loaders
MRTG configured OK
Step completed OK
PHP timezone configured OK
Installing Subcomponents...
Installing Nagios Core...
Applying Nagios XI patches to Nagios Core...
patching file nagios-4.1.1/cgi/Makefile.in
Hunk #1 succeeded at 40 with fuzz 2 (offset 1 line).
Hunk #2 succeeded at 135 (offset -16 lines).
Hunk #3 succeeded at 165 with fuzz 2 (offset -13 lines).
checking for a BSD-compatible install... /bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /bin/strip
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking for unistd.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for library containing getservbyname... none required
checking for library containing connect... none required
checking for initgroups... yes
checking for setenv... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for unsetenv... yes
checking for type of socket size... size_t
checking for library containing nanosleep... none required
checking for mail... /bin/mail
checking for glibc at least version 2.4... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... yes
GD library was found!
checking for gdImageCreateTrueColor in -lgd... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for extra flags needed to export symbols... -Wl,-export-dynamic
checking for linker flags for loadable modules... -shared
checking for traceroute... /bin/traceroute
checking for type va_list... yes
checking for perl... /bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating worker/Makefile
config.status: creating worker/ping/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: creating lib/snprintf.h
config.status: creating lib/iobroker.h

Creating sample config files in sample-config/ ...


*** Configuration summary for nagios 4.1.1 08-19-2015 ***:

General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Install ${includedir}: /usr/local/nagios/include/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/rc.d/init.d
Apache conf.d directory: /etc/httpd/conf.d
Mail program: /bin/mail
Host OS: linux-gnu
IOBroker Method: epoll

Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /bin/traceroute


Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.

cd ./base && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/base'
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nagios.o nagios.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nerd.o nerd.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o query-handler.o query-handler.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o workers.o workers.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
make -C ../lib
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/lib'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c squeue.c -o squeue.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c kvvec.c -o kvvec.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c iocache.c -o iocache.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c iobroker.c -o iobroker.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c bitmap.c -o bitmap.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c dkhash.c -o dkhash.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c runcmd.c -o runcmd.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c nsutils.c -o nsutils.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c fanout.c -o fanout.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c pqueue.c -o pqueue.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c worker.c -o worker.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c skiplist.c -o skiplist.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c nsock.c -o nsock.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -c nspath.c -o nspath.o
ar cr libnagios.a squeue.o kvvec.o iocache.o iobroker.o bitmap.o dkhash.o runcmd.o nsutils.o fanout.o pqueue.o worker.o skiplist.o nsock.o nspath.o
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/lib'
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.o broker.o nebmods.o ../common/shared.o nerd.o query-handler.o workers.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o -Wl,-export-dynamic -lm -ldl ../lib/libnagios.a
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm ../lib/libnagios.a
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/base'
cd ./cgi && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/cgi'
Makefile:169: warning: overriding recipe for target `tac-xml.cgi'
Makefile:166: warning: ignoring old recipe for target `tac-xml.cgi'
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o archiveutils.o archiveutils.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o jsonutils.o jsonutils.c
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -o archivejson.cgi archivejson.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a archiveutils.o jsonutils.o
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a
collect2: error: ld returned 1 exit status
make[1]: *** [avail.cgi] Error 1
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.1.1/cgi'
make: *** [all] Error 2
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
Subcomponents installation failed - exiting
]0;hpgedda@SRVR:/tmp/nagiosxi
[hpgedda@SRVR nagiosxi]$
[K[hpgedda@SRVR nagiosxi]$

======================================================================================================================
You do not have the required permissions to view the files attached to this post.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios XI installation on CentOS 7

Post by bwallace »

Thanks for the install log - a rudimentary question here, was this a clean/minimal install of CentOs 7.2?
If so, have any other programs been installed on it prior to this attempt at installing XI?
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked