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

  • 相关阅读:
    std::sort运行出core(segment fault)
    C++编译报错:重复定义
    《改变世界的九大算法》读书笔记
    简单排序实现
    Django 常见错误总结
    python 进行机器学习
    python中matplotlib 的简单使用
    十四:生成器函数和迭代器函数
    十三:装饰器函数
    十二:重要的内置函数
  • 原文地址:https://www.cnblogs.com/ligao/p/6178974.html
Copyright © 2020-2023  润新知