Page 1 of 2

Can't open reports page

Posted: Tue May 07, 2013 10:38 am
by niebais
I am having problems opening the reports page in my customer's Nagios installation. It just hangs there and eventually times out.
I upgraded them to Version 2012 1.8 and they are running Centos 6 32 bit.

Re: Can't open reports page

Posted: Tue May 07, 2013 10:43 am
by slansing
What error are you receiving from the Reports page? Can you try to access that page, and only that page, then send us the output of:

Code: Select all

tail /var/log/httpd/error_log


tail /var/log/httpd/access_log

Re: Can't open reports page

Posted: Tue May 07, 2013 11:38 am
by niebais
These are the last lines in the access log, there are no errors in the error log:

"http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:15 +0000] "GET /nagiosxi/includes/js/dashboards.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:15 +0000] "GET /nagiosxi/includes/js/tables.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:15 +0000] "GET /nagiosxi/includes/js/dashlets.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:15 +0000] "GET /nagiosxi/includes/js/users.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:15 +0000] "GET /nagiosxi/includes/js/perfdata.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi/includes/css/nagiosxi.css?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi/includes/js/wizards.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi//includes/page-default-splash.php?getfeed=labs HTTP/1.1" 200 156 "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi//includes/page-default-splash.php?getfeed=xipromo HTTP/1.1" 200 146 "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi//includes/page-default-splash.php?getfeed=techsupport HTTP/1.1" 200 2624 "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:16 +0000] "GET /nagiosxi//includes/page-default-splash.php?getfeed=library HTTP/1.1" 200 140 "http://10.222.64.253/nagiosxi//includes ... splash.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:19 +0000] "GET /nagiosxi/reports/ HTTP/1.1" 200 18741 "http://10.222.64.253/nagiosxi/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/jquery/jquery-1.8.2.min.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/jquery/jquery-ui-1.9.0.custom.min.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/jquery/css/smoothness/jquery-ui-1.9.0.custom.min.css?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/core.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/commands.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/views.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/dashboards.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/tables.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/dashlets.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/users.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/perfdata.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/js/wizards.js?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
172.26.6.154 - - [07/May/2013:16:38:20 +0000] "GET /nagiosxi/includes/css/nagiosxi.css?308 HTTP/1.1" 304 - "http://10.222.64.253/nagiosxi/reports/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"

It stops at "transferring data" and just stays there indefinitely.

Re: Can't open reports page

Posted: Tue May 07, 2013 12:44 pm
by abrist
What values are set in the php.ini for:

Code: Select all

 max_execution_time = 
 max_input_time = 
 memory_limit =
You may need to increase those values, see the following link:
http://support.nagios.com/wiki/index.ph ... _Completes

Re: Can't open reports page

Posted: Tue May 07, 2013 12:54 pm
by niebais
abrist wrote:What values are set in the php.ini for:

Code: Select all

 max_execution_time = 
 max_input_time = 
 memory_limit =
You may need to increase those values, see the following link:
http://support.nagios.com/wiki/index.ph ... _Completes
max_execution_time=3000 ( I increased that number due to nagiosql apply config problems)
max_input_time = 3000 (same as above)
memory_limit = 1024M (increased due to...well...a need for higher memory usage :)

Re: Can't open reports page

Posted: Tue May 07, 2013 1:00 pm
by abrist
Do a running tail of the httpd error log (leave it running), and then try to open the reports page:

Code: Select all

tail -f /var/log/httpd/error_log
If the report is not getting generated, we should see an error in the tail. . .

Re: Can't open reports page

Posted: Tue May 07, 2013 2:52 pm
by niebais
The main problem is the page doesn't seem to finish loading. The error_logs show nothing.

Re: Can't open reports page

Posted: Tue May 07, 2013 3:02 pm
by scottwilkerson
Out of curiosity can you get to one of the other report pages instead of the default Availability Report page?

Such as

Code: Select all

/nagiosxi/reports/statehistory.php

Re: Can't open reports page

Posted: Tue May 07, 2013 3:06 pm
by niebais
Hmm, interesting...that's really slow too. Just hanging like the others.

Re: Can't open reports page

Posted: Tue May 07, 2013 3:20 pm
by niebais
statehistory eventually came up...it just took over 10 minutes.