找回密码
 注册
查看: 4407|回复: 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!
5 @5 R2 c5 b/ i
Here are some things you should check in order to resolve this error:

! K1 O8 X1 n: b! I! j, M0 @
Verify configuration options using the -v command-line option to check for errors.
9 V( s% w4 K4 r/ Z6 ]4 ?- C
Check the Nagios log file for messages relating to startup or status data errors.

( ?7 l3 B1 S. U0 t$ c9 o5 {: x. T! g
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).
; Y" ^* L" O# S) Z# y" v) ~. s
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].
0 H. @" o, q1 W3 \
! I7 w  f- c0 \+ W0 D# ]$ `# z" z1 H4 X% z  Y+ V8 y( m" T+ z
检查发现没有启动nagios的后台服务导致:5 u- t# S1 m" z5 P. D. K) @
解决办法:5 S% {  w8 W, ]
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
" h4 K2 \7 R0 O0 {+ J9 asystemctl start nagios0 P5 N7 G& C) a1 E0 m1 M
systemctl status nagios
+ B8 b" G# A- E: l5 r* c  u8 R4 j8 K0 g
1 H, U5 l9 E3 t9 J& L

6 v( [* p* R% v2 x7 d! L
+ U( Q7 k* w3 m3 p
登录界面,问题解决:. |6 \& ^9 E# R9 C
2 y$ K% s1 t; J* q
0 l# I' n2 \- w2 N0 o

4 K% L2 N7 G& B# e8 W( L
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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