yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb mariadb-server
create database zabbix character set utf8 collate utf8_bin;
grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
flush privileges;
zcat /usr/share/doc/zabbix-server-mysql-4.4.10/create.sql.gz |mysql -uzabbix -pzabbix zabbix
vim /etc/zabbix/zabbix_server.conf
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
修改時區
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
重新啟動服務
systemctl restart zabbix-server zabbix-agent httpd
瀏覽器登入http://IP/zabbix
wget https://dl.grafana.com/oss/release/grafana-7.2.0-1.x86_64.rpm
yum -y install grafana-7.2.0-1.x86_64.rpm
systemctl enable grafana-server
systemctl start grafana-server
在這裡插入圖片描述
grafana-cli plugins install alexanderzobnin-zabbix-app
vim /etc/grafana/grafana.ini
增加下面這條命令
allow_loading_unsigned_plugins = alexanderzobnin-zabbix-datasource
重新啟動
systemctl restart grafana-server
http://xxx.xxx.xxx.xxx/zabbix/api_jsonrpc.php
基礎資料已經匯入到granfna裡面了