zabbix3.2安装graphtree3.0.4


下载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  ]

查看:

image

 

删除3.0.4广告信息:
 
[root@zabbixserver zabbix]#cd /usr/local/nginx/html/zabbix/oneoaas/templates/graphtree
[root@zabbixserver graphtree]# vim graphtree.tpl
image

删除63行下的广告信息即可.当然也可以通过编辑成自己的访问方式.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM