I am running the Nagios Xi install on a newly built Redhat server - Linux 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 Red Hat Enterprise Linux Server release 6.5 (Santiago). During the install I had to copy the following files to the /tmp/nagiosxi/packages directory:
epel-release-6-8.noarch.rpm
nagios-repo-6-2.el6.noarch.rpm
rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
I then ran the install again. I am now receiving the following:
========================
Nagios XI Full Installer
========================
This script will do a complete install of Nagios XI by executing all necessary sub-scripts.
IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes or has an existing install of
Nagios Core. To create such a clean install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
./functions.sh: line 39: ./1-prereqs: No such file or directory
RESULT=127
===================
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'
There is no proxy issue with the server, it can get to the internet. The install log basically has the same information. How can I correct this problem?
Thanks!
./functions.sh: line 39: ./1-prereqs: No such file or direct
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: ./functions.sh: line 39: ./1-prereqs: No such file or di
The nagiosxi install directory should have a file named '1-prereqs' and that file should be executable. It would seem that's not the case on your box?srg1970nj wrote:Code: Select all
Running './1-prereqs'... ./functions.sh: line 39: ./1-prereqs: No such file or directory
Re: ./functions.sh: line 39: ./1-prereqs: No such file or di
Correct. There is no file in the /tmp/nagiosxi directory called 1-prereqs. This is everything in the directory:
[root@csnagios1 nagiosxi]# ls -l
total 144
-rwxr-xr-x 1 root root 6870 Mar 26 13:40 0-repos
-rwxr-xr-x 1 root root 4821 Feb 12 18:06 fullinstall
-rwxr-xr-x 1 root root 2017 Feb 12 18:06 functions.sh
-rwxr-xr-x 1 root root 1830 Feb 12 18:06 get-os-info
-rwxr-xr-x 1 root root 1463 Feb 12 18:06 init.sh
-rw-r--r-- 1 root root 0 Apr 8 13:50 installed.repos
-rw-r--r-- 1 root root 75561 Apr 8 15:31 install.log
drwxr-xr-x 2 root root 4096 Feb 12 18:06 licenses
drwxr-xr-x 10 root root 4096 Feb 12 18:06 nagiosxi
drwxr-xr-x 2 root root 4096 Apr 8 13:50 packages
drwxr-xr-x 2 root root 4096 Feb 12 18:06 sourceguardian
drwxr-xr-x 19 root root 4096 Feb 12 18:06 subcomponents
drwxr-xr-x 2 root root 4096 Feb 12 18:06 tools
drwxr-xr-x 3 root root 4096 Feb 12 18:06 vmsetup
-rw-r--r-- 1 root root 790 Apr 8 15:31 xi-sys.cfg
-rwxr-xr-x 1 root root 608 Feb 12 18:06 xivar
I did not delete anything from the directory either.
[root@csnagios1 nagiosxi]# ls -l
total 144
-rwxr-xr-x 1 root root 6870 Mar 26 13:40 0-repos
-rwxr-xr-x 1 root root 4821 Feb 12 18:06 fullinstall
-rwxr-xr-x 1 root root 2017 Feb 12 18:06 functions.sh
-rwxr-xr-x 1 root root 1830 Feb 12 18:06 get-os-info
-rwxr-xr-x 1 root root 1463 Feb 12 18:06 init.sh
-rw-r--r-- 1 root root 0 Apr 8 13:50 installed.repos
-rw-r--r-- 1 root root 75561 Apr 8 15:31 install.log
drwxr-xr-x 2 root root 4096 Feb 12 18:06 licenses
drwxr-xr-x 10 root root 4096 Feb 12 18:06 nagiosxi
drwxr-xr-x 2 root root 4096 Apr 8 13:50 packages
drwxr-xr-x 2 root root 4096 Feb 12 18:06 sourceguardian
drwxr-xr-x 19 root root 4096 Feb 12 18:06 subcomponents
drwxr-xr-x 2 root root 4096 Feb 12 18:06 tools
drwxr-xr-x 3 root root 4096 Feb 12 18:06 vmsetup
-rw-r--r-- 1 root root 790 Apr 8 15:31 xi-sys.cfg
-rwxr-xr-x 1 root root 608 Feb 12 18:06 xivar
I did not delete anything from the directory either.
Re: ./functions.sh: line 39: ./1-prereqs: No such file or di
I performed the wget again, unzipped/tarred the file and the file is now present. The install is now running without any issues.
Re: ./functions.sh: line 39: ./1-prereqs: No such file or di
That's good to hear, is it ok if we mark this as resolved and lock the topic?