PDF Report error
PDF Report error
Hi,
I just downloaded and installed Nagios XI to evaluate the monitoring software.
When trying to create a PDF report I get the following error in a pdf file:
Not Found
The requested URL /reports/availability.php was not found on this server.
Apache/2.2.15 (CentOS) Server at x.x.x.x Port 80
Can anyone give me atleas a clue on where to look?
I have searched this forum but nothing that can help me out (I dont think its a proxy issue).
Creating a report of CSV files works.
Best Regards,
Guy
I just downloaded and installed Nagios XI to evaluate the monitoring software.
When trying to create a PDF report I get the following error in a pdf file:
Not Found
The requested URL /reports/availability.php was not found on this server.
Apache/2.2.15 (CentOS) Server at x.x.x.x Port 80
Can anyone give me atleas a clue on where to look?
I have searched this forum but nothing that can help me out (I dont think its a proxy issue).
Creating a report of CSV files works.
Best Regards,
Guy
Re: PDF Report error
I assume you are running the latest version, but just to confirm can you please specify the XI version?
Also, do you see anything in /var/log/httpd/error_log when you try to run a PDF report?
Also, do you see anything in /var/log/httpd/error_log when you try to run a PDF report?
Former Nagios employee
Re: PDF Report error
Hi tmcdonald,
Here the requested info:
Version of nagios: Nagios XI 2014R2.7
The following appears in the error_log file:
[Wed Sep 09 10:37:07 2015] [error] [client 'server ip'] File does not exist: /var/www/html/reports
Best Regards,
Guy
Here the requested info:
Version of nagios: Nagios XI 2014R2.7
The following appears in the error_log file:
[Wed Sep 09 10:37:07 2015] [error] [client 'server ip'] File does not exist: /var/www/html/reports
Best Regards,
Guy
Re: PDF Report error
Are you using/forcing SSL? Go to Admin->Manage System Config and post a screenshot of this page ("System Settings"). Also run:
and show the output.
Code: Select all
cat /etc/hostsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: PDF Report error
Hi,
Output of cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
In attachment you will find the screenshot
How can I check if I am using/forcing SSL? I have not changed any settings regarding this in my knowledge.
Output of cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
In attachment you will find the screenshot
How can I check if I am using/forcing SSL? I have not changed any settings regarding this in my knowledge.
You do not have the required permissions to view the files attached to this post.
Re: PDF Report error
If you haven't change anything, you are not using SSL. Are you using an IP address or a FQDN in the "Program URL" field?How can I check if I am using/forcing SSL? I have not changed any settings regarding this in my knowledge.
Example:
Code: Select all
http://192.168.0.5/nagiosxi/Code: Select all
http://myxiserver/nagiosxi/http://www.cyberciti.biz/faq/centos-hos ... mand-line/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: PDF Report error
I am using an IP Address in the Program URL field.
I have also tried adding the hostname to the /etc/hosts file.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
X.X.X.X cvlwrl
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
I restarted the network services after the change but still get the same error.
I have also tried adding the hostname to the /etc/hosts file.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
X.X.X.X cvlwrl
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
I restarted the network services after the change but still get the same error.
Re: PDF Report error
Have you modified your Apache settings?
What does the following yield?
What does the following yield?
Code: Select all
grep -R "/var/www" /usr/local/nagiosxi/html
grep -R "/var/www" /etc/httpd/conf.dFormer Nagios employee
Re: PDF Report error
I have not modified any Apache settings.
Requested output:
[root@cvlwrl ~]# grep -R "/var/www" /usr/local/nagiosxi/html
/usr/local/nagiosxi/html/config.inc.php: "dir" => "/var/www/html/nagiosql",
/usr/local/nagiosxi/html/includes/components/nagiosbpi/INSTALL: $file = '/var/www/http_public/nagiosbpi/api_tool.php';
[root@cvlwrl ~]# grep -R "/var/www" /etc/httpd/conf.d
/etc/httpd/conf.d/nagiosql.conf:Alias /nagiosql "/var/www/html/nagiosql"
/etc/httpd/conf.d/nagiosql.conf:<Directory "/var/www/html/nagiosql">
/etc/httpd/conf.d/ssl.conf.nagiosxibackup:#DocumentRoot "/var/www/html"
/etc/httpd/conf.d/ssl.conf.nagiosxibackup:<Directory "/var/www/cgi-bin">
/etc/httpd/conf.d/ssl.conf:#DocumentRoot "/var/www/html"
/etc/httpd/conf.d/ssl.conf:<Directory "/var/www/cgi-bin">
/etc/httpd/conf.d/mrtg.conf:Alias /mrtg /var/www/mrtg
[root@cvlwrl ~]#
Thanks!
Requested output:
[root@cvlwrl ~]# grep -R "/var/www" /usr/local/nagiosxi/html
/usr/local/nagiosxi/html/config.inc.php: "dir" => "/var/www/html/nagiosql",
/usr/local/nagiosxi/html/includes/components/nagiosbpi/INSTALL: $file = '/var/www/http_public/nagiosbpi/api_tool.php';
[root@cvlwrl ~]# grep -R "/var/www" /etc/httpd/conf.d
/etc/httpd/conf.d/nagiosql.conf:Alias /nagiosql "/var/www/html/nagiosql"
/etc/httpd/conf.d/nagiosql.conf:<Directory "/var/www/html/nagiosql">
/etc/httpd/conf.d/ssl.conf.nagiosxibackup:#DocumentRoot "/var/www/html"
/etc/httpd/conf.d/ssl.conf.nagiosxibackup:<Directory "/var/www/cgi-bin">
/etc/httpd/conf.d/ssl.conf:#DocumentRoot "/var/www/html"
/etc/httpd/conf.d/ssl.conf:<Directory "/var/www/cgi-bin">
/etc/httpd/conf.d/mrtg.conf:Alias /mrtg /var/www/mrtg
[root@cvlwrl ~]#
Thanks!
Re: PDF Report error
One of the things that could cause the PDF reports to fail is that the Program URL on the Admin > System Settings screen is not set like below.
If the /nagiosxi/ is not on the end of the URL, the PDF reports will not work.
Make sure it is set like the example above.
Can you run the following in a shell on the Nagios system and post the output?
Code: Select all
http://xxx.xxx.xxx.xxx/nagiosxi/Make sure it is set like the example above.
Can you run the following in a shell on the Nagios system and post the output?
Code: Select all
ll /usr/local/nagiosxi/
ll /usr/local/nagiosxi/html/
ll /usr/local/nagiosxi/html/reports/Be sure to check out our Knowledgebase for helpful articles and solutions!