Am 04/27/2011 04:29 PM, schrieb Wolfgang:
>
>> /usr/sbin/icnga -v  /etc/icinga/icinga.cfg
>>
>> I am getting this:
>> Warning: Duplicate definition found for host
>> 'linksys-srw224p' (config file
>> '/etc/icinga/objects/switches/switch.cfg', starting on line 22)
>> Error: Could not add object property in file
>> '/etc/icinga/objects/switches/switch.cfg' on line 24.
>>      Error processing object config files!
>>
>> Remeber: This is the very original file and I cannot see and
>> duplicates in the file nor in icinga.cfg
>>
>> Thanks for any hints how to deal with this error and proceed
>>
>> Eberhard
> It seems that switch.cfg is included twice. Maybe you have one 
> cfg_file=.../switch.cfg entry and one cfg_dir=/etc/icinga/objects entry. 
> Remove the cfg_file entry and reverify your config.
>
Thank you!
I am afraid, this is not the case:
in icinga.cfg, there is just ONE switch.cfg entry and this 
is the cfg_dir where switch.cfg resides.

I now moved the directory from where it was 
"/etc/icinga/objects/switches/" up to /etc/icinga/switches
The etc/icinga directory is where the other existing cfg_dir 
entries in iciinga.cfg are pointing to. Then I adapted the 
cfg_dir entry to reflect the new location.
And:
miraculously, it works now!

I have no clue, what happens here. Anyone?

Thanks again and kind regards
Eberhard

Thanks much for your help

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to