Page 1 of 1

MYSQL Error while installing Nagios XI 5.2.7

Posted: Wed Jul 24, 2019 9:04 am
by mccrakem
Hi

Everytime I try and install Nagios XI on a CentOS 7 vm I get the following error

kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
NOTE: If prompted, enter the MySQL root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

and If I look in the install.log file the last few entries are

kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
NOTE: If prompted, enter the MySQL root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting

When I look for /var/lib/mysql/ - The folder does not exist

I can forward the install.log if its required

Thanks

Re: MYSQL Error while installing Nagios XI 5.2.7

Posted: Wed Jul 24, 2019 9:23 am
by mccrakem
I just noticed there is no mysql.sock socket in the directory

Is there a way to create this ?

Re: MYSQL Error while installing Nagios XI 5.2.7

Posted: Wed Jul 24, 2019 3:53 pm
by lmiltchev
Please post the install.log on the forum.

Is there a reason why you are trying to install Nagios XI 5.2.7? This version is quite old. The latest one is 5.6.5...

Re: MYSQL Error while installing Nagios XI 5.2.7

Posted: Wed Jul 31, 2019 10:13 am
by mccrakem
Hi miltchev
Sorry I did not see your reply until now
That install I just deleted the server and started again.

I have opened another request so a different error
looks like I have gotten past the SQL install part this time

The reason why i'm installing 5.2.7 is that is the version we are running currently on RHEL6

So I want to see about upgrading the OS so installing 5.2.7 on centOS7 was going to restore a backup of the database and then upgrade nagios to the latest

But having so many issues

You can close this one

Thanks

Re: MYSQL Error while installing Nagios XI 5.2.7

Posted: Wed Jul 31, 2019 1:11 pm
by lmiltchev
Noted. Closing.