Log Server administration page blank

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ddeltoro
Posts: 3
Joined: Thu Mar 12, 2015 11:22 am

Log Server administration page blank

Post by ddeltoro »

All of a sudden I'm having issues with the administration page no longer showing anything. Source shows it as blank. I looked in the error logs and found nothing. Access logs show a 200 code returned. I attempted to turn on php error reporting but i either did that the wrong or again no results.

I'm currently running 215R1.3. I have restarted httpd several times and modified the php.ini as follows:

display_errors = On
html_errors = On
error_log = php_errors.log
error_reporting = E_ALL | E_STRICT

Am I just looking in the wrong place to find the issue, or is there something else that may be hung?

Other than the admin page the server seems to be functioning normally.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Log Server administration page blank

Post by jdalrymple »

When you say that you checked the error logs do you mean /etc/httpd/logs/error_log?

This is where logserver puts php errors by default.
ddeltoro
Posts: 3
Joined: Thu Mar 12, 2015 11:22 am

Re: Log Server administration page blank

Post by ddeltoro »

Correct. Well, actually was looking in /var/log/httpd but its the same thing in the end as /etc/httpd/logs links to it.

All the log contains is:

Code: Select all

[Thu Mar 12 10:28:28 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:28:29 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:28:29 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:28:29 2015] [notice] Digest: done
[Thu Mar 12 10:28:29 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:30:58 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:30:58 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:30:58 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:30:58 2015] [notice] Digest: done
[Thu Mar 12 10:30:58 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:31:50 2015] [error] [client 10.0.208.4] script '/var/www/html/p.php' not found or unable to stat
[Thu Mar 12 10:33:46 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:33:46 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:33:46 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:33:46 2015] [notice] Digest: done
[Thu Mar 12 10:33:46 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:34:41 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:34:41 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:34:41 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:34:41 2015] [notice] Digest: done
[Thu Mar 12 10:34:41 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:14 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:37:15 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:37:15 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:37:15 2015] [notice] Digest: done
[Thu Mar 12 10:37:15 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:20 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:37:39 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:37:39 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:37:39 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:37:39 2015] [notice] Digest: done
[Thu Mar 12 10:37:39 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:43 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:43:11 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:45:55 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:45:56 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:45:56 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:45:56 2015] [notice] Digest: done
[Thu Mar 12 10:45:56 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:45:59 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:50:29 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:50:29 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
All of the sigterms are me restarting apache via 'service httpd restart' and the missing p.php was me putting a phpinfo script in the wrong directory.
ddeltoro
Posts: 3
Joined: Thu Mar 12, 2015 11:22 am

Re: Log Server administration page blank

Post by ddeltoro »

Looked into the code for index.php found in /var/www/html/nagioslogserver/www and found a definition in there to set the server as "development" to enable errors. Did so and now the page throws a useful error.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/nagioslogserver/application/libraries/elasticsearch.php on line 86

134217728 looks to be a 128mb limit which is the limit for php in my instance. Increasing it to 256mb solved my issue and I can once again see the admin interface. :D
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Log Server administration page blank

Post by jdalrymple »

Beautiful - thanks for the update ddeltoro.

Good sleuthing - I'm going to go ahead and lock this thread and mark solved!
Locked