zabbix之Graphtrees使用笔记

2023年 7月 15日 70.8k 0

当服务器超过50台,查看监控图片已经成为一个很头疼的事情,本身zabbix的Graphs可能不是特别人性化。于是,我们需要一个展示性较强的页面,Graphtrees或许可以。Graphtrees需要zabbix版本3.0.1-3.0.3PS:Graphtrees 可能不是最好的,但却是目前能够开源贡献的zabbix3.0.2

[root@zabbix_agentd ~]# zabbix_server -V
zabbix_server (Zabbix) 3.0.2
Revision 59540 20 April 2016, compilation time: Apr 20 2016 14:37:38

Copyright (C) 2016 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
[root@zabbix_agentd ~]# 

首先,找到zabbix程序目录,而后get graphtree3-0-1.patch,当然,事先备份程序目录也是必要的wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3-0-1.patchyum install -y patch

[root@zabbix_agentd php]# patch  -Np0 <graphtree3-0-1.patch
patching file ./README.md
patching file ./biggraph.php
patching file ./graphtree.left.php
The next patch would delete the file graphtree/graphtree.patch,
which does not exist!  Skipping patch.
1 out of 1 hunk ignored
patching file ./graphtree.right.php
patching file ./graphtrees.php
patching file ./hosts.php
patching file ./img/icon-sprite.svg
patching file ./img/oneoaas-wechat.jpg
patching file ./include/func.inc.php
patching file ./include/menu.inc.php
patching file ./include/page_header.php
patching file ./js/vendors/highlight.min.js
patching file ./js/vendors/jquery.ztree.core-3.5.js
patching file ./jsLoader.php
patching file ./locale/lt/LC_MESSAGES/frontend.po
patching file ./locale/lv/LC_MESSAGES/frontend.po
patching file ./locale/pt_BR/LC_MESSAGES/frontend.po
patching file ./styles/ztree/line_conn.gif
patching file ./styles/ztree/loading.gif
patching file ./styles/ztree/zTreeStandard.gif
patching file ./styles/ztree/zTreeStandard.png
patching file ./styles/ztree/zTreeStyle.css

如果是yum安装的,则考虑作者第二种方式:mv /usr/share/zabbix /usr/share/zabbix-old 这里是重命名zabbix下载新的zabbix包wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.0.1/zabbix-3.0.1.tar.gztar xf zabbix-3.0.1.tar.gzcd zabbix-3.0.1/frontends/php解压后和第一种类似wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3-0-1.patchyum install -y patchpatch -Np0 <graphtree3-0-1.patch复制配置文件cp -r /tmp/zbx/zabbix-3.0.1/frontends/php /usr/share/zabbixcp /usr/share/zabbix-old/conf/zabbix.conf.php /usr/share/zabbix/conf/最终效果图:请输入图片描述感谢作者贡献:

相关文章

对接alertmanager创建钉钉卡片(1)
手把手教你搭建OpenFalcon监控系统
无需任何魔法即可使用 Ansible 的神奇变量“hostvars”
openobseve HA本地单集群模式
基于k8s上loggie/vector/openobserve日志收集
openobseve单节点和查询语法

发布评论