首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Nagios /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
EN

Stack Overflow用户
提问于 2014-11-27 09:29:58
回答 1查看 8.2K关注 0票数 1

当我运行以下命令时:

代码语言:javascript
复制
[root@ssbpops01 libexec]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 

我发现了下一个错误:

代码语言:javascript
复制
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.** 

你能帮忙吗?

EN

回答 1

Stack Overflow用户

发布于 2014-11-27 11:19:46

/usr/local/nagios/etc/servers不存在。在/usr/local/nagios/etc/nagios.cfg中创建目录或找到行

代码语言:javascript
复制
cfg_dir=/usr/local/nagios/etc/servers

并对此发表评论:

代码语言:javascript
复制
#cfg_dir=/usr/local/nagios/etc/servers
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27167145

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档