找回密码
 注册
查看: 4406|回复: 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!
  ~, U! e7 Q. ~; K5 P7 u
Here are some things you should check in order to resolve this error:

, }: x6 C: L$ R+ m) t& e; S
Verify configuration options using the -v command-line option to check for errors.
* B5 b7 x  S! T# J; ^" S9 A2 |
Check the Nagios log file for messages relating to startup or status data errors.
" M. C7 c$ w4 G3 K% |' K7 C
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).

+ o- ^9 ^# V" A* {6 y6 Y2 F! t
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].! G5 _  y0 t# O3 C5 I

! z2 s( [" p5 p: \; z8 ?* N: {' g; M) j0 s' X' m, h- o( S
检查发现没有启动nagios的后台服务导致:
9 j* o( ~, P9 e8 q! B  m解决办法:0 U& |# u9 }# [
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg   {& A6 y6 O( @* u% D0 F, \1 q/ z
systemctl start nagios
  [8 @' n6 ^- m5 }; M! [8 G3 Ssystemctl status nagios" K3 k! z1 z1 ?6 A: _1 a
3 |. x  x+ f" y6 L
: @$ h, ?) r# ~& ]7 ]1 F6 Q

2 A: d; b% F' h5 S- x+ e0 c4 D/ V

+ |+ b/ q# p) P6 i& ~: @- M2 {登录界面,问题解决:
' U# Q( c5 `, h$ x6 B' N. V' d$ B. V! j4 @
: {5 Z- C6 F4 p! |) ?3 u, w  E

  R& X& V" N1 L) U* t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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