[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] ghostlist
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] ghostlist
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Tue, 27 May 2008 17:05:07 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=9dX/LVGvZdgKsJ3zSqQbsCbLPakkymNYgVPk5VLCKns=; b=ptISA5pg4HzHsR+hkT2RtG0XEeF/H6i856n0d0K5ZT5Rj/5onjVBZ3q5o2zBG0XVxZveJzxXqHeRLVzSf8PEKc7DPaonP5cVJ9rcvXGs5sR9mwB5mt6P+9chLjDd0Y7lmIYM/7bzARqQYNl/Rl9DEGG5SsxOmMFeP0SyUJh7zPk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RIjWVbCPWG4OblTqHJOeJ3KnVwLsU5Vk1Zmn0YrcTWA/SW54MtoVd0sLnZQ+SMxEG+vhQurkAPZhI/dmD7rXyqtFCBVL1+mRGoq9x5mHq38TEGi74sxqYVwBLxgm9bvi+R/FdbxAFzVwuOK5VmpOtb3HDcNH+iH46Db+1sKE/b8=
- References: <258e9b160805230706q6b8e7705mc48b853f11c670d9 (at) mail.gmail.com> <20080526123045.GA14719 (at) hswn.dk>
On Mon, May 26, 2008 at 7:30 AM, Henrik Stoerner <henrik (at) hswn.dk> wrote:
> On Fri, May 23, 2008 at 10:06:59PM +0800, Phil Wild wrote:
> > I am trying to use the output received from hobbitd when issuing the bb
> > ghostlist command. The command reports correctly, but after modifying the
> > bb-hosts file, ghostlist continues to report ghosts. I need to do a full
> > restart of hobbit to get hobbitd reporting correctly.
>
> hobbitd reloads the bb-hosts file every 10 minutes, or if you send a HUP
> signal to the hobbitd process. Hosts will remain on the ghostlist until
> no reports have been received with ghost hostname for 10 minutes.
>
> So if you have a ghost reporting at 12:00, and you modify the bb-hosts
> file at 12:01, then the host reports again at 12:05, the bb-hosts file
> is reloaded at 12:11, and the ghost entry expires at 12:15. So it may
> take up to 15 minutes before the ghostlist entry disappears.
>
> > I started digging through the source tonight but I have to admit that I
> just
> > can't understand C well enough. hobbitd knows the bb-hosts file has been
> > updated because the host appears on the webpage, but ghostlist still
> reports
> > it incorrectly.
>
> Note: the fact that the host appears on the webpage does NOT mean
> hobbitd knows about it. The webpage is generated by another task, and
> until hobbitd learns about the new hostname, it will just show up
> with no status columns.
>
I did this just one time:
server/bin/bb localhost "status server,domain,com.bogus green `date`"
server.domain.com has never have existed in my bb-hosts file. It showed up
in the Ghost Clients web page for 5 minutes. It also showed up in the
ghostlist generated via this command:
server/bin/bb localhost ghostlist
Several days later, the above command was still showing this:
server.domain.com|127.0.0.1|1211218983
This was with the Jan 25 2008 4.3.0 snapshot.
Ralph Mitchell