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