BLANK PAGE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

BLANK PAGE

Post by matt.lilek »

So i was having problems with adding devices and was getting the configuration failed, so i did a write and verify and looked fine but it still wouldnt write new. Then i did a restart through the console and still nothing. Then i did a database repair and still nothing. Then i stopped mysql service and restarted the mysql server and nagios server brought them back up and now after the welcome screen when i hit access nagios xi i just get a blank page. WHY ME please help
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: BLANK PAGE

Post by slansing »

Please show the output from:

Code: Select all

service nagios status

service mysqld status

service httpd status

Code: Select all

ll -la /usr/local/nagios/sbin/
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: BLANK PAGE

Post by matt.lilek »

No lock file found in /usr/local/nagios/var/nagios.lock
mysqld (pid 25307) is running...
httpd (id 1403) is running...

[root@localhost ~]# ll -la /usr/local/nagios/sbin/
total 4400
drwxrwxr-x 2 nagios nagios 4096 Jun 5 15:22 .
drwxr-xr-x 8 root root 4096 Jun 5 15:22 ..
-rwxrwxr-x 1 nagios nagios 271664 Jun 5 15:22 avail.cgi
-rwxrwxr-x 1 nagios nagios 272208 Jun 5 15:22 cmd.cgi
-rwxrwxr-x 1 nagios nagios 242800 Jun 5 15:22 config.cgi
-rwxrwxr-x 1 nagios nagios 283792 Jun 5 15:22 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 238960 Jun 5 15:22 histogram.cgi
-rwxrwxr-x 1 nagios nagios 215120 Jun 5 15:22 history.cgi
-rwxrwxr-x 1 nagios nagios 214160 Jun 5 15:22 notifications.cgi
-rwxrwxr-x 1 nagios nagios 210032 Jun 5 15:22 outages.cgi
-rwxrwxr-x 1 nagios nagios 205936 Jun 5 15:22 outages-xml.cgi
-rwxrwxr-x 1 nagios nagios 210320 Jun 5 15:22 showlog.cgi
-rwxrwxr-x 1 nagios nagios 280016 Jun 5 15:22 status.cgi
-rwxrwxr-x 1 nagios nagios 210032 Jun 5 15:22 status-json.cgi
-rwxrwxr-x 1 nagios nagios 234928 Jun 5 15:22 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 227088 Jun 5 15:22 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 214192 Jun 5 15:22 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 235184 Jun 5 15:22 summary.cgi
-rwxrwxr-x 1 nagios nagios 226512 Jun 5 15:22 tac.cgi
-rwxrwxr-x 1 nagios nagios 210128 Jun 5 15:22 tac-xml.cgi
-rwxrwxr-x 1 nagios nagios 243088 Jun 5 15:22 trends.cgi
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: BLANK PAGE

Post by abrist »

The nagios process is not running (that is the lock file error). Additionally, check postgres as well:

Code: Select all

service nagios start
service postgresql status
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.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: BLANK PAGE

Post by matt.lilek »

yea i had done this step already and it says Starting nagios: done. and for postgresql it says postmaster (pid 1308) is running... so i was not sure why i was getting a blank page. So i did do some reading before i got on here to bug you guys again. :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: BLANK PAGE

Post by abrist »

Lets check the apache logs. Do the following running tail and while it is running, try to browse to web ui. Wait a few seconds after you get the "blank" page, kill the tail, and then post the output of the tail:

Code: Select all

tail -f /var/log/httpd/error_log
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.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: BLANK PAGE

Post by matt.lilek »

OK before the tail i got this back up kinda, well i am past the blank screen now i have SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired i tried doing a repair and didnt work i tried the instructions that said:

SQL: DELETE FROM nagios_logentries WHERE logentry_time < FROM_UNIXTIME(1293570334)
SQL: SQL Error [ndoutils] :</b> Table './nagios/nagios_logentries' is marked as crashed
and last (automatic?) repair failedCLEANING ndoutils TABLE 'notifications'...
you may need to run a force repair on the tables:
service mysqld stop
cd /var/lib/mysql/nagios
myisamchk -r -f nagios_servicestatus
service mysqld start
rm -f /usr/local/nagiosxi/var/dbmaint.lock
/usr/local/nagiosxi/cron/dbmaint.php

and still nothing
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: BLANK PAGE

Post by abrist »

Did you try the repair script in the scripts folder?

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
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.
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Re: BLANK PAGE

Post by matt.lilek »

yeah that was the first thing i did but now i have gone full circle i got things back up but i am unable to add new devices i just keep on getting Waiting for configuration verification.....................................................
Configurations failed to write to file. the same problem before i had the blank screen from rebooting the same problem that led me to rebooting
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: BLANK PAGE

Post by sreinhardt »

Have you gone through and used the write config tools, to write then verify the new configs? It will show many more details regarding the errors your system is encountering. Configure -> CCM -> Tools -> Write Config Files, then go through the top two steps and you should have some errors to look at after the second.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked