Xymon Mailing List Archive search

ghostlist

list Ralph Mitchell
Tue, 27 May 2008 17:05:07 -0500
Message-Id: <user-457c477fc41e@xymon.invalid>

On Mon, May 26, 2008 at 7:30 AM, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> 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