首页
留言板
推荐
Allen知识库
Search
1
VMware vSphere系列教程-部署DC/DHCP/DNS(五)
21 阅读
2
最强链路监控系统推荐Pinpoint
21 阅读
3
PC新时代开启! DDR5内存标准正式发布
19 阅读
4
Ansible系列教程-常用模块(二)
13 阅读
5
将物理机迁移到VMware虚拟机(P2V)
13 阅读
VMware
vCloud
Horizon
vSphere
NSX
运维相关
Docker
Network
Zabbix
Ansible
Python
Microsoft
Mysql
Linux
Windows Server
登录
/
注册
Search
标签搜索
ansible
docker
zabbix
chatgpt
windows模板
linux模板
模板
k3
lede
openwrt
docker网络配置
清理微信好友
python清理微信好友
grafana
监控交换机
实施教程
ansible安装
ubuntu
acrh17路由固件
访问宽带猫
Allen
累计撰写
134
篇文章
累计收到
0
条评论
首页
栏目
VMware
vCloud
Horizon
vSphere
NSX
运维相关
Docker
Network
Zabbix
Ansible
Python
Microsoft
Mysql
Linux
Windows Server
页面
留言板
推荐
Allen知识库
搜索到
1
篇与
的结果
2022-03-21
Zabbix系列教程–grafana面板嵌入到zabbix(十一)
一、配置教程 创建grafana面板 a. 在grafana里把要展示的面板创建好。进入到面板后,点击上方的分享按钮,复制地址,替换src后面的地址,保留kiosk=fullb. 在zabbix目录/usr/share/zabbix里新建个监控文件 monitor_switch.php<?php require_once dirname(__FILE__).'/include/config.inc.php'; $page['title'] = _('交换机状态'); $page['file'] = 'monitor_switch.php'; require_once dirname(__FILE__).'/include/page_header.php'; ?> <main> <div id = "showDiv" style = "display:flex; height: 900px; width: 99%;"></div> <script type="text/javascript"> jQuery(document).ready(function(){ $("#showDiv").append("<iframe src='http://192.168.203.128:3000/ddds&kiosk=full' width='100%' height= '95%' style='backgroud-color:red;'></iframe>"); }); </script> </main> <?php require_once dirname(__FILE__).'/include/page_footer.php'; ?> c. 打开/usr/share/zabbix/include/define.inc.php,找到define('ZBX_IFRAME_SANDBOX',' ');修改如下define('ZBX_IFRAME_SANDBOX', 'allow-scripts allow-same-origin allow-presentation d. 打开/usr/share/zabbix/include/classes/mvc/CRouter.php,找到private $routes =[]添加如下'monitor_switch.php'. ==> ['CLegacyAction', null, null], e.修改menu.inc.php,添加菜单,并关联文件,找到function getMainMenu() 二、修改grafana 打开/etc/grafana/grafana.ini,把allow_embedding=false的false修改为true 开启匿名访问,找到 enable anonymous access ,enabled=true
2022年03月21日
1 阅读
0 评论
0 点赞