Page 1 of 2
BLANK PAGE
Posted: Tue Oct 15, 2013 9:33 am
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
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 10:25 am
by slansing
Please show the output from:
Code: Select all
service nagios status
service mysqld status
service httpd status
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 10:44 am
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
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 11:58 am
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
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 12:39 pm
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.

Re: BLANK PAGE
Posted: Tue Oct 15, 2013 12:46 pm
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:
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 1:32 pm
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
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 1:57 pm
by abrist
Did you try the repair script in the scripts folder?
Code: Select all
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 2:16 pm
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
Re: BLANK PAGE
Posted: Tue Oct 15, 2013 2:48 pm
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.