2014-11-27 3 views
1
나는 다음과 같은 명령을 실행 해요

:Nagios는/usr/지방/Nagios는/빈/Nagios는 -v /usr/local/nagios/etc/nagios.cfg

[[email protected] 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.** 

도와 주실 수 있습니까?

답변

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 
+0

그것은 내 문제를 해결했습니다. 공유해 주셔서 감사합니다. –