nagios: Error: Host 'foo' has already been defined

Jarrod Sayers jarrod at netleader.com.au
Mon May 12 11:53:31 UTC 2008


On 12/05/2008, at 8:33 PM, Randy Bush wrote:
> i386, very current
> nagios 2.11
>
> after portupgrade, a nagios which used to work fine now does

Did this include an upgrade of Nagios or has the upgrade of a  
dependent resulted in this?

> # /usr/local/etc/rc.d/nagios start
> Performing sanity check of nagios configuration: FAILED
>
> Nagios 2.11
> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
> Last Modified: 03-12-2008
> License: GPL
>
> Reading configuration data...
>
> Error: Host 'bbgp' has already been defined
> Error: Could not register host (config file
> '/usr/local/etc/nagios/servers/randy/bbgp.psg.com.cfg', starting on  
> line 1)

Starting on line 1, hmm...  Sounds like the files are being read  
twice, what does nagios.cfg have to say for itself?

Jarrod.
(net-mgmt/nagios maintainer)


More information about the freebsd-ports mailing list