z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

Nagios XI Report - Unable to generate report in PDF

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.

Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Fri Feb 18, 2022 11:11 am

Hi,

I am currently using Nagios XI. WE have around 500+ server reporting as passive agents. I am trying to generate report for below listed item.
But we are unable to generate the pdf document. We are getting "Failed to create PDF, Verify that your Nagios XI server can connect to the URL"
We dont have internet in the nagios server environment. Is there a way generate PDF document.

SLA Report
Alert Histogram
Notifications
Host Availability
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby ssax » Mon Feb 21, 2022 3:57 pm

If you're accessing the XI web interface through HTTPS in the web browser address bar, make sure that Admin > System Settings > Program URL has https:// set as well.

If your Admin > System Settings > Program URL is using a DNS name, make sure it resolves to the local address from an SSH session to the XI server:

Code: Select all
nslookup yourserver


If the DNS name doesn't resolve to a local address (you can validate with the ip a command) you can either add a DNS entry that the XI server has access to that does OR add it to your /etc/hosts file on the XI system on the 127.0.0.1 line so that it doesn't try going out to the router and coming back in:

Code: Select all
[root@ls1 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 yourserver yourserver.yourdomain.com
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


Then try it again.

If that still doesn't resolve it, replicate the issue in the web interface again and then right after please PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.
ssax
Dreams In Code
 
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Sat Mar 26, 2022 4:22 am

I am able to pull the reports. Currently i have issue with capacity reports. I need the report in pdf and that never ends, even for small number of hosts. I think this is specific issue with capacity report. Other reports are fine.
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby gsmith » Mon Mar 28, 2022 9:25 am

HI

Please send us a copy of your /etc/php.ini

Thanks
gsmith
 
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Mon Mar 28, 2022 11:16 am

Please find the php.ini file.
You do not have the required permissions to view the files attached to this post.
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby gsmith » Mon Mar 28, 2022 11:24 am

Hi

Those settings look good.

Please run this tail command (and leave it running):

tail -F /var/log/httpd/error_log /var/log/httpd/ssl_error_log


Then open up the capacity planning report (to replicate the issue) and send us the full output from the tail command above.

Thank you
gsmith
 
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Mon Mar 28, 2022 11:40 am

Please find the error_log
You do not have the required permissions to view the files attached to this post.
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Mon Mar 28, 2022 1:00 pm

You have to see this error on /usr/local/nariosxi/var/components/capacityplanning.log.
This could be a limit set.
wkftmltopdf process hangs forever.
You do not have the required permissions to view the files attached to this post.
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby gsmith » Wed Mar 30, 2022 9:54 am

Hi

That "Capacity planning error.txt" file was a great find.

What version of python is installed?
python -V

Thanks
gsmith
 
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Nagios XI Report - Unable to generate report in PDF

Postby ejagannathanp1 » Wed Mar 30, 2022 10:31 am

Python 2.7.5.

Here is the version.
ejagannathanp1
 
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Next

Return to Nagios XI

Who is online

Users browsing this forum: Google [Bot] and 4 guests