- 论坛徽章:
- 0
|
我的配置文件是:
- # cat etc/switches/hqcore1.cfg
- define host {
- host_name HQ-Core1
- alias 3COM 5500-EI
- address 192.168.0.1
- contact_groups Core-Switches
- check_command check-host-alive
- max_check_attempts 5
- notification_interval 3
- notification_period 24x7
- notification_options d,u,r
- }
复制代码
检查配置文件总出错,郁闷:
- # nagios -v switches/hqcore1.cfg
- Nagios 3.0.6
- Copyright (c) 1999-2008 Ethan Galstad ([url]http://www.nagios.org[/url])
- Last Modified: 12-01-2008
- License: GPL
- Reading configuration data...
- Error in configuration file '/usr/local/nagios/etc/switches/hqcore1.cfg' - Line 1 (NULL value)
- ***> The name of the main configuration file looks suspicious...
- Make sure you are specifying the name of the MAIN configuration file on
- the command line and not the name of another configuration file. The
- main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
- ***> 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.
复制代码 |
|