【问题标题】:Nagios - Can't access the hosts and services on nagios web interfaceNagios - 无法访问 nagios Web 界面上的主机和服务
【发布时间】:2014-12-17 16:40:47
【问题描述】:

我正在尝试安装 Nagios。我在 Amazon CentOS 上使用 AMI,它安装了 Ambari + Nagios + ...除了 Nagios 界面外一切正常。

Nagios 运行正常。 但是,当我尝试访问网络界面时,如果我点击右侧的任何链接,我总是会收到消息:

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.

我已经运行了命令 /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

我还检查了 /usr/lib/nagios/cgi/、/usr/share/nagios 和 /usr/lib64/nagios 上的权限(我的 apache 使用用户 apache 和组 nagios 运行)(一切都在nagios 组)。 我还检查了 /var/nagios/ 中的文件 status.dat 和 objects.cache。

我真的找不到问题出在哪里......有人可以帮我吗?

【问题讨论】:

  • 您是否尝试仅重新安装 nagios?
  • @Max 这似乎是我剩下的唯一解决方案。但我宁愿再找一个……
  • 好了,终于找到问题了。配置错误(即使检查成功),因为 Ambari 将某些 int 值设置为 0.5。

标签: linux centos nagios


【解决方案1】:

好的,我终于找到了问题所在。配置错误(即使检查成功),因为 Ambari 将某些 int 值设置为 0.5。 – nimporte51

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-02
    • 2012-10-09
    • 1970-01-01
    相关资源
    最近更新 更多