找回密码
 注册
查看: 4405|回复: 0

Nagios报Error: Could not read object configuration data!解决方法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-6-25 08:01:33 | 显示全部楼层 |阅读模式
Nagios报Error: Could not read object configuration data!解决方法
Error: Could not read object configuration data!
9 J/ h: l( {7 b2 k- I
Here are some things you should check in order to resolve this error:
. F) W+ A4 T; T4 @( f: r
Verify configuration options using the -v command-line option to check for errors.

1 S2 ]; L- b0 c2 ~; C8 j
Check the Nagios log file for messages relating to startup or status data errors.
- T: ^" P# X: \
Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).

" `* l) ?2 E' e
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http:[url=http://www.nagios.org][/url][url=http://www.nagios.org][/url][url=http://www.nagios.org][url=http://www.nagios.org][/url][/url][url=http://www.nagios.org][/url][url=][url=http://www.nagios.org][/url][/url][url=http://www.nagios.org][url=http://www.nagios.org][url=http://www.nagios.org][url=http://www.nagios.org]//www.nagios.org[/url][/url][/url][/url].
! S6 M2 A: y0 @/ k1 _, m
& E( V( Q8 ?8 T. v+ p" O* q$ u/ ~; o6 o7 r
检查发现没有启动nagios的后台服务导致:
% B' D: L/ L! }+ E1 I! N( S解决办法:
0 D( O, l, e# d' Y3 x" C /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg + r# y3 ]+ }8 I5 D4 a
systemctl start nagios
! o) F$ k. |2 P2 C& b# Fsystemctl status nagios
! R# J+ Q* N) r2 n2 T( d( W* T+ z9 X% H6 v; Y9 K3 d# U, m) ?1 u
0 C9 N8 R3 Y- j- Q

4 B7 [0 K" {) q# M- I5 e
9 {* ^3 k; S/ [" z3 y- o- r6 g6 e
登录界面,问题解决:8 P% i' Y0 ~5 H- c; b- z  g4 `

3 P! D6 Q$ q6 G

, O% _0 ?8 }% ]9 B6 Y
2 _5 j/ u+ X7 M# N' u* ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:05 , Processed in 0.016788 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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