Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2008 13:23:09 +0200
From:      Randy Bush <randy@psg.com>
To:        Jarrod Sayers <jarrod@netleader.com.au>
Cc:        freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: nagios: Error: Host 'foo' has already been defined
Message-ID:  <4828289D.4000205@psg.com>
In-Reply-To: <F8BFEFF7-2E7C-4EB1-BD92-87D6709C0745@netleader.com.au>
References:  <48282418.1090301@psg.com> <F8BFEFF7-2E7C-4EB1-BD92-87D6709C0745@netleader.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4828289D.4000205>