In Zabbix, scheduled reports can be generated and sent automatically using Zabbixâs media types and user macros. While Zabbix doesnât natively support scheduled reporting in the same way as other tools, you can achieve automated reports via certain steps.
First, you need to install the zabbix-web-service installation package from the official Zabbix repository:
sudo apt install zabbix-web-service -y
Next, installing Google Chrome.
This is the browser recommended by Zabbix for these purposes, but it can also be replaced with, for example, Chromium or Firefox.
Now we will edit the zabbix web service config file
sudo nano /etc/zabbix/zabbix_web_service.conf
### Option: AllowedIP
# List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and
# Zabbix proxies.
# Example: AllowedIP=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
#
# Mandatory: yes
# Default:
# AllowedIP=
AllowedIP=127.0.0.1,::1
And we will enable the report workers in the zabbix server config files located at
You can do this by selecting the Reports -> Scheduled reports menu and clicking the Create report button there.
where the subject & Message fields are :
Subject :
Weekly demo report From {{TIME}.fmttime(%d %B,-1w/w)} to {{TIME}.fmttime(%d %B %Y,-1w/w+6d)}
Message :
<b>Week from {{TIME}.fmttime(%d/%m/%y,-1w/w)} to {{TIME}.fmttime(%d/%m/%y,-1w/w+6d)}</b><br>
Week from {{TIME}.fmttime(%d/%B/%Y,-1w/w)} to {{TIME}.fmttime(%d/%B/%Y,-1w/w+6d)}<br>
Week number {{TIME}.fmttime(%W,-1w/w)}<br>