Nagios XI install error - The script that failed was: './3-d

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RedandBlack63
Posts: 11
Joined: Mon Mar 11, 2019 11:25 am

Nagios XI install error - The script that failed was: './3-d

Post by RedandBlack63 »

Trying to get an trial version of Nagios XI working so we can evaluate it. Running Redhat 7.6 on VMware. Doing a fresh install on a fresh server. The install ran fine, but the very last message was:

The script that failed was: './3-dbservers'

In my install.log, the last three lines were:

Redirecting to /bin/systemctl restart mariadb.service
MySQL initialized OK
Failed to execute operation: No such file or directory


I go to http://my_server_name/nagiosxi and get a message that I can't reach that site.

How do I troubleshoot this? I attached my install.log.
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: Nagios XI install error - The script that failed was: '.

Post by lmiltchev »

This is really weird... The last line in the init-mysql script, which is called from 3-dbservers is:

Code: Select all

touch installed.mysql
right after:

Code: Select all

echo "MySQL initialized OK"
The last too lines of the install.log are:
MySQL initialized OK
Failed to execute operation: No such file or directory
I can't imagine the "touch installed.mysql" command failed... Can you try running this command manually, then rerunning the "./fullinstall" script?

Are you using a proxy? Can you run "yum update" successfully? Can you show us the repos that you have on this system?

Code: Select all

yum repolist -v
Be sure to check out our Knowledgebase for helpful articles and solutions!
RedandBlack63
Posts: 11
Joined: Mon Mar 11, 2019 11:25 am

Re: Nagios XI install error - The script that failed was: '.

Post by RedandBlack63 »

Thank you for your help. I can see the installed.mysql got created at the same time as the other files:

ls -l /root/nagiosxi/installed*
-rw-r--r--. 1 root root 0 Mar 25 14:01 /root/nagiosxi/installed.mysql
-rw-r--r--. 1 root root 0 Mar 25 14:01 /root/nagiosxi/installed.prereqs
-rw-r--r--. 1 root root 0 Mar 25 13:57 /root/nagiosxi/installed.repos
-rw-r--r--. 1 root root 0 Mar 25 14:01 /root/nagiosxi/installed.usersgroups



Tried running fullinstall again. It immediately failed. I've attached the install.log for today only. As well as yum repolist and yum update output. Yes, we use a proxy.

Thank you for your help!
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI install error - The script that failed was: '.

Post by scottwilkerson »

Can you post the output of the following?

Code: Select all

ls -al /etc/services
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RedandBlack63
Posts: 11
Joined: Mon Mar 11, 2019 11:25 am

Re: Nagios XI install error - The script that failed was: '.

Post by RedandBlack63 »

[root@btsrheltest1 nagiosxi]# ls -al /etc/services
-rw-r--r--. 1 root root 670293 Jun 7 2013 /etc/services
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI install error - The script that failed was: '.

Post by scottwilkerson »

Lets see if you can run the following

Code: Select all

cd /tmp/nagiosxi
cat nagiosxi/services >> /etc/services
touch installed.services
If that works without error, lets try running the ./fullinstall again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RedandBlack63
Posts: 11
Joined: Mon Mar 11, 2019 11:25 am

Re: Nagios XI install error - The script that failed was: '.

Post by RedandBlack63 »

There is no /tmp/nagiosxi. However, I did do:

cat /root/nagiosxi/nagiosxi/services >> /etc/services

and then touched installed.services at /root/nagiosxi/nagiosxi.



Here's the install.log from running fullinstall just now:


DATE: Tue Mar 26 10:27:59 PDT 2019

DISTRO INFO:
RedHatEnterpriseServer
7.6
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.5.11
major=5
minor=5.11
releasedate=2019-02-28
release=5511

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
MySQL already initialized - skipping.
Failed to execute operation: No such file or directory
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI install error - The script that failed was: '.

Post by scottwilkerson »

let's touch the file in the correct location

Code: Select all

touch /root/nagiosxi/installed.services
And then try ./fullinstall again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RedandBlack63
Posts: 11
Joined: Mon Mar 11, 2019 11:25 am

Re: Nagios XI install error - The script that failed was: '.

Post by RedandBlack63 »

Okay, did a touch /root/nagiosxi/installed.services
Install failed. I pasted the portion of the install.log below:



DATE: Tue Mar 26 10:51:36 PDT 2019

DISTRO INFO:
RedHatEnterpriseServer
7.6
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.5.11
major=5
minor=5.11
releasedate=2019-02-28
release=5511

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
MySQL already initialized - skipping.
Failed to execute operation: No such file or directory
[root@btsrheltest1 nagiosxi]#


Thank you for your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI install error - The script that failed was: '.

Post by scottwilkerson »

One more thing, lets

Code: Select all

touch /root/nagiosxi/installed.dbservers
And then try ./fullinstall again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked