将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 365|回复: 1
收起左侧

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

[复制链接]
发表于 2021-9-17 15:06:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
7580:20210917:145626.898 using configuration file: /etc/zabbix/zabbix_server.conf
+ W& d7 p! _4 z9 b) W) }  7580:20210917:145626.903 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)5 }1 p3 O4 u7 k" U
  7580:20210917:145626.903 database is down: reconnecting in 10 seconds
$ R: d; k  y7 H5 B  7580:20210917:145636.904 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
3 G  B' K7 D% l1 ~( r2 X7 ]  7580:20210917:145636.904 database is down: reconnecting in 10 seconds
* a! ^; _' e/ M6 o  7580:20210917:145646.904 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
# x. o- B5 N$ x; B$ P! e2 J+ @  7580:20210917:145646.905 database is down: reconnecting in 10 seconds
6 i8 v' w+ c% a4 K: {  7580:20210917:145656.905 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)$ a+ E+ D7 o( _/ w! j( X, a
  7580:20210917:145656.905 database is down: reconnecting in 10 seconds8 M& r2 H' c7 w6 \' _$ j
  7580:20210917:145706.906 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES); }' g: R3 d1 r- n& k. l$ [0 {) a
  7580:20210917:145706.907 database is down: reconnecting in 10 seconds
" C, v. s4 h  J  7580:20210917:145716.907 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
1 F0 ]( D0 s, f# R1 P" f  7580:20210917:145716.907 database is down: reconnecting in 10 seconds2 v  I+ J' v4 `* o/ j
  7580:20210917:145726.908 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
- H# P) m' |7 ?/ [$ f. ]  7580:20210917:145726.908 database is down: reconnecting in 10 seconds
7 J, ?: X% K# H: r9 s5 D% l0 W  7580:20210917:145736.910 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'zabbix-monitor.novalocal' (using password: YES)
# B# P8 M  ]7 M# M  7580:20210917:145736.910 database is down: reconnecting in 10 seconds- t( n$ i$ R0 @
  ) Y: P! Z' h; Y# b7 Z

& t- Y$ S- n+ j4 k" ?日志一直报错,解决办法:# o! Q- N, Y1 y$ c  e' A7 U

6 S; }2 ?$ m) j1 t$ ?. m8 M0 `5 ?! [# V# `/ K% R) H
数据库添加权限:1 h9 }  v: @8 J8 J  p$ f
grant ALL PRIVILEGES on zabbix.* to "zabbix"@"zabbix-monitor.novalocal" Identified by "zabbix";' M4 s4 P1 m6 y, o
1 u7 _- B& g2 T" G! s1 ^

% w) Z' D& e3 M& \: ]. ]7 C! T
 楼主| 发表于 2021-9-17 15:09:54 | 显示全部楼层
问题解决:
) H+ u( c# f# S$ [如日志所示:6 Z3 p9 U  Y6 ^) f- P
7580:20210917:150726.962 database connection re-established
! ]: U. M1 J: N  7580:20210917:150726.963 current database version (mandatory/optional): 03040000/03040007
; j- V1 k) n) a3 q& `- H  7580:20210917:150726.963 required mandatory version: 03040000( u' N' }& }  }9 ^' Z' l
  7580:20210917:150726.979 server #0 started [main process]$ |1 W. V8 W4 G" `* J) u/ }1 g4 n$ H
  7738:20210917:150726.980 server #1 started [configuration syncer #1]
  d" t& ^! j- d+ X% p" u9 b7 s  7739:20210917:150726.980 server #2 started [alerter #1]
: M* o: x" j4 X  7740:20210917:150726.981 server #3 started [alerter #2]& z; W) [+ {/ ~* n# x1 i
  7741:20210917:150726.981 server #4 started [alerter #3]
* v# }9 M9 ^/ }0 P$ J  7742:20210917:150726.981 server #5 started [housekeeper #1]  ]' t- L: I; e- c2 D! z8 W
  7743:20210917:150726.982 server #6 started [timer #1]' N! V: h# u2 v- ]# a) b
  7744:20210917:150726.982 server #7 started [http poller #1]+ F2 h5 ?& ^; U1 Q' k) }) q4 s
  7747:20210917:150726.983 server #8 started [discoverer #1]* K( ^: ]0 _3 `1 K
  7748:20210917:150726.984 server #9 started [history syncer #1]
* q7 k9 K# Y7 h  7750:20210917:150726.985 server #10 started [history syncer #2]7 f: ~) T+ j& k! L# ]
  7751:20210917:150726.985 server #11 started [history syncer #3]; h3 U" v( f+ }5 E5 p# R
  7755:20210917:150726.986 server #13 started [escalator #1]5 T+ _" F: `. C3 I3 U* Y: W9 \/ G
  7753:20210917:150726.986 server #12 started [history syncer #4]
& A* q, |6 q$ ?+ u; l2 O3 b% u  7756:20210917:150726.986 server #14 started [proxy poller #1]) T) A* f1 i, b# D* }: M! H1 ^
  7759:20210917:150726.987 server #16 started [task manager #1]
6 E- i1 |0 f6 _. C' w/ a  7760:20210917:150726.988 server #17 started [poller #1]
/ s/ Q( l1 E6 t# q  7765:20210917:150726.990 server #21 started [poller #5]
% l$ X6 b/ ]0 Q" ?( U! }  7762:20210917:150726.990 server #18 started [poller #2]- H  s: y0 b9 F$ B) z) ^7 K
  7764:20210917:150726.990 server #20 started [poller #4]
' b/ D6 A3 w( m  7768:20210917:150726.993 server #23 started [trapper #1]8 a9 U. J' V% J& C# B' z
  7770:20210917:150726.993 server #25 started [trapper #3]
4 m$ W+ t  s: i. V  7771:20210917:150726.994 server #26 started [trapper #4]" a! H4 S' o3 |. G0 r6 t  x9 T6 Y
  7774:20210917:150726.995 server #29 started [alert manager #1]
( e. Q. O3 u7 T0 y! c0 J  7769:20210917:150726.996 server #24 started [trapper #2]: ^, ^( h  o* w5 ]; Q
  7766:20210917:150726.997 server #22 started [unreachable poller #1]
3 N( T6 D1 |3 i$ T0 p  7773:20210917:150726.997 server #28 started [icmp pinger #1]
$ }7 H) S- g& b. A  F, t' I' |0 n  7776:20210917:150726.997 server #30 started [preprocessing manager #1]  d. D- ]9 A, i8 ~8 X9 N  z
  7763:20210917:150726.998 server #19 started [poller #3]
  t6 o* f: w# L( ~+ a2 ]* G  7757:20210917:150726.999 server #15 started [self-monitoring #1]) H: E) r* M4 D) }
  7772:20210917:150726.999 server #27 started [trapper #5]7 C9 p, R- h6 Q+ w! ?
  7777:20210917:150727.093 server #31 started [preprocessing worker #1]
% t# m, H0 L7 k$ Y* y4 M: T/ g+ X' v  7778:20210917:150727.094 server #32 started [preprocessing worker #2]
* A$ S9 D1 e- A+ |% ?3 w# W4 i  7779:20210917:150727.094 server #33 started [preprocessing worker #3]* E5 c+ z  I) a* L2 H
  7760:20210917:150730.194 Zabbix agent item "system.users.num" on host "10.144.106.6" failed: first network error, wait for 15 seconds/ O- M6 V0 l+ `8 c; L9 C2 [8 O
  7762:20210917:150744.196 Zabbix agent item "agent.ping" on host "10.144.108.9" failed: first network error, wait for 15 seconds! Y' k0 N+ Q! M) O2 L, G# a& i
  7766:20210917:150830.258 temporarily disabling Zabbix agent checks on host "10.144.106.6": host unavailable& L+ ~4 h& Q: g
  7770:20210917:150835.682 cannot send list of active checks to "10.144.108.9": host [zbbix-agent] not found
( P2 E5 e9 J0 j  7766:20210917:150844.264 temporarily disabling Zabbix agent checks on host "10.144.108.9": host unavailable
& B/ b+ H5 a, X. u1 Y7 x
: q0 O% L, q1 G+ ]( f
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-11-28 19:15 , Processed in 0.043154 second(s), 22 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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