zabbix 每页显示行数

2021-10-27

0、左侧user setting/profile/Rows per page/50改为100
http://localhost/hosts.php每页显示50行,如果想修改为100行。

1、find /usr/share/zabbix -name defines.inc.php
find . -name defines.inc.php
./include/defines.inc.php

2、find . -type f|xargs grep 中打印
vi ./locale/zh_CN/LC_MESSAGES/frontend.po
include/func.inc.php:1662
msgstr "在 %3$s 中打印 %1$s 到 %2$s "
$start = ($currentPage - 1) * $rowsPerPage;
$rowsPerPage = (int) CWebUser::$data['rows_per_page'];

profile.php: 'rows_per_page' => [T_ZBX_INT, O_OPT, null, BETWEEN(1, 999999), 'isset({update})', _('Rows per page')],
profile.php: 'rows_per_page' => getRequest('rows_per_page')
users.php: 'rows_per_page' => [T_ZBX_INT, O_OPT, null, BETWEEN(1, 999999),'isset({add}) || isset({update})', _('Rows per page')],
users.php: 'rows_per_page' => getRequest('rows_per_page'),

3、mysql -uroot -p -e "select * from zabbix.users\G"
修改数据库,或者在用户管理界面输入想要的值。

4、忘记密码,update数据库修改默认密码zabbix
echo -n zabbix |openssl md5
5fce1b3e34b520afeffb37ce08c7cd66
mysql -uroot -p -e "update users set passwd='5fce1b3e34b520afeffb37ce08c7cd66' where userid='1'"

4、更改LDAP主机或者BIND DN
update config set ldap_host='xxx.xxx.xxx.xxx' ldap_base_dn='cn=ldap_search,ou=example,dc=com' ldap_bind_password='passwd';

分类:Linux | 标签: |

相关日志

评论被关闭!