Page 1 of 2

Reports not working

Posted: Wed Feb 26, 2014 8:06 am
by johndoe
No matter where i go on the "Reports" tab nagios just hangs there loading the page, i can then no longer access nagios, however if i open another browser session I am able to continue using nagios (that is, until i click the reports tab again)...

On "Admin" > "XI System Component Status" they are all green including the "Report Engine"...

This is not something that just happened.. been like this for quite some time...

Re: Reports not working

Posted: Wed Feb 26, 2014 12:11 pm
by slansing
Do you recall when, or on what version this started to happen? Any changes that were done?

Re: Reports not working

Posted: Wed Feb 26, 2014 12:22 pm
by johndoe
unfortunately can't tell you exactly when it was as it was a low priority issue for as at the time, i'l guessing 2-3 updates ago which we do relatively timely with your releases...

Any ideas how to fix it/start debugging it at all?

Re: Reports not working

Posted: Wed Feb 26, 2014 4:01 pm
by lmiltchev
Do you have the correct URL in the "Program URL" and/or "External URL" textboxes (Admin->Manage System Config)?

Click on the Reports, and when the page "hangs", run the following command in the CLI and show us the output in code wraps:

Code: Select all

tail -100 /var/log/httpd/error_log

Re: Reports not working

Posted: Wed Feb 26, 2014 4:08 pm
by johndoe
Only errors i see there are related to my other issue i have here: http://support.nagios.com/forum/viewtop ... =6&t=25796

Code: Select all


[Wed Feb 26 21:07:02 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:02 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:02 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:02 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260
[Wed Feb 26 21:07:23 2014] [error] [client ::1] 

Re: Reports not working

Posted: Wed Feb 26, 2014 4:15 pm
by johndoe

Code: Select all

[Wed Feb 26 21:14:31 2014] [error] [client XXXXx] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260, referer: https://XXXXX/nagiosxi/dashboards/dashboard.php?id=7a56ne

Re: Reports not working

Posted: Thu Feb 27, 2014 12:45 pm
by lmiltchev
What do you have in the "Program URL" and/or "External URL"? Are you using SSL?

Re: Reports not working

Posted: Mon Mar 03, 2014 7:02 am
by johndoe
lmiltchev wrote:What do you have in the "Program URL" and/or "External URL"? Are you using SSL?
Program URL (where XXX is an IP address): https://XXX.XXX.XXX.XXX/nagiosxi/
External URL: empty
Using SSL: Yes

Re: Reports not working

Posted: Mon Mar 03, 2014 2:11 pm
by lmiltchev
Run the following commands, and show us the output (hide sensitive info):

Code: Select all

grep -i use_https /usr/local/nagiosxi/html/config.inc.php
grep -i ssl /etc/httpd/conf/httpd.conf
grep -i ssl /etc/httpd/conf.d/nagiosxi.conf
Also, go to the CCM->Config Manager Admin->Config Manager Settings, and make sure you have "https" selected from the "Server protocol" drop-down menu.

Re: Reports not working

Posted: Tue Mar 04, 2014 8:13 am
by johndoe

Code: Select all

# grep -i use_https /usr/local/nagiosxi/html/config.inc.php
$cfg['use_https']=true;  // determines whether cron jobs and other scripts will force the use of HTTPS instead of HTTP
Probably something wrong on this second one as only comments are shown?

Code: Select all

# grep -i ssl /etc/httpd/conf/httpd.conf
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.

Code: Select all

# grep -i ssl /etc/httpd/conf.d/nagiosxi.conf
  SSLRequireSSL
I ensured also I had "https" selected from the "Server protocol" drop-down menu.

The errors are still showing (of course since nothing was changed) such as:

Code: Select all

[Tue Mar 04 13:12:00 2014] [error] [client XXXX] PHP Strict Standards:  Only variables should be assigned by reference in /usr/local/nagiosxi/html/includes/db.inc.php on line 260, referer: https://XXXX/nagiosxi/reports/