Page 3 of 3

Re: Problems when I need to generate the reports in PDF

Posted: Mon Jun 24, 2019 10:03 am
by novisnagios
npolovenko wrote:@novisnagios, How much ram do you have on this server? Please double the memory_limit in the /etc/php.ini file and restart the apache with:

Code: Select all

service httpd restart
[root@nvsplmonnagvt01 libexec]# free -m
total used free shared buffers cached
Mem: 12025 9854 2170 22 182 8252
-/+ buffers/cache: 1419 10605
Swap: 2015 38 1977
[root@nvsplmonnagvt01 libexec]# egrep -n '^memory_limit|^max_' /etc/php.ini
440:max_execution_time = 180
449:max_input_time = 180
457:memory_limit = 1024M
1659:max_input_vars = 5000


From the command like run the "top" command and then generate a PDF report from the GUI. Let me know what the system load looks like. Take a screenshot of the command output if you can.

Image

If you have google chrome, right click on the stuck webpage and from the drop-down list select "Inspect". First, click on the Console tab and see if there are any errors. Next, go to the network tab and take a screenshot of top time-consuming queries.
Image

Image

Re: Problems when I need to generate the reports in PDF

Posted: Mon Jun 24, 2019 4:16 pm
by tgriep
Edit the following file on the Nagios server

Code: Select all

/etc/httpd/conf/httpd.conf
Add this line to the bottom of that config file.

Code: Select all

LimitRequestLine 100000
Save the file and restart the Apache process by running

Code: Select all

service httpd restart
Try running the report and downloading it as a PDF file.