login page won't be load :((

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sum2008
Posts: 4
Joined: Mon Dec 09, 2013 3:48 pm

login page won't be load :((

Post 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

:((
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sum2008
Posts: 4
Joined: Mon Dec 09, 2013 3:48 pm

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

Post 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
sum2008
Posts: 4
Joined: Mon Dec 09, 2013 3:48 pm

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

Post by sum2008 »

anyone can help me please?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sum2008
Posts: 4
Joined: Mon Dec 09, 2013 3:48 pm

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

Post 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#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked