1.下载补丁并升级
cd /usr/share/zabbix
# 获取补丁包
wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3.0.4.patch
yum install -y patch
patch -Np0 <graphtree3.0.4.patch
chown -R nginx:nginx oneoaas
#注意此处的权限,必须和nginx或者apache的用户一致,如用的是apache,则此处为chown -R apache:apache oneoaas/
如果是nginx,则此处为chown -R nginx:nginx oneoaas/
打开dashboard即可看到graphtree界面
2、删除3.0.4广告信息:
vim /usr/share/zabbix/oneoaas/templates/graphtree/graphtree.tpl
删除60-81行广告
60 <footer id="footer" class="footer navbar-inverse">
61 <div class="container">
62 <ul>
63 <li class="qrcode">
64 <img src="../oneoaas/assets/img/qrcode.jpg">
65 <p>专业 合作 开放 </p>
66 <p>运维方案解决专家</p>
67 </li>
68 <li class="business">
69 <p>Zabbix监控项目承接</p>
70 <p>运维解决方案咨询</p>
71 <p>运维产品咨询</p>
72 <p><a href="http://www.oneoaas.com">www.oneoaas.com</a></p>
73 <p>请联系 support#oneoaas.com (#替换为@)
74 </li>
75 <li>
76 <p><a href="http://weibo.com/itnihao" target="_blank" rel="noopener noreferrer">@itnihao</a></p>
77 <p><a href="http://weibo.com/hell0wor1d" target="_blank" rel="noopener noreferrer">@hell0wor1d</a></p>
78 </li>
79 </ul>
80 </div>
81 </footer>