在自定义网站上显示 Zabbix 图表 [英] Display Zabbix graphs on a custom web site

查看:135
本文介绍了在自定义网站上显示 Zabbix 图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 wordpress 网站上显示 Zabbix 图形和屏幕.我怎样才能很好地轻松地做到这一点?我使用了 Grafana,它显示的图形非常干净漂亮.但是它需要太多的负载,并且每次刷新时也会下载大约 10MB !!所以它不是我的最爱.我想在网站中显示客户服务器的资源使用情况.我可以在 HTML 框架中共享屏幕 URL,但它也显示页眉和页脚,因此客户可以单击编辑屏幕"按钮或其他位置,也可以注销仪表板!!有没有办法在我的网站上只显示没有额外按钮、页眉和页脚的图表?

解决方案

使用 chart2.php 端点仅绘制图形:

当然,您必须管理身份验证(强制用户进行身份验证,将其嵌入 php 包装器等)或启用访客访问.

I want to display Zabbix graphs and screens on my wordpress website. How can I do this nicely and easily? I used Grafana which displays the graphs very clean and beautiful. But it takes a lot too load and also downloads about 10MB on every refresh!! So it is not my favorite. I want to show the resource usage of my customers's servers in a website. I can share the screen URL in an HTML frame, but it also shows the header and footer so the customer can click on the button 'Edit screen' or somewhere else and also logout the dashboard!! Is there any way to display only graphs without extra buttons, header and footer on my web site?

解决方案

Use the chart2.php endpoint to plot the graph only:

https://your.zabbix.server/zabbix/chart2.php?graphid=123456&from=now-7d&to=now

As you can see the size of the chart is really small:

Of course you have to manage authentication (force the user to authenticate, embed it in a php wrapper etc.) or enable guest access.

这篇关于在自定义网站上显示 Zabbix 图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆