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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
simon9864
Posts: 4
Joined: Mon Nov 16, 2015 10:46 am

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

Post 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]#
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
simon9864
Posts: 4
Joined: Mon Nov 16, 2015 10:46 am

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

Post by simon9864 »

is a fresh installation.

I did but if you can help to solve this problem i will be gratefull. :)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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)?
Former Nagios Employee
simon9864
Posts: 4
Joined: Mon Nov 16, 2015 10:46 am

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

Post 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
jrdalrymple
Posts: 16
Joined: Fri Nov 13, 2015 4:49 pm

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

Post 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 :)
simon9864
Posts: 4
Joined: Mon Nov 16, 2015 10:46 am

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

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
Locked