Zabbix 3.2.1 安装 Graphtree3.0.4 或 Graphtree3.2.x

1、进入zabbix页面的目录,因人而异

# cd /var/www/zabbix

2、下载 graphtree 补丁包

# wget --no-check-certificate  https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3.0.4.patch

或者自己去 git 下载:

https://github.com/oneoaas/graphtrees

(本人实测 3.2.1 版本安装 graphtree3.0.4.patch 或 graphtree3.2.x.patch 并无区别)

3、安装补丁操作程序

# yum install -y patch

4、执行命令

# patch -Np0 < graphtree3.0.4.patch  // 如果是安装3.2.x 版本则执行 patch -Np0 < graphtree3.2.x.patch

 5、新建目录,修改权限

# chown -R nginx.nginx oneoaas/
# cd oneoaas
# chown -R nginx.niginx oneoaas  // 让 nginx 有权限访问此目录即可
# mkdir templates_c # chmod 777 templates_c  // 不修改此目录权限,前台页面将无法访问

 6、reload nginx,使页面生效

# nginx -s reload

 页面效果

进入 Graphtress 的效果:

7、发现页面底部还有广告,能忍?

注释掉以下文件的指定内容:

# vim /var/www/zabbix/oneoaas/templates/graphtree/graphtree.tpl

参考链接:

http://blog.csdn.net/xiegh2014/article/details/73385239

http://blog.csdn.net/liang_baikai/article/details/53542317

原文地址:https://www.cnblogs.com/unchch/p/7484982.html