Error reports time out export to pdf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
wizlynx_03
Posts: 3
Joined: Thu Sep 07, 2023 4:15 pm

Error reports time out export to pdf

Post by wizlynx_03 »

Hello, how are you, I have a situation with my Nagios.

When I generate a report for a month, and I want to download it, it throws a time out

php.ini

max_execution_time = 900
max_input_time = 2200
max_input_vars = 18000
memory_limit = 4096M

Nagios XI - System Info
System
Nagios XI version: 5.11.1
Release info: nagiosxi.example.com 4.18.0-513.el8.x86_64 x86_64
CentOS Stream release 8
Gnome is not installed
Apache Information
PHP Version: 8.0.30
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76
Server Name: 192.168.167.102
Server Address: 192.168.167.102
Server Port: 443

https://imgur.com/a/kGC6jgV
Image

==> /var/log/httpd/ssl_error_log <==
[Mon Sep 11 14:24:01.400106 2023] [proxy_fcgi:error] [pid 2167869:tid 140106245592832] (70007)The timeout specified has expired: [client 127.0.0.1:46932] AH01075: Error dispatching request to : (polling), referer: https://localhost/nagiosxi/reports/avai ... r_compat=1

Do you have a solution for:

https://github.com/wkhtmltopdf/wkhtmltopdf
Since the developer stopped supporting it, do you have a replacement in the future?

[root@nagiosxi ~]# whereis wkhtmltopdf
wkhtmltopdf: /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
swolf

Re: Error reports time out export to pdf

Post by swolf »

Hi @wizlynx_03, thanks for reaching out.

How long does it take to generate this report in the interface? If it's longer than the max_execution_time, I would start by increasing that number. I know it's not an ideal solution but it should fix your immediate problem.

To your other point - I agree with you, and we're acutely aware that wkhtmltopdf is becoming untenable, but no, we don't have a replacement ready to go. Unfortunately the backend we were planning to use as a replacement was also deprecated, and we've seen similar situations crop up with other alternatives. We're keeping our eyes peeled for a long-term solution but until then we're trying to keep our current backend working.

Let me know how that first change goes, or if you need further assistance.

-Sebastian Wolf
wizlynx_03
Posts: 3
Joined: Thu Sep 07, 2023 4:15 pm

Re: Error reports time out export to pdf

Post by wizlynx_03 »

Something tells me that it is not a time out issue, the server has 8GB of ram and 8 cores, from the report there are 83 servers and 1035 services, should I consider increasing ram and CPU?

Image
Image
Image
Image


Is the support here in the forums? Because I think I have up to 10 support cases, so I don't know who to send the email to so they can support me apart from the forum.
hyang
Posts: 9
Joined: Wed Aug 09, 2023 10:21 am

Re: Error reports time out export to pdf

Post by hyang »

wizlynx_03 wrote: Tue Sep 12, 2023 10:01 am Is the support here in the forums? Because I think I have up to 10 support cases, so I don't know who to send the email to so they can support me apart from the forum.
Hi @wizlynx_03,

Official support for Nagios Products (XI, LS, NNA, Fusion) is going to be through our AnswerHub. We do our best to answer questions that are posted here on the forums, but if you'd like to receive priority support then I'd recommend to open a case with our dedicated support team. If so then follow this link on how to create a case.

Best Regards~~
wizlynx_03
Posts: 3
Joined: Thu Sep 07, 2023 4:15 pm

Re: Error reports time out export to pdf

Post by wizlynx_03 »

They are planning in the future to integrate with grafana as well as this service that also monitors.

Image


I have tried to integrate it, but I have not found documentation on how, I have already tried with different authentication methods, its api works and everything, but I manage to make it work with nagios, I have seen in the grafana forums that it can, but no explain the integration
Post Reply