Zabbix monitoring system series 21: ZabbixReport report output

Problem Description

Today a colleague called to ask whether the Zabbix monitoring system has a report function, such as outputting the performance status of a certain host regularly. This is indeed a weakness for Zabbix open source products. By default, the report function provided by Zabbix is ​​for uptime or alarm status, and there is no performance report for a certain time zone of the host.
Insert picture description here

The advantage of Zabbix open source products lies in open source, and there are many cases on the Internet for reference. [ Zabbix Dynamic PDF Report Generation] Can very well help us generate beautiful reports.

solution

1. Download Git tools

yum -y install git

2. Clone Git code

cd /usr/share
git clone https://github.com/catonrug/zabbix-pdf-report.git

3. Configuration file editing

cd /usr/share/zabbix-pdf-report
cp config.inc.php.dist config.inc.php

vi config.inc.php

Main revised content:

# Zabbix 监控系统地址、报告查询的账号与密码
$z_server       = 'http://127.0.0.1/zabbix/';
$user_login=1; // 1 will ask for credentials. 0 will use credentials below:
$z_user         = 'Admin';
$z_pass         = '<Password>';

# 时区
$timezone       = 'Asia/Shanghai';
# 公司Logo
$pdf_logo       = './images/general/zabbix.png';
# 公司名称
$company_name   = 'Fujitsu';

4. Create a working directory and empower

cd /usr/share/zabbix-pdf-report
./fixrights.sh

5. httpd service configuration and effective

cp /usr/share/zabbix-pdf-report/zabbix-pdf-report.conf /etc/httpd/conf.d
systemctl restart httpd

6. Visit the web page

http://<ZabbixServerIP>/zbxreport/chooser.php

Insert picture description here

7. Sample report

  • Cover
    Insert picture description here

  • table of Contents
    Insert picture description here

  • content
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_38623994/article/details/107393804