找回密码
 注册
查看: 1951|回复: 1

zabbix界面上无数据日志报错connection to database 'zabbix' failed:

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-9-17 15:06:04 | 显示全部楼层 |阅读模式
7580:20210917:145626.898 using configuration file: /etc/zabbix/zabbix_server.conf
0 f$ [  \- e* f: j# R+ l  7580:20210917:145626.903 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
: _0 k% A$ a/ c  7580:20210917:145626.903 database is down: reconnecting in 10 seconds
* D6 s! F, a! {9 W! f' s* z* G  7580:20210917:145636.904 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
8 w) ?+ [$ y5 B9 ^3 w  7580:20210917:145636.904 database is down: reconnecting in 10 seconds  j( C0 u+ n4 R2 I  g
  7580:20210917:145646.904 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
; Y- i1 ]0 W8 m: q! M% [* V& J& S  7580:20210917:145646.905 database is down: reconnecting in 10 seconds6 O1 r9 W. X2 H, c* |  I5 u* z( d' O
  7580:20210917:145656.905 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)4 A3 K! E: T  E: m0 d
  7580:20210917:145656.905 database is down: reconnecting in 10 seconds% `( [; o, Z8 m% o7 S6 r$ X2 o6 X% }
  7580:20210917:145706.906 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
5 ?( t! m1 W" r: f% I0 h4 F8 A( G  7580:20210917:145706.907 database is down: reconnecting in 10 seconds' n8 C1 u* M4 S' d6 R5 L! W1 a
  7580:20210917:145716.907 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)" J# k+ V' H; G% W9 d6 ~' [# \
  7580:20210917:145716.907 database is down: reconnecting in 10 seconds
% W) T* _' W* T; j' ^2 I4 F  7580:20210917:145726.908 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
* V4 E3 O1 I7 Q  7580:20210917:145726.908 database is down: reconnecting in 10 seconds: H2 M+ S  f& s  T4 ~$ ?9 g5 S
  7580:20210917:145736.910 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)! y7 x3 A5 K9 f7 a; C0 M0 u
  7580:20210917:145736.910 database is down: reconnecting in 10 seconds1 l4 i. Z1 [. l! d& ?6 R. u! A
  
1 P7 e  C0 u* y& x/ g0 q- w% E4 r7 D1 z+ N: L. n
日志一直报错,解决办法:
2 U9 r3 U6 n+ b# e- z! k! v: h7 x; @: x- I2 V5 T
* L* z5 d6 a( s; H3 g' v! C
数据库添加权限:
; H9 R! h; r. ^, ^" U) rgrant ALL PRIVILEGES on zabbix.* to "zabbix"@"zabbix-monitor.novalocal" Identified by "zabbix";
. I" u. h1 i) Q1 ~. s5 j7 p! t8 [
( o1 r, G1 G7 v7 @2 |/ ]
! S1 m# G# ^4 H

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-9-17 15:09:54 | 显示全部楼层
问题解决:
4 m' l) V$ T- I2 v如日志所示:0 N0 w$ P- S. x& B. e& s4 r& `6 |* H+ [
7580:20210917:150726.962 database connection re-established# R) q6 q1 n/ d# c: D
  7580:20210917:150726.963 current database version (mandatory/optional): 03040000/03040007
- l, O! ?- E% ?( a6 Y0 M% u  7580:20210917:150726.963 required mandatory version: 03040000
/ w7 J9 Z7 w+ O  7580:20210917:150726.979 server #0 started [main process]+ l8 s0 g) H4 x# [! ^5 a
  7738:20210917:150726.980 server #1 started [configuration syncer #1]
8 x( x' a' u: @, G/ ]+ c  7739:20210917:150726.980 server #2 started [alerter #1]" {0 k6 G  ^) m$ H+ B: H
  7740:20210917:150726.981 server #3 started [alerter #2]
9 O5 F3 ]- S7 Y  7741:20210917:150726.981 server #4 started [alerter #3]
7 x& r/ b, R& w- s& ?7 s  N  7742:20210917:150726.981 server #5 started [housekeeper #1]
0 n% V+ x4 W/ W4 G  x: W: J  7743:20210917:150726.982 server #6 started [timer #1]
4 X/ I( B) u9 L+ W. x" j/ ^( u6 U2 ]  7744:20210917:150726.982 server #7 started [http poller #1]
1 ^  O/ V' j( q! J2 W. a  7747:20210917:150726.983 server #8 started [discoverer #1]
% A' v. k3 Y+ `7 S+ C' F" g  7748:20210917:150726.984 server #9 started [history syncer #1]
" F. n/ @2 d! z* ?( I1 ?  7750:20210917:150726.985 server #10 started [history syncer #2]4 W6 E8 s6 }. _
  7751:20210917:150726.985 server #11 started [history syncer #3]
2 f& V0 {6 M+ W  7755:20210917:150726.986 server #13 started [escalator #1]
5 j" B9 t. C( }, r- Z  7753:20210917:150726.986 server #12 started [history syncer #4]
3 S* [  Y/ A& D, F: a# ~+ s. I( \  7756:20210917:150726.986 server #14 started [proxy poller #1]
" ^9 x. j, H; c/ Y  7759:20210917:150726.987 server #16 started [task manager #1]
- \: {' o0 b. ~" `* z  7760:20210917:150726.988 server #17 started [poller #1]
- q& W+ c9 A/ [. |% Z" b, O+ k  7765:20210917:150726.990 server #21 started [poller #5]
1 b7 j6 Q: S) O+ q- H  7762:20210917:150726.990 server #18 started [poller #2]
2 T* {5 s% L) m, m( ^* s3 |  7764:20210917:150726.990 server #20 started [poller #4]3 D& A9 E: j6 f" u  i1 I
  7768:20210917:150726.993 server #23 started [trapper #1]
7 ~- Z: F/ d3 \  K9 p  7770:20210917:150726.993 server #25 started [trapper #3]/ d. ^  n& |% |! v( f
  7771:20210917:150726.994 server #26 started [trapper #4]
- T+ ^6 j6 w' T( X2 l' G, K: n5 T# P  7774:20210917:150726.995 server #29 started [alert manager #1]
4 d6 ]7 ~5 ^6 {3 U9 J, x2 B  7769:20210917:150726.996 server #24 started [trapper #2]
: q: r$ [8 x, S+ ^" F7 n- x8 n6 B  7766:20210917:150726.997 server #22 started [unreachable poller #1]
/ K1 _: S. n  Y( k  7773:20210917:150726.997 server #28 started [icmp pinger #1]
) F" N; G4 R5 s& j2 H1 E6 o  7776:20210917:150726.997 server #30 started [preprocessing manager #1]" I1 D( U  d3 r1 C
  7763:20210917:150726.998 server #19 started [poller #3]' |- y/ {; \" B5 e
  7757:20210917:150726.999 server #15 started [self-monitoring #1]! a8 m3 S/ U/ q
  7772:20210917:150726.999 server #27 started [trapper #5]
# C: {9 r6 k7 w, J& E3 Q  C0 V  7777:20210917:150727.093 server #31 started [preprocessing worker #1]
  C8 }3 L1 O; }! u7 h* v% J# ~  7778:20210917:150727.094 server #32 started [preprocessing worker #2]
* O& ~2 C! _+ e/ _+ P6 k  7779:20210917:150727.094 server #33 started [preprocessing worker #3]
5 o9 [% }! [) p  7760:20210917:150730.194 Zabbix agent item "system.users.num" on host "10.144.106.6" failed: first network error, wait for 15 seconds
$ m# T; Z, l3 c8 g3 b! \  7762:20210917:150744.196 Zabbix agent item "agent.ping" on host "10.144.108.9" failed: first network error, wait for 15 seconds
- X- R1 @! K4 n. Z  7766:20210917:150830.258 temporarily disabling Zabbix agent checks on host "10.144.106.6": host unavailable
# E: N2 w; X# X, ?  7770:20210917:150835.682 cannot send list of active checks to "10.144.108.9": host [zbbix-agent] not found
8 C" V& G1 D. d  l/ S# s  7766:20210917:150844.264 temporarily disabling Zabbix agent checks on host "10.144.108.9": host unavailable
! Q2 f0 S/ w0 l5 Q( G
/ \2 {! q' |$ `" I0 ]! r5 l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:20 , Processed in 0.015834 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表