Report Generating Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Report Generating Issue

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Report Generating Issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Re: Report Generating Issue

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Report Generating Issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Re: Report Generating Issue

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Report Generating Issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Re: Report Generating Issue

Post by CentricIT »

Hi npolovenko,

Thanks for your help. The issue is fixed we can generate reports as per our requirements now.

Regards
CentricIT
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Report Generating Issue

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked