[ZBX-19713] zabbix5.4.2 Scheduled report is generated but no graphical info shown on pdf attachment Created: 2021 Jul 21  Updated: 2021 Oct 28  Resolved: 2021 Oct 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: edjung Assignee: Zabbix Support Team
Resolution: Incomplete Votes: 0
Labels: dashboard, graphs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu server20.04LTS, nginx, mariadb10.5, zabbix 5.4.2


Attachments: PNG File 2021-09-27_22-53.png     PDF File Test_report_2021-10-11_08-01-ubuntu.pdf     PNG File dashboard-monitor.png     PNG File email-received.png     PNG File generate-report-success.png     PDF File test-report_2021-08-03_14-43.pdf     PDF File test-report_2021-09-27_22-46.pdf     PDF File test-report_2021-10-23_21-07.pdf     PDF File test_report_zabbix-server-cpu-interrup-time-graph.pdf     PNG File web-service-err.png     PDF File zabbix-test-report_2021-07-16_11-08.pdf     PDF File zabbix-test-report_2021-07-20_22-57.pdf     Text File zabbix-web-service.log.txt    
Issue Links:
Duplicate
is duplicated by ZBX-19714 zabbix5.4.2 Scheduled report is gener... Closed

 Description   

Steps to reproduce:

  1. setup scheduled report via email.
  2. pdf attachment generated with dashboard info.
  3. received attachment successfully.
  4. but graphical info is blank, only literal texts shown.
  5. dashboard works fine.

please review my attachments with this issue
See attached patch file.



 Comments   
Comment by Aleksey Volodin [ 2021 Jul 22 ]

Hello edjung!

Thank you for reporting this.

Can you please provide some additional information?

Share the output of this command

 

zabbix_web_service -V

 

Also increase log level for the zabbix_web_service and share the log file while you test the Schedule report.

Best regards,
Aleksey

Comment by edjung [ 2021 Jul 26 ]

thanks, Aleksey Volodin

here's the web_service version

root@zabbix54:/etc/zabbix# zabbix_web_service -V
zabbix_web_service (Zabbix) 5.4.2
Revision 4c8f9aabe1 28 June 2021, compilation time: Jul 10 2021 14:35:11

Copyright (C) 2021 Zabbix SIA

Comment by edjung [ 2021 Jul 26 ]

here comes the log file after I changed debug level to 5 with restarting zabbix and generated test report at local time

https://drive.google.com/file/d/1P-VxKGeqTOyCHI2sbku59g-UPnMFWOjO/view?usp=sharing

thanks again for your kindly replies,

Comment by Aleksey Volodin [ 2021 Jul 26 ]

Thank you for share additional information. But maybe you sent the wrong one log file. Previous i asked you to provide information from zabbix_web_service.

To do this please edit zabbix_web_service configuration file /etc/zabbix/zabbix_web_service.conf and change from # DebugLevel=3 to DebugLevel=5

Then restart zabbix_web_service.

Comment by edjung [ 2021 Jul 30 ]


hello, Aleksey,
I found two zabbix_server.conf file,
one is located under /etc/zabbix,
the other is located under /usr/local/etc/
which one is the real taking effect?
and about the /usr/local/etc/zabbix_web_service.conf file,
should I copy it to /etc/zabbix directory?
or I can just modified it under /usr/local/etc/ location?
because I used zabbix_web_service -c command
it complained about:
zabbix_web_service [18024]: ERROR: cannot open configuration file: open : no such file or directory
Is there any thing I miss during installation?
I install zabbix 5.4 from official package,
then manually upgrade to 5.4.2 source by make configure,
I do listening 10053, but I am confused about how to get this "web_service.conf" right,

Comment by edjung [ 2021 Aug 03 ]

thanks for your replies, Aleksey,
but the installation documents I read only mentioned make and configure way to enable web_service,
is there other way to do that? or I can update or re-install packages with web_service enabled?
please advise me.
gratefully yours,

Comment by edjung [ 2021 Aug 03 ]

my google-chrome version is: Google Chrome 91.0.4472.114

Comment by edjung [ 2021 Aug 03 ]

I got it, use apt install zabbix-web-service instead of configure from source,
now facing this: "Cannot fetch data: mkdir /tmp/chromedp-runner721499854: no space left on device" issue,
but getting some progress,

Comment by edjung [ 2021 Aug 03 ]

thanks again, Aleksey,
I re-build a new virtual machine for zabbix, and this time using offical 5.4.1 package with web_service enabled,
this time the generated report shown some graphical data but not clear enough,
please check the attachment file and the web-service-log.txt,
and I appreciate your kind assistance very much.
test-report_2021-08-03_14-43.pdf
zabbix-web-service.log.txt

Comment by Antons Sincovs [ 2021 Aug 26 ]

Hello Edjung!

Could you please share your current status regarding the scheduled report generation? Do you still have issues?
Please also check this blog post: https://blog.zabbix.com/scheduled-report-generation-in-zabbix-5-4/14776/

Kind regards,
Antons Sincovs

Comment by edjung [ 2021 Aug 29 ]

Hi, Antons Sincovs,
I'm sorry to report that my problem still remains,
I did every process and even re-build a new vm following official packages,
and the web service log seems fine in my latest attachment,

but my graph report still missing some parts,
it has the chart with time stamp as coordination under but no line graph on it,
the part that supposed to show some trend lines was replaced by some blank marks.

you can check my latest update attachment above at 3rd. August,
and I reviewed every step of the official blog you mentioned.
but my report still remains the same situation.
Is there any other settings that I should notice?

please advise me.
gratefully yours,

Comment by Antons Sincovs [ 2021 Sep 06 ]

Hello Edjung!

I have prepared a step-by-step instruction for you which I followed on a CentOS 8 freshly installed VM. Here is the PDF report with a graph which I obtained as a result test_report_zabbix-server-cpu-interrup-time-graph.pdf

Please try following it and see if it helps.

1. Download google chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

2. Install google chrome

dnf localinstall -y google-chrome-stable_current_x86_64.rpm

3. Install Zabbix web service

dnf install zabbix-web-service

4. Modify the Zabbix server configuration to enable web service

/etc/zabbix/zabbix_server.conf

add lines (set communication between the Zabbix server and web service, make sure that the port 10053 is not blocked) :

WebServiceURL=http://<IP/DNS name>:10053/report

start at least one reporter process:

StartReportWriters=1

5. Modify /etc/zabbix/zabbix_web_service.conf to allow Zabbix server connections:

AllowedIP=<Zabbix server's IP/DNS name>

6. Enable and start the web service

systemctl enable zabbix-web-service.service --now

7. Check permissions for the user role - must include:

“Access to UI elements”>“Scheduled reports”

8. Permissions to manage scheduled reports:

“Access to API”>“Manage scheduled reports”

9. Enable communication between the Zabbix frontend and the Web service (you need to specify your frontend URL that will be reachable by the web service):

“Administration”>“General”>“Other configuration parameters”>“Frontend URL”><IP/DNS name of Zabbix frontend>

10. Make sure that email media type is assigned to the user you try to send scheduled reports to

11. Versions of packages used:

  • zabbix_web_service version: 5.4.3 (MySQL DB backend)
  • zabbix_server_version: 5.4.3
  • google-chrome-stable version: 92.0.4515-1.x86-64
  • httpd (Apache web server): 2.4.37-39

Kind regards,
Antons Sincovs

Comment by edjung [ 2021 Sep 13 ]

Dear Mr. Sincovs,
Thanks for your kindly reminders,
I will try if there are problems due to nginx or apache approaches.

gratefully,

Comment by Antons Sincovs [ 2021 Sep 23 ]

Hello Edjung!
Please, comment with any updates regarding the issue and attempted resolution. Otherwise I will have to close the ticket.

Regards,
Antons

Comment by edjung [ 2021 Sep 27 ]

Sorry for my late comment of progress,
I'm working on another issue right now,
my zabbix localhost is still testing on apache2,
because of my failed resizing of lvm on virtual host,
I will try to update this issue in this week.

gratefully,

Comment by edjung [ 2021 Sep 27 ]

Respectful Mr. Sincovs,
my latest update is still unsuccessful on generating graphs of pdf report,
this time I used Apache2 on ubuntu server 20.04
chrome version is 94.0.4606.61-1
zabbix_web_service (Zabbix) 5.4.4
zabbix_server (Zabbix) 5.4.4 with mariadb-10.3
php 7.4 enabled

sadly to say, here's the no-graph report,

test-report_2021-09-27_22-46.pdf

the graphs my newly installed zabbix server dashboard lools like below

Comment by Antons Sincovs [ 2021 Oct 11 ]

Hello Edjung!

Repeated all the steps with Ubuntu 20.04 + Zabbix server 5.4.4 + Zabbix web service 5.4.4.
Installed everything on one VM.

Here are the steps a took:

1. Get the debian package with Google Chrome stable

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2. Install the package

sudo dpkg -i google-chrome-stable_current_amd64.deb

3. Install Zabbix web-service

apt install zabbix-web-service

4. Modify the Zabbix server configuration to enable web service

/etc/zabbix/zabbix_server.conf

add lines (set communication between the Zabbix server and web service, make sure that the port 10053 is not blocked) :

WebServiceURL=http://<IP/DNS name>:10053/report 

start at least one process:

 StartReportWriters=1

5.Modify /etc/zabbix/zabbix_web_service.conf :

AllowedIP=<Zabbix server's IP/DNS name>

My particular example

/etc/zabbix/zabbix_server.conf:

StartReportWriters=3
WebServiceURL=http://localhost:10053/report

/etc/zabbix/zabbix_web_service.conf:

AllowedIP=127.0.0.1

Frontend URL (“Administration”>“General”>“Other configuration parameters”):

http://localhost/

Test_report_2021-10-11_08-01-ubuntu.pdf

Please, note, that when creating a scheduled report you have to select the "Period" for data to be displayed and can vary among "Previous day", "Previous week", "Previous month" and "Previous year". There is one more reason why your graphs can be blank - the absence of data. As you can see - I have switched the VM on for some time the day before I have generated the test report for some data to be present on graphs, as I chose "Previous day" period.

By the was are do you use HTTP or HTTPS for the frontend webserver?

Kind regards,
Antons Sincovs

Comment by edjung [ 2021 Oct 21 ]

Respectful Mr. Sincovs,

Thanks for your specific description,

I'll try to do all over again, to see if the situation changed or not,

my original idea is that, the graph report can show instant data in time,

I will update my test as soon as possible,

gratefully,

Comment by Antons Sincovs [ 2021 Oct 22 ]

Just, please note, that, that "Period" setting in "Scheduled reports" for now can only include the following time periods:

  • Previous day,
  • Previous week
  • Previous month
  • Previous year
Comment by edjung [ 2021 Oct 23 ]

Dear Mr. Sincovs,

you're right about the time period issue,

that's exactly the reason of my mistake,

I can now generate graph report since I waited the data to be collected for over a day.

here's the result: test-report_2021-10-23_21-07.pdf

Thanks for all kind and patient replies from you and the amazing Zabbix development team.

Sincerely yours,

ed

Comment by Antons Sincovs [ 2021 Oct 23 ]

You are always welcome, Ed!

Generated at Sun May 18 06:31:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.