Availability reports Download Forbidden

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Availability reports Download Forbidden

Post by rexconsulting »

We have a situation on one of our servers where, after clicking Download (any type) of availability report, we get a downloaded file with the only contents reading "Forbidden You don't have permission to access /nagiosxi/reports/availability.php on this server. Additionally, a 403 error was encountered while trying to use an ErrorDocument to handle the request".

Strangely, no corresponding 403 exists in /var/log/httpd/ssl_error_log or /var/log/httpd/error_log.

Attached is an image of what we get if we try downloading a JPG of the report. Same image if we try PDF.
You do not have the required permissions to view the files attached to this post.
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Availability reports Download Forbidden

Post by tgriep »

When downloading a report in Nagios, it uses the External URL setting in the Admin > System Settings menu and if that URL is incorrect, that could cause the issue.

If the server has SSL enabled you should check the /usr/local/nagiosxi/html/config.inc.php file and make sure the following is set to true.

Code: Select all

$cfg['use_https'] = true;
If you change it, you will have to restart apache by running the following as root.

Code: Select all

service httpd restart
If the above is correct, we will have to gather more information / settings from the server.
Can you run the following commands as root on the server.

Code: Select all

chage -l nagios >/tmp/info.txt
chage -l apache >>/tmp/info.txt
ls -lR /usr/local/nagiosxi >>/tmp/info.txt
Then post the following files to the post.

Code: Select all

/tmp/info.txt
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
jjeremydiaz
Posts: 11
Joined: Thu Apr 06, 2017 4:32 am

Re: Availability reports Download Forbidden

Post by jjeremydiaz »

Can we email you the logs instead?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Availability reports Download Forbidden

Post by tgriep »

Sure, you can Private Message them to me or any of the other Techs.
Click on the User Control Panel link after you have logged in to the Forums, then click on the Private Message tab and fill in the info.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Availability reports Download Forbidden

Post by tgriep »

Edit the /etc/httpd/conf.d/nagiosxi.conf file and comment out this line

Code: Select all

SSLRequireSSL
so it looks like this

Code: Select all

#SSLRequireSSL
Save the file and restart Apache by running

Code: Select all

service httpd restart
Then see if you can download the reports.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Re: Availability reports Download Forbidden

Post by rexconsulting »

Hi Tom,

We tried the suggested. It did not help.

CP
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Availability reports Download Forbidden

Post by tgriep »

Are there any other changes that were done to the main Apache config file for SSL?

Code: Select all

/etc/httpd/conf/httpd.conf
Can you login to the XI GUI and go to the Admin > System Settings menu, screen capture it and post the image?

Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
jjeremydiaz
Posts: 11
Joined: Thu Apr 06, 2017 4:32 am

Re: Availability reports Download Forbidden

Post by jjeremydiaz »

There are several tabs on the system settings page? Which tabs should we take a screenshot of?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Availability reports Download Forbidden

Post by tgriep »

just the General Tab.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked