Page 1 of 2
Failed to install Nagios XI
Posted: Wed Apr 17, 2013 6:23 pm
by rks
Env:
RHEL5.5, x86_64
No MySQL/Postgresql installed
Problem:
The installation proceed smoothly till the A-subcomponents step where it failed with the error:
Code: Select all
*** Configuration summary for nagios 3.4.1 05-11-2012 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/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
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/base'
make[1]: *** No rule to make target `../include/locations.h', needed by `broker.o'. Stop.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
make: *** [all] Error 2
NAGIOSCORE-POST
cp: target `/usr/local/nagios/share/images/logos' is not a directory
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
The error puzzles me - does not A-subcomponent install nagios core from scratch? Or does it expect me to
have pre-installed nagios core (not likely I think)?
ANy suggestions appreciated!
Rk
Re: Failed to install Nagios XI
Posted: Thu Apr 18, 2013 9:47 am
by slansing
Do you have gnome installed or are you behind a proxy?
Do you have a C-compiler installed?
aka:
Remove all files from your "/tmp" directory, download Nagios XI again, "untar" it, move to the newly created "nagiosxi" directory and run "./fullinstall". If it fails again, post the errors found in the "install.log" file.
Re: Failed to install Nagios XI
Posted: Thu Apr 18, 2013 11:07 am
by rks
I am not behind a proxy and I do have gcc installed:
Code: Select all
# yum -y install gcc
base | 1.3 kB 00:00
base/primary | 646 kB 00:00
base 2045/2045
cisco-linux-common | 1.1 kB 00:00
cisco-linux-common/primary | 5.5 kB 00:00
cisco-linux-common 18/18
cisco-linux-desktop | 1.1 kB 00:00
cisco-linux-desktop/primary | 18 kB 00:00
cisco-linux-desktop 63/63
desktop-install | 951 B 00:00
desktop-install/primary | 219 B 00:00
desktop-update | 1.1 kB 00:00
desktop-update/primary | 29 kB 00:00
desktop-update 108/108
emergency-desktop-install | 951 B 00:00
emergency-desktop-install/primary | 223 B 00:00
emergency-desktop-update | 951 B 00:00
emergency-desktop-update/primary | 222 B 00:00
emergency-install | 951 B 00:00
emergency-install/primary | 215 B 00:00
emergency-update | 1.1 kB 00:00
emergency-update/primary | 18 kB 00:00
emergency-update 16/16
engineering-install | 951 B 00:00
engineering-install/primary | 223 B 00:00
engineering-update | 1.1 kB 00:00
engineering-update/primary | 5.6 kB 00:00
engineering-update 32/32
epel | 3.6 kB 00:00
epel/primary_db | 3.7 MB 00:01
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 7.0 MB 00:01
vt | 1.3 kB 00:00
vt/primary | 19 kB 00:00
vt 71/71
workstation | 1.3 kB 00:00
workstation/primary | 277 kB 00:00
workstation 1235/1235
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package gcc-4.1.2-48.el5.x86_64 already installed and latest version
Nothing to do
#
Re: Failed to install Nagios XI
Posted: Thu Apr 18, 2013 12:44 pm
by scottwilkerson
Do you have gnome installed?
Re: Failed to install Nagios XI
Posted: Thu Apr 18, 2013 1:22 pm
by sreinhardt
The first part of nagios xi installer would have handled all the build prereqs anyway so gcc should not be the issue. You are also correct in stating that XI expects to build and install its own version of core, and it is handled within the A-subcomponents script. Aside from if you have gnome, could you post the entirety of the install.log file please.
Re: Failed to install Nagios XI
Posted: Sun Apr 21, 2013 5:53 am
by rks
I do have gnome installed:
Code: Select all
# yum groupinstall "gnome"
Excluding Packages in global exclude list
Finished
Setting up Group Process
Package nautilus-2.16.2-7.el5.x86_64 already installed and latest version
Package 1:control-center-2.16.0-16.el5.x86_64 already installed and latest version
Package yelp-2.16.0-22.el5.x86_64 already installed and latest version
Package gnome-terminal-2.16.0-5.3.el5.x86_64 already installed and latest version
Package gnome-panel-2.16.1-7.el5.x86_64 already installed and latest version
Package 1:gnome-applets-2.16.0.1-19.el5.x86_64 already installed and latest version
Package gnome-session-2.16.0-7.el5.x86_64 already installed and latest version
Package metacity-2.16.0-15.el5.x86_64 already installed and latest version
Package gnome-user-docs-2.16.0-2.fc6.noarch already installed and latest version
Package vino-2.13.5-9.el5.x86_64 already installed and latest version
Package gnome-themes-2.16.0-1.fc6.noarch already installed and latest version
Package 1:gedit-2.16.0-9.el5.x86_64 already installed and latest version
Package gnome-power-manager-2.16.0-10.el5.x86_64 already installed and latest version
Package evince-0.6.0-13.el5.x86_64 already installed and latest version
Package gnome-system-monitor-2.16.0-3.el5.x86_64 already installed and latest version
Package alacarte-0.10.0-1.fc6.noarch already installed and latest version
Package gnome-backgrounds-2.15.92-1.fc6.noarch already installed and latest version
Package at-spi-1.7.11-3.el5.x86_64 already installed and latest version
Package gnome-volume-manager-2.15.0-5.el5.x86_64 already installed and latest version
Package gok-1.2.0-2.el5.x86_64 already installed and latest version
Package gnome-audio-2.0.0-3.1.1.noarch already installed and latest version
Package dvd+rw-tools-7.0-1.el5.x86_64 already installed and latest version
Package nautilus-cd-burner-2.16.0-7.el5.x86_64 already installed and latest version
Package esc-1.1.0-11.el5.x86_64 already installed and latest version
Package notification-daemon-0.3.5-9.el5.x86_64 already installed and latest version
Package gnome-user-share-0.10-6.el5.x86_64 already installed and latest version
Package gtk2-engines-2.8.0-3.el5.x86_64 already installed and latest version
Package 1:NetworkManager-gnome-0.7.0-10.el5.x86_64 already installed and latest version
Package gimp-print-utils-4.2.7-22.2.el5.x86_64 already installed and latest version
Package desktop-printing-0.19-20.2.el5.x86_64 already installed and latest version
Package im-chooser-0.3.3-6.el5.x86_64 already installed and latest version
Package gnome-netstatus-2.12.0-5.el5.x86_64 already installed and latest version
Package sabayon-apply-2.12.4-6.el5.x86_64 already installed and latest version
Package nautilus-open-terminal-0.6-7.el5.x86_64 already installed and latest version
Package file-roller-2.16.0-2.fc6.x86_64 already installed and latest version
Package gnome-mag-0.13.1-1.fc6.x86_64 already installed and latest version
Package 1:gnome-utils-2.16.0-5.el5.x86_64 already installed and latest version
Package nautilus-sendto-1.0.1-6.el5.x86_64 already installed and latest version
Package eog-2.16.0.1-6.el5.x86_64 already installed and latest version
Package gnome-screensaver-2.16.1-8.el5.x86_64 already installed and latest version
Package gnome-media-2.16.1-3.el5.x86_64 already installed and latest version
Package gnome-vfs2-smb-2.16.2-6.el5.x86_64 already installed and latest version
Package gnome-pilot-2.0.13-16.x86_64 already installed and latest version
Package orca-1.0.0-5.el5.x86_64 already installed and latest version
No packages in any requested group available to install or update
#
I reattempted install (after deleting all files off /tmp and retaining just /tmp/nagiosxi).
I get the same error:
Code: Select all
# cd /tmp/nagiosxi
./fullinstall
//...elided...
cd ./base && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
make[1]: *** No rule to make target `../include/locations.h', needed by `broker.o'. Stop.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
make: *** [all] Error 2
NAGIOSCORE-POST
cp: target `/usr/local/nagios/share/images/logos' is not a directory
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'
#
Re: Failed to install Nagios XI
Posted: Mon Apr 22, 2013 11:11 am
by abrist
Are you running the install as the root user?
Do you have a build of redhat that does not include gnome?
What is your current $PATH? (gnome is known to mess with this)
You had some elf errors in the configure process, seems to be related to perl:
Code: Select all
which perl
file /usr/local/bin/perl
Re: Failed to install Nagios XI
Posted: Mon Apr 22, 2013 11:40 pm
by rks
Yes, I am install this as root:
Code: Select all
[root@ctv-cache-backup ~]# who am i
root pts/0 2013-04-22 19:05 (sjc-vpn5-1006.cisco.com)
Here is the PATH:
Code: Select all
[root@ctv-cache-backup ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Perl is in the path as well:
Code: Select all
[root@ctv-cache-backup ~]# which perl
/usr/local/bin/perl
[root@ctv-cache-backup ~]#
My version of RHEL5 did not have Gnome prebuilt, since this is a headless VM.
I hence installed gnome manually.
Thanks,
Rk
Re: Failed to install Nagios XI
Posted: Tue Apr 23, 2013 1:03 pm
by scottwilkerson
try this
Then go through configure and make again
Re: Failed to install Nagios XI
Posted: Wed Apr 24, 2013 1:07 am
by rks
Shouldn't "fullinstall" automatically install perl-devel too?
Could you please give me the yum repositories for
perl-devel? I tried and got the following:
Code: Select all
[root@ctv-cache-backup tmp]#
[root@ctv-cache-backup tmp]# yum install perl-devel -y
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package perl-devel available.
Nothing to do
[root@ctv-cache-backup tmp]#
I tried to manually download perl-devl RPM but I am failing dependencies:
Code: Select all
[root@ctv-cache-backup tmp]# rpm -ivh perl-devel-5.8.8-7mdv2007.0.x86_64.rpm
warning: perl-devel-5.8.8-7mdv2007.0.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 70771ff3
error: Failed dependencies:
perl-base is needed by perl-devel-5.8.8-7mdv2007.0.x86_64
[root@ctv-cache-backup tmp]#
So I tried to yum install perl-base and it failed due to a conflict:
Code: Select all
[root@ctv-cache-backup tmp]# yum install perl-base -y
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-base.noarch 0:2.14-1.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
perl-base noarch 2.14-1.el5.rf rpmforge 18 k
Transaction Summary
===============================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total size: 18 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /usr/share/man/man3/base.3pm.gz from install of perl-base-2.14-1.el5.rf.noarch conflicts with file from package perl-5.8.8-27.el5.x86_64
file /usr/share/man/man3/fields.3pm.gz from install of perl-base-2.14-1.el5.rf.noarch conflicts with file from package perl-5.8.8-27.el5.x86_64
Error Summary
-------------
[root@ctv-cache-backup tmp]#
I have the following perl RPMs installed:
Code: Select all
[root@ctv-cache-backup tmp]# rpm -qa | grep perl
perl-Sys-Mmap-0.13-cisco.7.el5.x86_64
perl-Socket6-0.19-3.fc6.x86_64
perl-Error-0.17010-1.el5.noarch
perl-HTML-Parser-3.55-1.fc6.x86_64
perl-Net-SSLeay-1.30-4.fc6.x86_64
perl-IO-Socket-SSL-1.01-1.fc6.noarch
perl-5.8.8-27.el5.x86_64
perl-String-CRC32-1.4-2.fc6.x86_64
perl-Digest-HMAC-1.01-15.noarch
perl-libwww-perl-5.805-1.1.1.noarch
perl-Net-IP-1.25-2.fc6.noarch
perl-MailTools-1.77-1.el5.noarch
perl-XML-Parser-2.34-6.1.2.2.1.x86_64
perl-Crypt-SSLeay-0.51-11.el5.x86_64
perl-Net-SMTP-TLS-0.12-1.el5.rf.noarch
perl-IO-Socket-INET6-2.51-2.fc6.noarch
perl-Parse-RecDescent-1.965.1-2.el5.rf.noarch
perl-rrdtool-1.4.7-1.el5.rf.x86_64
perl-SGMLSpm-1.03ii-16.2.1.noarch
cisco-net-snmp-perlmods-5.4.1-5.cel5.3.x86_64
perl-Sys-Getpagesize-1.00-cisco.4.el5.x86_64
perl-URI-1.35-3.noarch
perl-TimeDate-1.16-5.el5.noarch
perl-DmiDecode-0.95-cisco.2.rhel5.x86_64
perl-Net-DNS-0.59-3.el5.x86_64
newt-perl-1.08-9.2.2.x86_64
perl-Crypt-DES-2.05-3.2.el5.rf.x86_64
perl-Mail-IMAPClient-3.32-1.el5.noarch
perl-DBI-1.52-2.el5.x86_64
perl-HTML-Tagset-3.10-2.1.1.noarch
perl-Config-IniFiles-2.39-6.el5.noarch
perl-XML-Simple-2.14-4.fc6.noarch
perl-Mail-POP3Client-2.18-1.el5.rf.noarch
perl-Digest-SHA1-2.11-1.2.1.x86_64
perl-Compress-Zlib-1.42-1.fc6.x86_64
perl-DBD-MySQL-3.0007-2.el5.x86_64
perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch
[root@ctv-cache-backup tmp]#
I am at my wit's end now - is there something basic I am missing?
Thanks,
Rk