zoukankan      html  css  js  c++  java
  • 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行下的广告信息即可.当然也可以通过编辑成自己的访问方式.

  • 相关阅读:
    date format记录
    python同时遍历两个list
    Windbg分析DMP文件
    DNS原理及其解析过程(转)
    有关正则表达式的详细内容
    sizeof _countof _tcslen的比较
    关于androidX
    UML类图
    springBoot 访问html页面遇到的坑
    hashmap 的实现原理
  • 原文地址:https://www.cnblogs.com/ligao/p/6178974.html
Copyright © 2011-2022 走看看