Page 1 of 1

login page won't be load :((

Posted: Mon Dec 09, 2013 5:29 pm
by sum2008
hi
i install nagiosxi on cent os,and the first time i could login to the web interface of nagios
but, now it show just the welcome page, and then, when i click on a "access nagios xi" link, it show nothing(white page)....

another one, i download the vmware image of nagiosxi,and run it , but it has the same problem...:(((

i search very very much,but nothing special ....
please help me as soon as possible,i dont have time to try and error solutions:((
tnx all

:((

Re: login page won't be load :((

Posted: Mon Dec 09, 2013 5:40 pm
by lmiltchev
Run the following three commands and show us the output:

Code: Select all

tail -25 /var/log/httpd/error_log
iptables -L -n
sestatus

Re: login page won't be load :((

Posted: Mon Dec 09, 2013 5:55 pm
by sum2008
[root@localhost ~]# tail -25 /var/log/httpd/error_log
[Mon Dec 09 15:56:41 2013] [error] [client 192.168.88.2] PHP 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, referer: http://192.168.88.2/

[Mon Dec 09 16:51:23 2013] [error] [client 127.0.0.1] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tehran' for 'IRST/3.0/no DST' instead in /var/www/html/index.php on line 84
[Mon Dec 09 16:51:23 2013] [error] [client 127.0.0.1] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tehran' for 'IRST/3.0/no DST' instead in /var/www/html/index.php on line 106

the firewall and selinux are disable

Re: login page won't be load :((

Posted: Tue Dec 10, 2013 12:31 am
by sum2008
anyone can help me please?

Re: login page won't be load :((

Posted: Tue Dec 10, 2013 10:58 am
by abrist
It looks like mysql is not running or the credentials are wrong. Was mysql pre-installed on this server or did you use a minimal install?
Lets try to start mysql:

Code: Select all

service mysqld status
service mysqld start

Re: login page won't be load :((

Posted: Tue Dec 10, 2013 3:09 pm
by sum2008
hi
tnx
that was correct, the mysql was stoped...
i fixed it with these commands:

root@ns1:/root#
rm -rf /var/lib/mysql/mysql.sock
root@ns1:/root#
service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
root@ns1:/root#

Re: login page won't be load :((

Posted: Tue Dec 10, 2013 3:13 pm
by abrist
There must have been an unclean shutdown of the box or mysqld service if the socket still existed when it was stopped. Is the login working now?