From owner-freebsd-ports@FreeBSD.ORG Mon May 12 11:23:12 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00AF41065670 for ; Mon, 12 May 2008 11:23:12 +0000 (UTC) (envelope-from randy@psg.com) Received: from rip.psg.com (rip.psg.com [IPv6:2001:418:1::39]) by mx1.freebsd.org (Postfix) with ESMTP id DCCAA8FC19 for ; Mon, 12 May 2008 11:23:11 +0000 (UTC) (envelope-from randy@psg.com) Received: from gob75-4-82-226-175-57.fbx.proxad.net ([82.226.175.57] helo=rmac.psg.com) by rip.psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JvW7b-0005wM-2p; Mon, 12 May 2008 11:23:11 +0000 Message-ID: <4828289D.4000205@psg.com> Date: Mon, 12 May 2008 13:23:09 +0200 From: Randy Bush User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Jarrod Sayers References: <48282418.1090301@psg.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd ports Subject: Re: nagios: Error: Host 'foo' has already been defined X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 11:23:12 -0000 > Did this include an upgrade of Nagios or has the upgrade of a dependent > resulted in this? not sure > Starting on line 1, hmm... Sounds like the files are being read twice, > what does nagios.cfg have to say for itself? # grep cfg nagios.cfg | grep -v ^# cfg_file=/usr/local/etc/nagios/commands.cfg cfg_file=/usr/local/etc/nagios/localhost.cfg cfg_file=/usr/local/etc/nagios/contactgroups.cfg cfg_file=/usr/local/etc/nagios/contacts.cfg cfg_file=/usr/local/etc/nagios/hostgroups.cfg cfg_file=/usr/local/etc/nagios/routergroups.cfg cfg_dir=/usr/local/etc/nagios/commands cfg_dir=/usr/local/etc/nagios/servers cfg_dir=/usr/local/etc/nagios/servers/randy cfg_dir=/usr/local/etc/nagios/servers/smb cfg_dir=/usr/local/etc/nagios/routers resource_file=/usr/local/etc/nagios/resource.cfg and you already saw # find . -name \*cfg | xargs grep bbgp ./hostgroups.cfg: members adlrv,bbgp,ron,ver0 ./servers/randy/bbgp.psg.com.cfg: host_name bbgp ./servers/randy/bbgp.psg.com.cfg: alias bbgp.psg.com ./servers/randy/bbgp.psg.com.cfg: host_name bbgp randy