Reports not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Reports not working

Post 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...
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Reports not working

Post by slansing »

Do you recall when, or on what version this started to happen? Any changes that were done?
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Reports not working

Post 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?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reports not working

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Reports not working

Post 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] 
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Reports not working

Post 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
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reports not working

Post by lmiltchev »

What do you have in the "Program URL" and/or "External URL"? Are you using SSL?
Be sure to check out our Knowledgebase for helpful articles and solutions!
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Reports not working

Post 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
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reports not working

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Reports not working

Post 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/
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
Locked