请教,nagios配置文件报错
Website: http://www.nagios.orgReading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios//etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/windows.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/localhost.cfg'...
Processing object config file '/usr/local/nagios//etc/objects/windows.cfg'...
Warning: Duplicate definition found for host 'hehe' (config file '/usr/local/nagios//etc/objects/windows.cfg', starting on line 25)
Error: Could not add object property in file '/usr/local/nagios//etc/objects/windows.cfg' on line 27.
Error processing object config files!
配置文件是这样# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation
define host{#25行
use windows-server
host_name hehe#27行
alias myhehe
address 192.168.18.130
}
Duplicate definition found for host 'hehe'
重复定义了,在你的配置文件中多次出现定义是不行的,你查一下看
报错是第二处定义 重复定义hehe了,你在配置文件所在目录下grep hehe *看看
页:
[1]