1. 备份目前使用的/data/zabbix
cp –a /data/zabbix /data/zabbix-backp
2. 下载graphtree,并上传到服务器/mnt/soft/zabbix-3.0.3/frontends/php/
https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3-0-1.patch
3. 打补丁
cd /mnt/soft/zabbix-3.0.3/frontends/php/
patch -Np0 <graphtree3-0-1.patch
4. 删除之前的/data/zabbix,把刚才的/mnt/soft/zabbix-3.0.3/frontends/php/全部复制到/data/zabbix
5. 修改数据库连接
cd /data/zabbix/conf
cp -azabbix.conf.php.example zabbix.conf.php
vimzabbix.conf.php
6. 重启nginx/fpm/zabbix-server
7. 测试查看
时间: 2024-12-25 09:47:46