VMWare setup
Re: VMWare setup
I seem to have spoken to soon. I can access the IP though when trying http://<IP>/nagiosxi/ all I see is a blank screen. Tried in IE11, Chrome, Firefox and checked to confirm all services are running.
Log file shows:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket 'var/lib/mysql/mysql.sock' (111) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
File does not exist: /var/www/html/favicon.ico
Log file shows:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket 'var/lib/mysql/mysql.sock' (111) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
File does not exist: /var/www/html/favicon.ico
Last edited by Sbergonzi on Mon Mar 03, 2014 12:37 pm, edited 1 time in total.
Re: VMWare setup
I'm guessing by "reboot" you mean a VM-level restart, not a "shutdown -h now" from the command line? If so that's your problem. Doing a VM-level restart is like pulling the plug on a running server: bad news. You will need to run the following:
See the following for more detail:
http://assets.nagios.com/downloads/nagi ... tabase.pdf
Code: Select all
service mysqld stop
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
service mysqld starthttp://assets.nagios.com/downloads/nagi ... tabase.pdf
Former Nagios employee
Re: VMWare setup
Looks like that worked though an error on the start:
Another MySQL daemon already running with the same unix socket.
Starting mysqld: FAILED
Another MySQL daemon already running with the same unix socket.
Starting mysqld: FAILED
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: VMWare setup
Do the following to resolve that issue:
Code: Select all
service mysqld stop
rm -rf /var/lib/mysql/mysql.sock
service mysqld startRe: VMWare setup
bingo!! mysqld is now started.
thank you!!
thank you!!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: VMWare setup
Excellent, how's everything working out?
Re: VMWare setup
Too soon to tell...I'm just in. 
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: VMWare setup
Alrighty! Well keep us apprised
.
Re: VMWare setup
how do I close down gracefully the VMWare Player session? I tried the Power Off and that did not allow mysql to start again. I had to run those cleanup commands again.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: VMWare setup
Mentioned previously by Tmcdonald about 5 posts up, you need to use:
Code: Select all
shutdown -h now