Page 1 of 1
Report Generating Issue
Posted: Tue Jan 08, 2019 2:32 am
by CentricIT
Hi Team,
We are using NagiosXI version 5.5.7 . We are facing issues with Report generating. When we try to generate a report based on our setup we are facing an error "NagiosXI/reports/Availability.php" was not found on this server. We were able to generate reports previously.
NagiosXI-Report issue.PNG
Please advise what we have missed in our configuration.
Regards
S. Prabhu
Re: Report Generating Issue
Posted: Tue Jan 08, 2019 1:50 pm
by npolovenko
Hello,
@CentricIT.
First, please run the following script as root:
/usr/local/nagiosxi/scripts/reset_config_perms.sh
Next, please run the following command and show me the output:
[root@centos7x64 reports]# ls -l /usr/local/nagiosxi/html/reports/availability.php
-rwxr-x--- 1 nagios nagios 151876 Jan 3 16:23 /usr/local/nagiosxi/html/reports/availability.php
Finally, please upload the following config file:
/etc/httpd/conf.d/nagiosxi.conf
Re: Report Generating Issue
Posted: Wed Jan 09, 2019 4:25 am
by CentricIT
Hi npolovenko,
Thanks for looking into the issue. Please find the requested details with this reply.
/usr/local/nagiosxi/scripts/reset_config_perms.sh
issue1a.png
ls -l /usr/local/nagiosxi/html/reports/availability.php
issue2a.png
NagiosXI conf file. We have removed the server name for safety purpose
nagiosxi.conf
Please help us to fix this issue ASAP. since we need to generate reports for our customers.
Regards
Centric IT
Re: Report Generating Issue
Posted: Wed Jan 09, 2019 10:23 am
by npolovenko
@CentricIT, Let's try the following. Open the /etc/httpd/conf.d/nagiosxi.conf file and add "Require all granted" to the bottom of the following section:
Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
Require all granted
</Directory>
Also to the bottom of this block.
<Directory "/usr/local/nagiosxi/html/includes/components/custom-includes">
AllowOverride All
Options None
Require all granted
</Directory>
Then run:
service httpd restart
Re: Report Generating Issue
Posted: Wed Jan 09, 2019 2:05 pm
by CentricIT
Hi npolovenko,
Thanks for giving us the support,
after adding the below mentioned commands in our apache config file , we are unable to access the nagios URL from the browser.
Its hitting "
Internal Server Error" error. please find the attachment.
ApacheError.PNG
Our Apache version is 2.2.15 , So "Require all granted" command will not be work into it. Given details not suitable for us , So kindly do the needful.
Regards
Centric IT
Re: Report Generating Issue
Posted: Wed Jan 09, 2019 3:08 pm
by npolovenko
@CentricIT , Ok, please remove that setting and restart the apache. In XI GUI go to the Admin menu then click on System Settings in the left column. Make sure that the Program URL and External URL fields are filled out.
The IP address or FQDN needs to be followed by /nagiosxi/
In your case the program URL is probably going to be
https://monitoring.centricsoftware.com/nagiosxi/
Also, please go over this article to make sure SSL is configured correctly on the server.
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
Re: Report Generating Issue
Posted: Thu Jan 10, 2019 5:46 am
by CentricIT
Hi npolovenko,
Thanks for your help. The issue is fixed we can generate reports as per our requirements now.
Regards
CentricIT
Re: Report Generating Issue
Posted: Thu Jan 10, 2019 11:02 am
by scottwilkerson
CentricIT wrote:Hi npolovenko,
Thanks for your help. The issue is fixed we can generate reports as per our requirements now.
Regards
CentricIT
Great! Glad to hear it is resolved.
Locking thread