在使用 zabbix 3.0.4
界面上 last 20 issuus 没掉了,查了很久,没有发现具体在哪里配置,最后想到直接查zabbix源码,把东西调出来
找到
先找到哪里控制显示的:app/views/monitoring.dashboard.view.php
foreach ($widgets as $widgetid => $widget) {
$profile = 'web.dashboard.widget.'.$widgetid;
$rate = CProfile::get($profile.'.rf_rate', 60);
$expanded = (bool) CProfile::get($profile.'.state', true);
$col = CProfile::get($profile.'.col', $widget['defaults']['col']);
$row = CProfile::get($profile.'.row', $widget['defaults']['row']);
这里说,在CProfile里面拿到一个开关,长宽;感觉这个就是在数据库里面拿的,顺着查下去
找到include/classes/user/CProfile.php;CProfile这个类就是在MySQL里面profiles表拉配置数据