The script that failed was ./3-dbservers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@andrewatmacys, Can you reinstall the DB now and see if you can start it?
yum install MariaDB mariadb-server
service mariadb start
mysql
Also, it looks like your optional repos have expired metadata. Please run:
yum clean all
yum update
And see if exclamation points before the repos would go away.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

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

Post by andrewatmacys »

Looks like mariadb is running now, can you clarify what you mean with the MySQL below the start mariadb command? Sorry.

Also, after cleaning and updating the repos I still have exclamations.

However, the install is proceeding, so that fixed that problem!
You do not have the required permissions to view the files attached to this post.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

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

Post by andrewatmacys »

It was going well, until it didn't! haha

It did a lot of stuff, but then I got hit with this:

The script that failed was: './D-chkconfigalldaemons'
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@andrewatmacys, Can you post the whole install.log again?
Also, you should run this command to allow nagios to connect to the database with familiar credentials:
mysqladmin --user=root password "nagiosxi"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

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

Post by andrewatmacys »

I just PM'd the install.log. I'll run that command as well.

On running the command I got an access denied for user root@localhost. I'll post the full error here:

[root@mdc2vrs7867f0 nagiosxi]# mysqladmin --user=root password "nagiosxi"
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Did I run this incorrectly?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@andrewatmacys, The command looks right. Perhaps the installation script already set the MySQL password for you. Can you try to sign in to MySQL like this:
mysql -u root -pnagiosxi
Can you run the fullinstall script one more time with -x and that should show us a more detailed info about the error:
./fullinstall -x | tee -a /tmp/support3.txt
Also, please run the following two commands and then upload the support1.txt, support3.txt and support2.txt files.
systemctl > /tmp/support1.txt
ps -ef > /tmp/support2.txt
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

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

Post by andrewatmacys »

Unfortunately I got an error Unknown option: -x, possibly not available on 5.4.0?

Anyway, I will upload support1.txt and support2.txt
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@andrewatmacys, We found some MySQL errors in your install log. My recommendation is to start with a clean server, activate redhat and start the installation all over. Bu this time please install the mariadb before installing XI and make sure to change the root password to nagiosxi. You need to be able to sign in to MySQL with
mysql -u root -pnagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

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

Post by andrewatmacys »

Sorry, I meant to say I was able to log in using your command

mysql -u root -pnagiosxi.

Does that change anything?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@andrewatmacys, I see. No, you should still start from a clean system and install mariadb beforehand, change the root password with the command I gave you and make sure you can sign in with mysql -u root -pnagiosxi before installing XI.

Also, when you run the installation try:
bash -x fullinstall | tee -a /tmp/support.txt
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked