zabbix Forgot password, retrieve password

zabbix default username Admin, default password zabbix

1. If the database has also forgotten the account password (do not forget anything over time)

a. The zabbix web service installed by the source code
assumes that the Zabbix deployment directory is / www / zabbix /
then the database file is
/www/zabbix/conf/zabbix.conf.php

more /www/zabbix/conf/zabbix.conf.php
b. If it is yum one-click installation of zabbxi web service

whereis zabbix
zabbix: /usr/lib/zabbix /etc/zabbix /usr/share/zabbix
在/etc/zabbix/里有个web

[root@x01 web] cd /etc/zabbix/web
[root@x01 web]# ls
maintenance.inc.php zabbix.conf.php

  1. Log into the database to view the default account

mysql -uzabbix -p -e "select * from zabbix.users\G"
Enter password:
1. row
userid: 1
alias: Admin
name: Zabbix
surname: Administrator
passwd: ab054fc97e10508776a20f054a7f34f1
url:
autologin: 1
autologout: 0
lang: zh_CN
refresh: 30s
type: 3
theme: default
attempt_failed: 0
attempt_ip: 123.120.2.111
attempt_clock: 1583589895
rows_per_page: 50
2. row
userid: 2
alias: guest
name:
surname:
passwd: 341d8cd98f00b20429800998ecf84279
url:
autologin: 0
autologout: 15m
lang: en_GB
refresh: 30s
type: 1
theme: default
attempt_failed: 0
attempt_ip:
attempt_clock: 0
rows_per_page: 50

  1. Log in to the database and forcibly modify the super account password

mysql -uzabbix -p
mysql> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Database changed
mysql> update users set passwd='5fce1b3e34b520afeffb37ce08c7cd66' where userid='1';
zabbix 默认用户名Admin,默认密码zabbix
解释:5fce1b3e34b520afeffb37ce08c7cd66 = zabbix

  1. Change password immediately after login

https://java-er.com/blog/zabbix-recover-password/

Guess you like

Origin blog.51cto.com/yuexiaosheng/2487833