Page 1 of 2
Nagios XI Report - Unable to generate report in PDF
Posted: Fri Feb 18, 2022 11:11 am
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
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Feb 21, 2022 3:57 pm
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:
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.
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Sat Mar 26, 2022 4:22 am
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.
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Mar 28, 2022 9:25 am
by gsmith
HI
Please send us a copy of your /etc/php.ini
Thanks
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Mar 28, 2022 11:16 am
by ejagannathanp1
Please find the php.ini file.
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Mar 28, 2022 11:24 am
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
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Mar 28, 2022 11:40 am
by ejagannathanp1
Please find the error_log
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Mon Mar 28, 2022 1:00 pm
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.
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Wed Mar 30, 2022 9:54 am
by gsmith
Hi
That "Capacity planning error.txt" file was a great find.
What version of python is installed?
python -V
Thanks
Re: Nagios XI Report - Unable to generate report in PDF
Posted: Wed Mar 30, 2022 10:31 am
by ejagannathanp1
Python 2.7.5.
Here is the version.