简体   繁体   English

Nagios-无法访问Nagios Web界面上的主机和服务

[英]Nagios - Can't access the hosts and services on nagios web interface

I'm trying to install Nagios. 我正在尝试安装Nagios。 I'm using an AMI on Amazon CentOS which installs Ambari + Nagios + ... Everything works fine except Nagios interface. 我在安装Ambari + Nagios +的Amazon CentOS上使用AMI。

Nagios is running without any trouble. Nagios运行正常。 But, when I try to access to the web interface, if I go on any link on the right, I always get the message : 但是,当我尝试访问Web界面时,如果单击右侧的任何链接,则始终会收到以下消息:

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
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://www.nagios.org.

I've runned the command /usr/sbin/nagios -v /etc/nagios/nagios.cfg 我已经运行了/ usr / sbin / nagios -v /etc/nagios/nagios.cfg命令

...
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 2
Total Errors:   0

I've also checked the permissions (my apache is running with user apache and group nagios) on /usr/lib/nagios/cgi/, /usr/share/nagios and /usr/lib64/nagios (everything is in the group nagios). 我还检查了/ usr / lib / nagios / cgi /,/ usr / share / nagios和/ usr / lib64 / nagios上的权限(我的apache与用户apache和nagios组一起运行)(一切都在nagios组中) )。 I've also checked the files status.dat and objects.cache in /var/nagios/ . 我还检查了/ var / nagios /中的文件status.dat和objects.cache。

I really can't find where's the problem... Can somebody help me plz ? 我真的找不到问题所在...有人可以帮助我吗?

Ok, I finally found the problem. 好的,我终于找到了问题。 The config was wrong (even if the check succeeded) because some int values are set with 0.5 by Ambari. 配置错误(即使检查成功),因为Ambari将某些int值设置为0.5。 – nimporte51 – nimporte51

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM