Zabbix3.0版Graphtree的安装配置
Graphtrees: https://github.com/OneOaaS/graphtrees
如果是采用yum安装的zabbix-server, 则使用以下方式:
# mv /usr/share/zabbix /usr/share/zabbix-old #备份zabbix-web
# cd /root ; wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gz #下载zabbix对应版本的源安装包
# tar xf zabbix-3.0.1.tar.gz
# cd zabbix-3.0.1/frontends/php
# wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3-0-1.patch #使用对应版本的补丁包
# yum install -y patch
# patch -Np0 <graphtree3-0-1.patch
# cp -r /root/zabbix-3.0.1/frontends/php /usr/share/zabbix
# cp /etc/zabbix/web/zabbix.conf.php /usr/share/zabbix/conf/ 或 cp /usr/share/zabbix-old/conf/zabbix.conf.php /usr/share/zabbix/conf/
# chown -R apache.apache /usr/share/zabbix
删除广告提示信息
# vim /usr/share/zabbix/graphtree.right.php #具体路径刷新Zabbix-web会出现提示信息,请参考自己的路径。
一般是删除344-350行