PHP前端页面二次发或优化
2 篇帖子 分页: 1 / 1
帖子mxj333 » 2014年 8月 11日 09:04 星期一
Here is the latest version of my top10 dashboard. I am still working on a config page so you can modify each of the widgets to match your own environment so for right now you just have to edit the top10.php file to either select your item key or item description and then you have to update the header with your own description. Most of these follow the base template key's and description so for the most part it should just work.

As the title states, this is a work in progress and I've only just started working on this (in my spare time).

The Top/Bottom 10 blocks only query the history table and I only calculate the average for the last hour. I don't foresee using the trends table at all or calculating more then an hours worth of data (thats what reports are for).

According to the debug output, I see and average of .1 seconds for each of these new blocks, so speed is not an issue (for me) right now either.

This does NOT touch existing files (instead I just made duplicates and renamed them) so this doesn't change any code. I did make and test this only on 1.8.3 so I don't know if it will work with anything below that.

To install:
Copy top10.php to zabbix web root
Copy top10.inc.php to zabbix/include directory

If the group dashboard filter is set, these new blocks will filter the query based on those groups.
Screen shot 2010-09-20 at 4.17.12 PM.jpg



custom Dashboard.tar.gz


转自:https://www.zabbix.com/forum/showthread.php?t=19258
登录后可见。
zabbix中文论坛:http://www.zabbix.net.cn 或者 www.zabbix.org.cn
帖子oulin_hl » 2014年 8月 11日 09:07 星期一
可以收藏,但不知道是否在2.2上支持
代码: 全选
ZABBIX中文论坛
欢迎热爱zabbix的网友们,在此我们可以一起探讨、交流、沟通zabbix的所有操作与问题!
2 篇帖子 分页: 1 / 1

登录

在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客