当我运行以下命令时:
[root@ssbpops01 libexec]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
我收到了下一个错误:
Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
**Error: Could not open config directory '/usr/local/nagios/etc/servers' for reading.
Error processing object config files!**
***> One or more problems was encountered while processing the config files...
**Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.**
你能帮忙吗?
答案 0 :(得分:2)
/ usr / local / nagios / etc / servers 不存在。创建目录或在 /usr/local/nagios/etc/nagios.cfg 中找到该行:
cfg_dir=/usr/local/nagios/etc/servers
并评论它:
#cfg_dir=/usr/local/nagios/etc/servers