index.php is blank

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Aguilex
Posts: 4
Joined: Tue Mar 20, 2018 4:12 pm

index.php is blank

Post by Aguilex »

Hello,
hoping someone can help me solve this nagging problem... https://<myfqdn>/nagios/index.php displays a blank page.

Looking at the dev tools in Chrome, I can see that it's a page made up of 2 frames... side.php and main.php. Both of these pages do load correctly... that is https://<myfqdn>/nagios/side.php and https://<myfqdn>/nagios/main.php load correctly.

But index.php shows up as blank.

As recommended here: https://support.nagios.com/kb/article.php?id=132 I've changed the memory setting, but that made no difference.

any ideas on how I can get this index.php page to work correctly?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: index.php is blank

Post by mcapra »

That KB document is actually intended for Nagios Log Server; A completely separate product with it's own quirks.

What operating system is being used?

Did you follow any particular documentation when installing Nagios Core on this machine? Is this a package-based installation?

Can you attempt to access the pages again, then after that action, can you share a copy of the Apache logs from this machine? Both the access and error logs preferably.
Former Nagios employee
https://www.mcapra.com/
Aguilex
Posts: 4
Joined: Tue Mar 20, 2018 4:12 pm

Re: index.php is blank

Post by Aguilex »

Here's the Apache access log:

x.x.x.x - nagiosadmin [21/Mar/2018:09:59:17 -0400] "GET /nagios/main.php HTTP/1.1" 200 3613 "https://<myfqdn>/nagios/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36"

There are no errors in the Apache log related to this ^ request

I've installed Nagios core on Ubuntu, following the instructions here: https://support.nagios.com/kb/article/n ... tml#Ubuntu

So it seems as if something is wrong with the index.php page itself, as both the side.php and main.php pages will load correctly when accessed directly. Side.php and main.php are referenced inside frames in the index.php page.
Aguilex
Posts: 4
Joined: Tue Mar 20, 2018 4:12 pm

Re: index.php is blank

Post by Aguilex »

I was able to fix this by adding the following directive in the apache conf file:

Header always append X-Frame-Options SAMEORIGIN
kyang

Re: index.php is blank

Post by kyang »

Sounds like you figured out the issue?

Are we okay to close this thread or did you have any more questions on this?
Aguilex
Posts: 4
Joined: Tue Mar 20, 2018 4:12 pm

Re: index.php is blank

Post by Aguilex »

yes, please close this. thanks!
kyang

Re: index.php is blank

Post by kyang »

Sounds good!

Thanks for using the Nagios Support Forums!

Feel free to create a new thread if you have any more issues.

Have a great day!
Locked