Creating automated PDF reports
Scheduled PDF reports allow Zabbix to automatically generate dashboards as PDF documents and distribute them by email. This feature requires the Zabbix Web Service, which uses a headless Google Chrome browser to render dashboards before converting them to PDF. Refer to Chapter 3: Web Services for detailed instructions on installing and configuring the Zabbix Web Service.
Home Directory Issue
The zabbix-web-service package does not automatically create the home directory for the zabbix user. Without this directory, Google Chrome cannot start and PDF generation will fail.
Creating the Zabbix home directory
Create the directory manually.
Create the directories required by Google Chrome.
sudo -u zabbix mkdir -p \
/var/lib/zabbix/.config \
/var/lib/zabbix/.cache \
/var/lib/zabbix/.local/share/applications
Verify that the zabbix user can write to its home directory.
Configuring the Zabbix Server
Next we need to configure the Zabbix Server so it knows where to find the web service and how many report writers to start.
Configuring the Zabbix Server
Edit the Zabbix Server configuration.
Configure the Web Service URL.
Enable at least one report writer.
Restart both services.
Verifying the Installation
Before creating scheduled PDF reports, verify that the Zabbix Web Service is running correctly and listening on the expected port.
Verifying the Installation
Verify that the Web Service is running.
You can also test whether the Web Service is listening.
One final step before we can start creating our scheduled reports is
configuration of the frontend URL. Go to Administration | General | Other.
Fill in the Frontend URL field with the correct URL of your frontend. This can
be something like http://192.168.0.1/, https://myzabbixurl/, or even
https://my_zabbix_domain/zabbix/. This depends on how you have configured your
frontend.

11.43 Frontend URL
Receiving an error indicating that the HTTP method is not supported is expected and confirms that the Web Service is operational. After configuring the Frontend URL, scheduled PDF reports can be created directly from the Zabbix frontend.
Warning
On Ubuntu 24.04, the Snap version of Chromium is not compatible with the
Zabbix Web Service. Always install the official Google Chrome package and ensure
that the /var/lib/zabbix home directory exists and is writable by the zabbix
user. Otherwise, Chrome will fail to start and automated PDF report generation
will not work.
Conclusion
Automated PDF reports make it easy to distribute dashboards to administrators, managers, and customers without requiring manual intervention.
By installing the Zabbix Web Service, configuring the Zabbix Server, and using a supported version of Google Chrome, you can automatically generate and email PDF reports directly from Zabbix.
Questions
- Which Zabbix component is responsible for generating scheduled PDF reports?
- Why is the Ubuntu Snap version of Chromium not supported?
- Which Zabbix Server parameters must be configured to enable PDF report generation?
- How can you verify that the Zabbix Web Service is running correctly?
- Which TCP port does the Zabbix Web Service use by default?