Chinaunix

标题: nagios报错 [打印本页]

作者: niandun    时间: 2014-06-06 16:58
标题: nagios报错
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.3
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-30-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/nagios/etc/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/nagios.cfg'...
Error: Unexpected token or statement in file '/usr/local/nagios/etc/nagios.cfg' on line 19.
   Error processing object config files!
                                                    这第19行就是第一行,我把第一行注释掉,就从第二行报错


***> 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.
作者: stupid_lee    时间: 2014-06-07 00:39
回复 1# niandun

把你配置文件贴出来 19行附近的


   
作者: action08    时间: 2014-06-07 15:46
Error: Unexpected token or statement in file '/usr/local/nagios/etc/nagios.cfg' on line 19.


你用的什么配置文件啊??不是有默认的么??




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2