[ZBXNEXT-6478] Scheduled PDF report generation service (umbrella task) Created: 2021 Jan 29 Updated: 2024 Sep 05 Resolved: 2021 Aug 25 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | None |
Fix Version/s: | 6.0.0alpha1, 6.0 (plan) |
Type: | Change Request | Priority: | Trivial |
Reporter: | Rostislav Palivoda | Assignee: | Andrejs Griščenko |
Resolution: | Fixed | Votes: | 11 |
Labels: | None | ||
Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||||||||||||||||||
Sub-Tasks: |
|
||||||||||||||||||||||||||||||||||||
Team: | |||||||||||||||||||||||||||||||||||||
Sprint: | Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021) | ||||||||||||||||||||||||||||||||||||
Story Points: | 0.1 |
Description |
Currently Zabbix does not support scheduled PDF report generation, it is one of the major complains of enterprise users. It is time to fix it by enabling Zabbix to support sending of existing dashboards as PDF reports. In the future dashboards widgets should be enhanced to support more widgets suitable for reporting purposes. See ✅ Scheduled PDF report generation v1.1.pdf
|
Comments |
Comment by Oleksii Zagorskyi [ 2021 Jan 29 ] |
Probably duplicates ZBXNEXT-247 and/or |
Comment by Andris Zeila [ 2021 Apr 26 ] |
Released
Documentation updated: General info Installation
Server & web service:
Frontend
|
Comment by Dimitri Bellini [ 2021 Apr 27 ] |
For this great function, do you have a plan to add "Download now" button other than schedule an email? Thanks so much |
Comment by Brian van Baekel [ 2021 Apr 27 ] |
Playing around with this, but it seems only the first page of a dashboard will be sent in the report, or am i missing some hidden option? |
Comment by Andris Zeila [ 2021 Apr 27 ] |
Yes, currently only the first page is captured and sent. |
Comment by sbindley [ 2021 May 05 ] |
Just downloaded 5.4 beta 3 and the test functionality is not working? When trying Test on scheduled report i get "Report generating test failed. No media configured for the report recipients" |
Comment by Andris Zeila [ 2021 May 06 ] |
When testing the report is sent to the tester. |
Comment by sbindley [ 2021 May 06 ] |
Sorry I had not found the reports page in the documentation. Thanks.. Update, I got it to work, the URL param in frontend was incorrect. |
Comment by Andris Zeila [ 2021 May 07 ] |
If you are getting blank pdfs (and not pdfs with empty graphs or something), it means webservice is working, but exporting empty pdfs. First thing to check is if the frontend URL in administration/general/other. Is it correct and can it be accessed from the system where Zabbix web service is running. Also you can check if chrome print-to-pdf is working from command line: chrome --headless --print-to-pdf=<path> <url> P.S. |
Comment by Dimitri Bellini [ 2021 May 12 ] |
Today i have tested the new 5.4.0rc1 but i still not able to test the PDF Report. During the test of the PDF Report and when i push the "test" button i receive a message like "Cannot connect to web service: couldn't connect to server" on the log i can see: 575867:20210512:162104.121 End of zbx_ipc_socket_read():SUCCEED 575867:20210512:162104.121 In rw_begin_report() 575867:20210512:162104.121 In rw_get_report() url:http://10.10.11.106/zabbix.php?action=dashboard.print&dashboardid=2&from=2021-05-11%2000%3A00%3A00&to=2021-05-12%2000%3A00%3A00 width:1920 height:992 575867:20210512:162104.121 End of rw_begin_report():FAIL report_size:0 575867:20210512:162104.121 failed to begin report dispatch: Cannot connect to web service: couldn't connect to server 575867:20210512:162104.121 zbx_setproctitle() title:'report writer #1 [reports started 0, sent 0, finished 0, idle 4862487702.722708 sec during 29.880991 sec]' 575867:20210512:162104.121 In zbx_ipc_socket_read() 575867:20210512:162104.121 End of zbx_ipc_socket_read():SUCCEED 575867:20210512:162104.121 In zbx_ipc_socket_read() 575867:20210512:162104.121 End of zbx_ipc_socket_read():SUCCEED 575867:20210512:162104.121 In rw_send_result() status:-1 error:Cannot connect to web service: couldn't connect to server 575867:20210512:162104.121 In zbx_ipc_socket_write() 575867:20210512:162104.121 End of zbx_ipc_socket_write():SUCCEED 575867:20210512:162104.121 End of rw_send_result() 575867:20210512:162104.122 In zbx_ipc_socket_read() Someone have the same problem? |
Comment by Dimitri Bellini [ 2021 May 14 ] |
Sorry after some digging and troubleshooting i have found the problem... |
Comment by Luiz Sales [ 2021 May 17 ] |
I am validating the report on the docker, but it returns the following error. all all code error: Report generating test failed.
my docker-compose.yaml zabbix-web-service:
|