Availability reports Download Forbidden
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Availability reports Download Forbidden
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.
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
--
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
Re: Availability reports Download Forbidden
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.
If you change it, you will have to restart apache by running the following as root.
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.
Then post the following files to the post.
Thanks
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;Code: Select all
service httpd restartCan 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
Code: Select all
/tmp/info.txt
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
Be sure to check out our Knowledgebase for helpful articles and solutions!
- jjeremydiaz
- Posts: 11
- Joined: Thu Apr 06, 2017 4:32 am
Re: Availability reports Download Forbidden
Can we email you the logs instead?
Re: Availability reports Download Forbidden
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.
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!
Re: Availability reports Download Forbidden
Edit the /etc/httpd/conf.d/nagiosxi.conf file and comment out this line
so it looks like this
Save the file and restart Apache by running
Then see if you can download the reports.
Code: Select all
SSLRequireSSLCode: Select all
#SSLRequireSSLCode: Select all
service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Re: Availability reports Download Forbidden
Hi Tom,
We tried the suggested. It did not help.
CP
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
--
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
Re: Availability reports Download Forbidden
Are there any other changes that were done to the main Apache config file for SSL?
Can you login to the XI GUI and go to the Admin > System Settings menu, screen capture it and post the image?
Thanks
Code: Select all
/etc/httpd/conf/httpd.confThanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
- jjeremydiaz
- Posts: 11
- Joined: Thu Apr 06, 2017 4:32 am
Re: Availability reports Download Forbidden
There are several tabs on the system settings page? Which tabs should we take a screenshot of?
Re: Availability reports Download Forbidden
just the General Tab.
Be sure to check out our Knowledgebase for helpful articles and solutions!