下载graphtree3.0.4
wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3-0-1.patch –P /usr/local/nginx/html/zabbix/
安装patch:
yum –y install patch
进入zabbix web根目录:
[root@zabbixserver ~]# cd /usr/local/nginx/html/zabbix/ [root@zabbixserver zabbix]# patch -Np0 < graphtree3.0.4.patch //导入graphtree patching file ./oneoaas/libs/sysplugins/smarty_internal_testinstall.php patching file ./oneoaas/libs/sysplugins/smarty_internal_undefined.php patching file ./oneoaas/libs/sysplugins/smarty_resource.php patching file ./oneoaas/libs/sysplugins/smarty_resource_custom.php patching file ./oneoaas/libs/sysplugins/smarty_resource_recompiled.php patching file ./oneoaas/libs/sysplugins/smarty_resource_uncompiled.php patching file ./oneoaas/libs/sysplugins/smarty_security.php patching file ./oneoaas/libs/sysplugins/smarty_template_cached.php patching file ./oneoaas/libs/sysplugins/smarty_template_compiled.php patching file ./oneoaas/libs/sysplugins/smarty_template_config.php patching file ./oneoaas/libs/sysplugins/smarty_template_resource_base.php patching file ./oneoaas/libs/sysplugins/smarty_template_source.php patching file ./oneoaas/libs/sysplugins/smarty_undefined_variable.php patching file ./oneoaas/libs/sysplugins/smarty_variable.php patching file ./oneoaas/libs/sysplugins/smartycompilerexception.php patching file ./oneoaas/libs/sysplugins/smartyexception.php patching file ./oneoaas/templates/graphtree/graphtree.tpl patching file ./oneoaas/templates/header.tpl
[root@zabbixserver zabbix]# chown -R nginx.nginx oneoaas/ 权限设置为nginx访问
重启nginx:
[root@zabbixserver zabbix]# service nginx restart Restarting nginx (via systemctl): [ OK ]
查看:
删除3.0.4广告信息:
[root@zabbixserver zabbix]#cd /usr/local/nginx/html/zabbix/oneoaas/templates/graphtree
[root@zabbixserver graphtree]# vim graphtree.tpl
删除63行下的广告信息即可.当然也可以通过编辑成自己的访问方式.