【发布时间】:2014-01-07 01:58:51
【问题描述】:
我们在另外两台服务器上运行了 Nagios 3.2.0 的工作版本,但在这些新服务器上,我们使用 apt-get install 安装了它,但不断遇到以下问题。 权限和配置文件都是安装时的默认设置,与我们拥有的 Nagios 工作版本相比,一切似乎都是正确的......
注意:Nagios 网站正在运行,但是当我单击左侧的任何选项时,我得到了这个...
Error: Could not read object configuration data!
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.
跑步
sudo /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
给予:
...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
/var/log/nagios3/nagios.log 没有给出错误,只是一堆:
...
[1389054450] Auto-save of retention data completed successfully.
[1389058050] Auto-save of retention data completed successfully.
不是权限问题,要么尝试将所有内容更改为 nagios 用户和组,但没有运气:
drwxr-xr-x 4 root root 4096 2013-12-10 16:35 .
drwxr-xr-x 141 root root 12288 2014-01-06 16:27 ..
-rw-r--r-- 1 root root 1905 2011-06-08 01:07 apache2.conf
-rw-r--r-- 1 root root 12218 2011-06-08 01:08 cgi.cfg
-rw-r--r-- 1 root root 2441 2011-06-08 01:08 commands.cfg
drwxr-xr-x 2 root root 4096 2013-12-10 16:35 conf.d
-rw-r--r-- 1 root root 26 2013-12-10 16:35 htpasswd.users
-rw-r--r-- 1 root root 43769 2011-06-08 01:08 nagios.cfg
-rw-r----- 1 root nagios 1293 2011-06-08 01:07 resource.cfg
drwxr-xr-x 2 root root 4096 2013-12-10 16:35 stylesheets
改回root。
停止 Nagios 并重新启动,但仍然没有。请帮忙!
【问题讨论】:
-
我没有答案 - 但我很好奇为什么有人会在 4 已经推出很长一段时间(有这么多改进)时故意使用 Nagios3,以及这是怎么回事许多发行版的默认设置(我们不维护发行版包)。只是发泄:)