Web server broken

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cunningrat
Posts: 28
Joined: Mon Nov 18, 2013 5:51 pm

Web server broken

Post by cunningrat »

I found my Nagios web interface broken last night. Nagios is still running, but I can't get to the web interface. As far as I know, the only changes that occurred was the Nagios VM being moved to new hardware with VMotion. No IP addresses changed or anything like that.

I tried rebooting the system, restarting nagios, restarting httpd. No results.

Can anyone please suggest some troubleshooting steps?

Thanks!
cunningrat
Posts: 28
Joined: Mon Nov 18, 2013 5:51 pm

Re: Web server broken

Post by cunningrat »

Okay, now that I'm actually *awake* let's provide you with some more information.

Latest version of Nagios XI, running on CentOS, using the VMWare image provided. No special configurations.

I am seeing errors in the httpd log:

Code: Select all

[Thu Nov 13 09:38:02 2014] [error] [client ::1] PHP Warning:  mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
There was a post this weekend from coloradojay, looking like a similar issue. However, in my case the socket file does not exist, and re-starting mysqld does not recreate it.
cunningrat
Posts: 28
Joined: Mon Nov 18, 2013 5:51 pm

Re: Web server broken

Post by cunningrat »

Re-starting mysqld without first stopping nagios recreated the file.
This can be marked as resolved.
Locked