zabbix‘ failed: [1044] Access denied for user ‘zab

环境:

zabbix 3.4

Redhat 6.5 64

PHP 5.5

Mysql 5.6

Nginx  1.6

现象:登录zabbix后,提示service is not runing ,zabbix状态显示如下截图

日志分析:

日志路径:/tmp/zabbix_server.log

26508:20180627:144257.934 Starting Zabbix Server. Zabbix 3.4.10 (revision 81503).
 26508:20180627:144257.934 ****** Enabled features ******
 26508:20180627:144257.934 SNMP monitoring:           YES
 26508:20180627:144257.934 IPMI monitoring:            NO
 26508:20180627:144257.934 Web monitoring:            YES
 26508:20180627:144257.934 VMware monitoring:          NO
 26508:20180627:144257.934 SMTP authentication:        NO
 26508:20180627:144257.934 Jabber notifications:       NO
 26508:20180627:144257.934 Ez Texting notifications:  YES
 26508:20180627:144257.934 ODBC:                       NO
 26508:20180627:144257.934 SSH2 support:               NO
 26508:20180627:144257.934 IPv6 support:               NO
 26508:20180627:144257.934 TLS support:                NO
 26508:20180627:144257.934 ******************************
 26508:20180627:144257.934 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf
 26508:20180627:144257.938 [Z3001] connection to database 'zabbix' failed: [1044] Access denied for user 'zabbix'@'localhost' to database 'zabbix'
 26508:20180627:144257.938 Cannot connect to the database. Exiting...
 26533:20180627:144649.189 Starting Zabbix Server. Zabbix 3.4.10 (revision 81503).

原因分析:

由于zabbix启动是调用zabbix_server.conf配置文件,需要是从这个里面排查

由于标紫色的框内是注释,把此位置注释去掉,然后配置一下服务器对应的IP地址,再次重启zabbix服务,再观察错误

启动zabbix服务

[[email protected] ~]# service zabbix_server start
Starting zabbix_server:                                    [确定]
[[email protected] ~]#

观察日志是否有报错信息:

26533:20180627:144649.189 Starting Zabbix Server. Zabbix 3.4.10 (revision 81503).
 26533:20180627:144649.189 ****** Enabled features ******
 26533:20180627:144649.189 SNMP monitoring:           YES
 26533:20180627:144649.189 IPMI monitoring:            NO
 26533:20180627:144649.189 Web monitoring:            YES
 26533:20180627:144649.189 VMware monitoring:          NO
 26533:20180627:144649.189 SMTP authentication:        NO
 26533:20180627:144649.189 Jabber notifications:       NO
 26533:20180627:144649.189 Ez Texting notifications:  YES
 26533:20180627:144649.189 ODBC:                       NO
 26533:20180627:144649.189 SSH2 support:               NO
 26533:20180627:144649.189 IPv6 support:               NO
 26533:20180627:144649.189 TLS support:                NO
 26533:20180627:144649.189 ******************************
 26533:20180627:144649.189 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf
 26533:20180627:144649.194 current database version (mandatory/optional): 03040000/03040007
 26533:20180627:144649.194 required mandatory version: 03040000
 26533:20180627:144649.203 server #0 started [main process]
 26535:20180627:144649.208 server #2 started [alerter #1]
 26536:20180627:144649.208 server #3 started [alerter #2]
 26537:20180627:144649.208 server #4 started [alerter #3]
 26538:20180627:144649.209 server #5 started [housekeeper #1]
 26539:20180627:144649.209 server #6 started [timer #1]
 26540:20180627:144649.306 server #7 started [http poller #1]
 26541:20180627:144649.309 server #8 started [discoverer #1]
 26542:20180627:144649.310 server #9 started [history syncer #1]
 26543:20180627:144649.312 server #10 started [history syncer #2]
 26544:20180627:144649.315 server #11 started [history syncer #3]
 26545:20180627:144649.318 server #12 started [history syncer #4]
 26546:20180627:144649.319 server #13 started [escalator #1]
 26547:20180627:144649.320 server #14 started [proxy poller #1]
 26548:20180627:144649.321 server #15 started [self-monitoring #1]
 26549:20180627:144649.323 server #16 started [task manager #1]
 26550:20180627:144649.325 server #17 started [poller #1]
 26551:20180627:144649.326 server #18 started [poller #2]
 26554:20180627:144649.334 server #21 started [poller #5]
 26553:20180627:144649.336 server #20 started [poller #4]
 26534:20180627:144649.338 server #1 started [configuration syncer #1]
 26555:20180627:144649.339 server #22 started [unreachable poller #1]
 26558:20180627:144649.348 server #25 started [trapper #3]
 26557:20180627:144649.348 server #24 started [trapper #2]
 26560:20180627:144649.349 server #27 started [trapper #5]
 26559:20180627:144649.349 server #26 started [trapper #4]
 26561:20180627:144649.350 server #28 started [icmp pinger #1]
 26563:20180627:144649.351 server #30 started [preprocessing manager #1]
 26562:20180627:144649.358 server #29 started [alert manager #1]
 26552:20180627:144649.371 server #19 started [poller #3]
 26556:20180627:144649.416 server #23 started [trapper #1]
 26565:20180627:144649.417 server #32 started [preprocessing worker #2]
 26564:20180627:144649.446 server #31 started [preprocessing worker #1]
 26566:20180627:144649.447 server #33 started [preprocessing worker #3]
 26556:20180627:144737.648 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored
 26556:20180627:144937.695 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored
 26556:20180627:145137.740 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored
 26556:20180627:145337.806 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored
 26556:20180627:145537.914 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored

上述打印的日志信息并没有之前的错误信息,则说明是zabbix是启动成功了

查看zabbix启动的进程是否存在如下:

[[email protected] ~]# ps -ef|grep zabbix_server
root      26416   3548  0 14:32 pts/1    00:00:00 tail -100f /tmp/zabbix_server.log
zabbix    26533      1  0 14:46 ?           00:00:00 /usr/local/zabbix/sbin/zabbix_server --显示进程
zabbix    26534  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: configuration syncer [synced configuration in 0.004973 sec, idle 60 sec]
zabbix    26535  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: alerter #1 started
zabbix    26536  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: alerter #2 started
zabbix    26537  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: alerter #3 started
zabbix    26538  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
zabbix    26539  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000008 sec, 0 maintenances in 0.000659 sec, idle 30 sec]
zabbix    26540  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: http poller #1 [got 0 values in 0.000648 sec, idle 5 sec]
zabbix    26541  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000330 sec, idle 60 sec]
zabbix    26542  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000001 sec, idle 1 sec]
zabbix    26543  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000001 sec, idle 1 sec]
zabbix    26544  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: history syncer #3 [synced 0 items in 0.000001 sec, idle 1 sec]
zabbix    26545  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000001 sec, idle 1 sec]
zabbix    26546  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000497 sec, idle 3 sec]
zabbix    26547  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000002 sec, idle 5 sec]
zabbix    26548  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: self-monitoring [processed data in 0.000004 sec, idle 1 sec]
zabbix    26549  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000251 sec, idle 5 sec]
zabbix    26550  26533  0 14:46 ?        00:00:00 /usr/local/zabbix/sbin/zabbix_server: poller #1 [got 0 values in 0.000002 sec, idle 5 sec]

原文地址:http://blog.51cto.com/xiaocao13140/2133257

时间: 2024-10-30 14:23:36

zabbix‘ failed: [1044] Access denied for user ‘zab的相关文章

【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)

前面安装的我就不说了,度娘上的很多: 关键是这个问题,网上的比较多,但是没有发现有用的: 问题:zabbix server is runing No 日志:/tmp/zabbix_server.log connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO) 解决过程: 1)找到安装目录: [[email protected] init

[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

在配置了zabbix服务端后,发现:"zabbix server is running"的Value值是"no", 用:netstat -atnlp|grep 10051 发现没有出现zabbix_server的10051端口.在网上找了很多办法,发现都不管用. 通过查看日志看到如下错误提示: tail /tmp/zabbix_server.log 解决方法: 用root帐号登录mysql 然后执行: mysql> grant all on zabbix.*

一看便知linux下mysql报错ERROR 1044: Access denied for user: '@localhost' to database 'mysql'

错误信息:ERROR 1044: Access denied for user: '@localhost' to database 'mysql' linux下解决方案: mysql> use mysql ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql' mysql> exit Bye [[email protected] ~]# service mysqld stop如果该命令不

mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)'

就当作自己忘记Mysql密码把,忘记密码的解决方法 一.mysql登录错误mysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'root'@'localhost' (using password: YES)'无法修改密码用 service mysqld stopmysqld_safe --skip-grant-tables &输入 mysql -uroot -p 回车进入>use

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

在进行Mysql备份的时候: sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date '+%Y%m%d%H%M%S'`.log 出现下面的错误提示: Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Pl

[解决] Error Code: 1044. Access denied for user 'root'@'%' to database

今天在测试集群用的mysql上,遇到个权限的问题: SQLException : SQL state: 42000 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'root'@'%' to database 'ranger' ErrorCode: 1044 我是以root用户登录mysql的,怎么还会遇到这问题呢,有点猫腻,我查看了下mysql下user表的各用户的权限信息 my

ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。

问题描述:新买的服务器,刚安装了mysql,创建了一个用户,也忘记了给他分配了什么权限,今天在建库的时候出现了这个问题. 出错原因:度娘告诉我是因为songyan用户没有建库的权限报的错. 解决: (1)登陆mysql mysql -u root -p (2)分配权限 GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;  ERROR 1044: Access denie

Error Code: 1044. Access denied for user 'root'@'%' to database

mysql> SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user; +--------------+---------+-------------------------------------------+------------+------------+ | host | user | password | Grant_priv | Super_priv | +--------------+---------+--

【转载】 ERROR 1045 (28000): Access denied for user [email protected] (using password: NO)

来自:http://www.jb51.net/LINUXjishu/10981.html 错误描述: Mysql中添加用户之后可能出现登录时提示ERROR 1045 (28000): Access denied for user的错误.删除user.user中值为NULL的,或更新NULL为test 1)delete from user where user is NULL 2)update user set user='test' where user is NULL.意外的情况: 如果上述方