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.
ejagannathanp1
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

Nagios XI Report - Unable to generate report in PDF

Post by ejagannathanp1 »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post by ssax »

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.
ejagannathanp1
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

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

Post by ejagannathanp1 »

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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

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

Post by gsmith »

HI

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

Thanks
ejagannathanp1
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

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

Post by ejagannathanp1 »

Please find the php.ini file.
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

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

Post by gsmith »

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
ejagannathanp1
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

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

Post by ejagannathanp1 »

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

Post by ejagannathanp1 »

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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

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

Post by gsmith »

Hi

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

What version of python is installed?
python -V

Thanks
ejagannathanp1
Posts: 8
Joined: Thu Feb 10, 2022 11:27 am

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

Post by ejagannathanp1 »

Python 2.7.5.

Here is the version.
Locked