gpt4 book ai didi

linux - nagios/usr/local/nagios/bin/nagios -v/usr/local/nagios/etc/nagios.cfg

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:17:59 26 4
gpt4 key购买 nike

当我运行以下命令时:

[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.**

你能帮忙吗?

最佳答案

/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

关于linux - nagios/usr/local/nagios/bin/nagios -v/usr/local/nagios/etc/nagios.cfg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27167145/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com