-------- Original-Nachricht --------
> Datum: Wed, 27 Apr 2011 13:50:41 +0200
> Von: Eberhard Roloff <tux...@gmx.de>
> An: icinga-users@lists.sourceforge.net
> Betreff: [icinga-users] icinga from backports does not accept switch.cfg

> Hi,
> I installed Icinga on Debian Squeeze from Backports.
> 
> The server is running well and monitors localhost.
> Now I am trying to add a switch to be monitored.
> As this does only results in strange errors and icinga 
> refusing to start up. I used the very original sample file
> that comes with icinga. For a start, I did not do any 
> modification to the file and still, when doing
> 
> /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.

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!                       
Jetzt informieren: http://www.gmx.net/de/go/freephone

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