Page 1 of 1

Can't connect to local MySQL server through socket '/var/lib

Posted: Mon Nov 16, 2015 5:49 pm
by simon9864
Lastest version Nagios xi
CentOS 7 64 bits
AWS EC2
No proxy, Yes SSL

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

===================
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'
[root@ip-172-31-16-26 nagiosxi]#

Re: Can't connect to local MySQL server through socket '/var

Posted: Mon Nov 16, 2015 7:17 pm
by Box293
Is this a fresh install of XI or an upgrade?

Have you seen this guide?

https://assets.nagios.com/downloads/nag ... -Cloud.pdf

Re: Can't connect to local MySQL server through socket '/var

Posted: Tue Nov 17, 2015 8:29 am
by simon9864
is a fresh installation.

I did but if you can help to solve this problem i will be gratefull. :)

Re: Can't connect to local MySQL server through socket '/var

Posted: Tue Nov 17, 2015 11:48 am
by rkennedy
Did you run an install on your own, or did you use one of pre-built images that are on AWS (as linked to above)?

Re: Can't connect to local MySQL server through socket '/var

Posted: Tue Nov 17, 2015 12:39 pm
by simon9864
yes, i get my own ec2 and i'm trying to install nagiosxi like they show in the manual installation instructions https://assets.nagios.com/downloads/nag ... ctions.pdf

Re: Can't connect to local MySQL server through socket '/var

Posted: Tue Nov 17, 2015 4:45 pm
by jrdalrymple
Post your entire install.log - the steps to be wary of:

Did maria install actually complete?
Did the maria postinstall steps get performed successfully? NagiosXI does customize the installation a bit then of course drops the 3 schemas into maria.
Then of course for the socket to exist maria has to fire up.

Whatever happened wrong will probably be easy to spot if you post install.log here, don't worry there is no incriminating evidence in it :)

Re: Can't connect to local MySQL server through socket '/var

Posted: Wed Nov 18, 2015 7:54 am
by simon9864
Hi everyone,

I cannot post the entire "install.log", yesterday I could install nagios xi on a new instances with CentOS 6 and it's working, also I downloaded the nagios v5.2.2 through its specific hyperlink.

and well...I terminate my previous instance.

thanks anyway :D

Re: Can't connect to local MySQL server through socket '/var

Posted: Wed Nov 18, 2015 10:25 am
by rkennedy
Glad to hear this is working for you now. I'll go ahead and close this thread out, but feel free to open a new one if you need assistance with your new instance.