如何重新排序 Zabbix Dashboard 的收藏夹对象(地图、屏幕和图形)? [英] How to reorder Zabbix Dashboard's Favourite objects (maps, screens and graphs)?

查看:26
本文介绍了如何重新排序 Zabbix Dashboard 的收藏夹对象(地图、屏幕和图形)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前端用户如何在 Zabbix Dashboard 页面上重新排列他最喜欢的图表快捷方式?

How can a front end user reorder his favorite graphs shortcuts on the Zabbix Dashboard page?

如果不可能,管理员如何从数据库中做到这一点?

If it's not possible, how can the admin do that from the database?

相关信息存储在profiles表(参考这个答案).我查看了它并得出结论,profileid 列的大小似乎是决定仪表板中显示顺序的指标.

The relevant information is stored on the profiles table (refer to this answer). I've looked at it and concluded that the magnitude of the profileid column seems to be the metric that determines the order of showing in the dashboard.

但是重新排序的最佳方法是什么?可以执行 update 命令来安全地更改 profileid 数字吗?这样做是否有其他限制或其他可能的影响?

But what is the best way to reorder that? Can one do update commands to change the profileid numbers safely? Is there other restrictions to do that, other possible implications?

注意:Zabbix 版本为 2.4.

Note: Zabbix version is 2.4.

推荐答案

是的,在 Zabbix 2.4 中,仪表板收藏夹条目按 profileid 字段排序.您可以修改它并更改条目的顺序,只需确保使用不存在的 profileid 进行临时更改.

Yes, in Zabbix 2.4 the dashboard favourite entries are sorted by the profileid field. You can modify it and change the order of the entries, just make sure to use a non-existent profileid for the temporary changes.

当条目 A=4 和 B=5 时,可以将 A 的 profileid 设置为 6,B 设置为 4,最后将 A 设置为 5,从而颠倒顺序 - 如果 6 的值不是已经在使用中.

With entries A=4 and B=5, one could set profileid of A to 6, B to 4 and finally A to 5, thus reversing the order - if the value of 6 was not in use already.

话虽如此,请注意在 Zabbix 2.4 和 4.0 之间的某个地方,排序顺序已更改为字母顺序.一旦升级,您在此处所做的所有更改都将变得毫无用处.

Having said that, note that somewhere between Zabbix 2.4 and 4.0 the sort order has changed to an alphabetic one. All your changes here would become useless once you upgrade.

这篇关于如何重新排序 Zabbix Dashboard 的收藏夹对象(地图、屏幕和图形)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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