Xymon Mailing List Archive search

ghostlist

18 messages in this thread

list Phil Wild · Mon, 19 May 2008 21:53:25 +0800 ·
Hi,

I asked this yesterday but without response so I'll try a different way.

How does one remove a server from the ghostlist? I expected that all I would
need to do is add it to the bb-hosts file but it continues to show up (using
bb 127.0.0.1 ghostlist)

A restart seems to work but there must be a better answer...

Many thanks

Phil

-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Josh Luthman · Mon, 19 May 2008 11:11:26 -0400 ·
I use the Hobbit Admintools
quoted from Phil Wild

On Mon, May 19, 2008 at 9:53 AM, Phil Wild <user-e365c1418192@xymon.invalid> wrote:
Hi,

I asked this yesterday but without response so I'll try a different way.

How does one remove a server from the ghostlist? I expected that all I
would need to do is add it to the bb-hosts file but it continues to show up
(using bb 127.0.0.1 ghostlist)

A restart seems to work but there must be a better answer...

Many thanks

Phil

--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Hobbit User in Richmond · Mon, 19 May 2008 11:23:27 -0400 (EDT) ·
quoted from Phil Wild
On Mon, May 19, 2008 09:53, Phil Wild wrote:
Hi,

I asked this yesterday but without response so I'll try a different way.

How does one remove a server from the ghostlist? I expected that all I
would need to do is add it to the bb-hosts file but it continues to show
up (using bb 127.0.0.1 ghostlist)

A restart seems to work but there must be a better answer...
Sending a SIGHUP (e.g. kill -1) to the hobbitd process will cause it to
re-read bb-hosts right away.  But IIRC, it will do that periodically, so
you could just wait.
list Phil Wild · Mon, 19 May 2008 23:40:18 +0800 ·
I am writing a script at the backend that will set up a ticket to
investigate the ghosts. I run the command and generate the list. When
someone makes the change to update the bb-hosts file, the ghosts are still
reported the next time the script is run. bb-hosts is automagically detected
as having changed and so hobbitlaunch reloads the things it needs to reload
(from my understanding) and I would have expected that the ghostlist would
see this too but it does not appear so. It looks like I need to force a
restart of hobbit before each execution of the script which I'm not that
happy about.

Cheers

Phil

2008/5/19 Josh Luthman <user-4c45a83f15cb@xymon.invalid>:
quoted from Josh Luthman
I use the Hobbit Admintools


On Mon, May 19, 2008 at 9:53 AM, Phil Wild <user-e365c1418192@xymon.invalid> wrote:
Hi,

I asked this yesterday but without response so I'll try a different way.

How does one remove a server from the ghostlist? I expected that all I
would need to do is add it to the bb-hosts file but it continues to show up
(using bb 127.0.0.1 ghostlist)

A restart seems to work but there must be a better answer...

Many thanks

Phil

--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Phil Wild · Tue, 20 May 2008 00:17:37 +0800 ·
Perhaps there is something wrong with my install then, I notice changes to
the bb-hosts file as they are picked up (i.e. without having to force the
change with s restart or HUP) yet I have waited over 24 hours and the output
from bb ghostlist is still reporting an entry as a ghost. A full restart of
hobbit resolves the issue.

Phil

2008/5/19 Hobbit User in Richmond <user-24d6f8323faa@xymon.invalid>:
quoted from Phil Wild
On Mon, May 19, 2008 09:53, Phil Wild wrote:
Hi,

I asked this yesterday but without response so I'll try a different way.

How does one remove a server from the ghostlist? I expected that all I
would need to do is add it to the bb-hosts file but it continues to show
up (using bb 127.0.0.1 ghostlist)

A restart seems to work but there must be a better answer...
Sending a SIGHUP (e.g. kill -1) to the hobbitd process will cause it to
re-read bb-hosts right away.  But IIRC, it will do that periodically, so
you could just wait.

-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Ralph Mitchell · Mon, 19 May 2008 11:57:09 -0500 ·
quoted from Phil Wild
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <user-e365c1418192@xymon.invalid> wrote:
Perhaps there is something wrong with my install then, I notice changes to
the bb-hosts file as they are picked up (i.e. without having to force the
change with s restart or HUP) yet I have waited over 24 hours and the output
from bb ghostlist is still reporting an entry as a ghost. A full restart of
hobbit resolves the issue.

I'm getting the same thing, though up to now it wasn't bothering me...  :)

It has been at least 3 days since I last updated my bb-hosts file to remove
a couple of systems.  I also did "bb localhost 'drop xxx'".  There's no
information left in the data directory belonging to those systems, and yet
they still show up in the ghostlist.

The removed systems also show up in the Ghost Client report in the web
page.  After 5 minutes, they disappear, then return some time later.  Even
after they drop out of the Ghost Client report, they still show up in "bb
localhost ghostlist".

This is in a test system running the Jan 25 2008 snapshot of 4.3.0.

Ralph Mitchell
list Phil Wild · Tue, 20 May 2008 01:13:00 +0800 ·
I am running 4.2 stable release with the all-in-one patch applied. Nice to
know I'm not doing anything wrong...

2008/5/20 Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>:
quoted from Phil Wild
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <user-e365c1418192@xymon.invalid> wrote:
Perhaps there is something wrong with my install then, I notice changes to
the bb-hosts file as they are picked up (i.e. without having to force the
change with s restart or HUP) yet I have waited over 24 hours and the output
from bb ghostlist is still reporting an entry as a ghost. A full restart of
hobbit resolves the issue.

I'm getting the same thing, though up to now it wasn't bothering me...  :)

It has been at least 3 days since I last updated my bb-hosts file to remove
a couple of systems.  I also did "bb localhost 'drop xxx'".  There's no
information left in the data directory belonging to those systems, and yet
they still show up in the ghostlist.

The removed systems also show up in the Ghost Client report in the web
page.  After 5 minutes, they disappear, then return some time later.  Even
after they drop out of the Ghost Client report, they still show up in "bb
localhost ghostlist".

This is in a test system running the Jan 25 2008 snapshot of 4.3.0.

Ralph Mitchell
-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Galen Johnson · Mon, 19 May 2008 13:13:18 -0400 ·
It sounds like the clients are still reporting to the server.  That's the only way I can think of that they would keep coming back.

=G=
quoted from Ralph Mitchell

From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: Monday, May 19, 2008 12:57 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] ghostlist

On Mon, May 19, 2008 at 11:17 AM, Phil Wild <user-e365c1418192@xymon.invalid<mailto:user-e365c1418192@xymon.invalid>> wrote:
Perhaps there is something wrong with my install then, I notice changes to the bb-hosts file as they are picked up (i.e. without having to force the change with s restart or HUP) yet I have waited over 24 hours and the output from bb ghostlist is still reporting an entry as a ghost. A full restart of hobbit resolves the issue.

I'm getting the same thing, though up to now it wasn't bothering me...  :)

It has been at least 3 days since I last updated my bb-hosts file to remove a couple of systems.  I also did "bb localhost 'drop xxx'".  There's no information left in the data directory belonging to those systems, and yet they still show up in the ghostlist.

The removed systems also show up in the Ghost Client report in the web page.  After 5 minutes, they disappear, then return some time later.  Even after they drop out of the Ghost Client report, they still show up in "bb localhost ghostlist".

This is in a test system running the Jan 25 2008 snapshot of 4.3.0.<http://4.3.0.>;

Ralph Mitchell
list Greg L Hubbard · Mon, 19 May 2008 12:44:43 -0500 ·
I thought "ghosts" were clients that send in data, but their name is not
a match in the bb-hosts file.  If you decide to get rid of a client, you
have to a) update bb-hosts to suspend polling, and b) update the client
so either the agent does not run, or so that it sends its data
elsewhere.
 
GLH
quoted from Ralph Mitchell


	From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
	Sent: Monday, May 19, 2008 11:57 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] ghostlist
	
	
	On Mon, May 19, 2008 at 11:17 AM, Phil Wild <user-e365c1418192@xymon.invalid>
wrote:
	

		Perhaps there is something wrong with my install then, I
notice changes to the bb-hosts file as they are picked up (i.e. without
having to force the change with s restart or HUP) yet I have waited over
24 hours and the output from bb ghostlist is still reporting an entry as
a ghost. A full restart of hobbit resolves the issue.


	I'm getting the same thing, though up to now it wasn't bothering
me...  :)
	

	It has been at least 3 days since I last updated my bb-hosts
file to remove a couple of systems.  I also did "bb localhost 'drop
xxx'".  There's no information left in the data directory belonging to
those systems, and yet they still show up in the ghostlist.  
	
	The removed systems also show up in the Ghost Client report in
the web page.  After 5 minutes, they disappear, then return some time
later.  Even after they drop out of the Ghost Client report, they still
show up in "bb localhost ghostlist".
	
	This is in a test system running the Jan 25 2008 snapshot of
4.3.0.
	
	Ralph Mitchell
list Josh Luthman · Mon, 19 May 2008 13:48:33 -0400 ·
I believe a "ghost" is where there is data/history for a host but it is not
listed on bb-hosts.

On Mon, May 19, 2008 at 1:44 PM, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid>
quoted from Greg L Hubbard
wrote:
 I thought "ghosts" were clients that send in data, but their name is not
a match in the bb-hosts file.  If you decide to get rid of a client, you
have to a) update bb-hosts to suspend polling, and b) update the client so
either the agent does not run, or so that it sends its data elsewhere.

GLH

*From:* Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
*Sent:* Monday, May 19, 2008 11:57 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] ghostlist

On Mon, May 19, 2008 at 11:17 AM, Phil Wild <user-e365c1418192@xymon.invalid> wrote:
Perhaps there is something wrong with my install then, I notice changes to
the bb-hosts file as they are picked up (i.e. without having to force the
change with s restart or HUP) yet I have waited over 24 hours and the output
from bb ghostlist is still reporting an entry as a ghost. A full restart of
hobbit resolves the issue.

I'm getting the same thing, though up to now it wasn't bothering me...  :)

It has been at least 3 days since I last updated my bb-hosts file to remove
a couple of systems.  I also did "bb localhost 'drop xxx'".  There's no
information left in the data directory belonging to those systems, and yet
they still show up in the ghostlist.

The removed systems also show up in the Ghost Client report in the web
page.  After 5 minutes, they disappear, then return some time later.  Even
after they drop out of the Ghost Client report, they still show up in "bb
localhost ghostlist".

This is in a test system running the Jan 25 2008 snapshot of 4.3.0.

Ralph Mitchell

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Ralph Mitchell · Mon, 19 May 2008 13:05:19 -0500 ·
On Mon, May 19, 2008 at 12:48 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid>
quoted from Josh Luthman
wrote:
I believe a "ghost" is where there is data/history for a host but it is not
listed on bb-hosts.


On Mon, May 19, 2008 at 1:44 PM, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid>
wrote:
 I thought "ghosts" were clients that send in data, but their name is not
a match in the bb-hosts file.  If you decide to get rid of a client, you
have to a) update bb-hosts to suspend polling, and b) update the client so
either the agent does not run, or so that it sends its data elsewhere.
In my case.  I was fooling around with the bb-stocks.sh script from
deadcat.net, running it from hobbitlaunch.cfg on the server.  It sends
reports where the hostname is the ticker symbol (e.g. IBM, MSFT, etc) and
the column name is "stock".  I let it run for a while, then marked the entry
in hobbitlaunch as DISABLED and dropped the stock names.

This morning, while reading this email thread, I went back to the script and
inserted "exit" right at the top, so it shouldn't be possible for the script
to produce a report, even if it gets launched.

The ticker symbols do *not* show up in the hobbitdboard output.  They *were*
in the data/hist/allevents file, but

     trimhistory --cutoff=`date +%s --date="19 May 2008"` --drop

took care of that.  I've confirmed via grep that the names do not appear in
any file in the Hobbit directory hierarchy.

I *do* still see the ticker symbols in  "bb localhost ghostlist", but they
don't appear in the Ghost Clients web page.

Maybe I'm missing something obvious.  Here's a quick test if you're
interested in replicating the problem:

   server/bin/bb localhost "status server,domain,com.bogus green `date`"
   server/bin/bb localhost hobbitdboard | grep server
   server/bin/bb localhost ghostlist | grep server

server.domain.com should not ever have existed in your bb-hosts file.  It
will show up in the Ghost Clients web page for 5 minutes.  45 minutes after
doing the above, it's still showing in "bb localhost ghostlist".

Ralph Mitchell
list Ralph Mitchell · Mon, 19 May 2008 15:56:47 -0500 ·
On Mon, May 19, 2008 at 1:05 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>
quoted from Ralph Mitchell
wrote:
On Mon, May 19, 2008 at 12:48 PM, Josh Luthman <
user-4c45a83f15cb@xymon.invalid> wrote:
I believe a "ghost" is where there is data/history for a host but it is
not listed on bb-hosts.


On Mon, May 19, 2008 at 1:44 PM, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid>
wrote:
 I thought "ghosts" were clients that send in data, but their name is
not a match in the bb-hosts file.  If you decide to get rid of a client, you
have to a) update bb-hosts to suspend polling, and b) update the client so
either the agent does not run, or so that it sends its data elsewhere.
In my case.  I was fooling around with the bb-stocks.sh script from
deadcat.net, running it from hobbitlaunch.cfg on the server.  It sends
reports where the hostname is the ticker symbol (e.g. IBM, MSFT, etc) and
the column name is "stock".  I let it run for a while, then marked the entry
in hobbitlaunch as DISABLED and dropped the stock names.

This morning, while reading this email thread, I went back to the script
and inserted "exit" right at the top, so it shouldn't be possible for the
script to produce a report, even if it gets launched.

The ticker symbols do *not* show up in the hobbitdboard output.  They
*were* in the data/hist/allevents file, but

     trimhistory --cutoff=`date +%s --date="19 May 2008"` --drop

took care of that.  I've confirmed via grep that the names do not appear in
any file in the Hobbit directory hierarchy.

I *do* still see the ticker symbols in  "bb localhost ghostlist", but they
don't appear in the Ghost Clients web page.

Maybe I'm missing something obvious.  Here's a quick test if you're
interested in replicating the problem:

   server/bin/bb localhost "status server,domain,com.bogus green `date`"
   server/bin/bb localhost hobbitdboard | grep server
   server/bin/bb localhost ghostlist | grep server

server.domain.com should not ever have existed in your bb-hosts file.  It
will show up in the Ghost Clients web page for 5 minutes.  45 minutes after
doing the above, it's still showing in "bb localhost ghostlist".

Ralph Mitchell

Replying to myself with an update for any interested parties:  "bb localhost
ghostlist" is still showing:

      server.domain.com|127.0.0.1|1211218983

3 hours after sending that status report just one time, manually.  The big
number after the IP address translates to the date/time the report was
sent,  "Mon May 19 12:43:03 2008".

Maybe this is a bug in the ghost handling procedures??

Ralph Mitchell
list Phil Wild · Fri, 23 May 2008 22:06:59 +0800 ·
Hi Henrik

Sorry to ask this directly, hopefully you can help me. I have asked this of
the group a couple of times but have not had a suitable answer back.

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.

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.

Is a restart the only way to resolve this? Could I HUP a process to fix it?
quoted from Phil Wild

Many thanks

Phil


-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Bill Arlofski · Fri, 23 May 2008 15:05:55 -0400 ·
Could it be that the clients are reporting as a name different than the name you have in the bb-hosts file?

If yes, then check out the CLIENT:  directive for the bb-hosts file. I have had this happen to me a couple times.
quoted from Phil Wild


Phil Wild wrote:
Hi Henrik

Sorry to ask this directly, hopefully you can help me. I have asked this of
the group a couple of times but have not had a suitable answer back.

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.

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.

Is a restart the only way to resolve this? Could I HUP a process to fix it?

Many thanks

Phil

list Phil Wild · Sat, 24 May 2008 10:39:08 +0800 ·
No, The name is the same. A full restart of hobbit resolves the issue until
a new ghost comes along. Once that is added in, the same thing happens once
again until another restart is performed.

Phil

2008/5/24 Bill Arlofski <user-0b8af203a56e@xymon.invalid>:
quoted from Bill Arlofski
Could it be that the clients are reporting as a name different than the
name you have in the bb-hosts file?

If yes, then check out the CLIENT:  directive for the bb-hosts file. I have
had this happen to me a couple times.


Phil Wild wrote:
Hi Henrik

Sorry to ask this directly, hopefully you can help me. I have asked this
of
the group a couple of times but have not had a suitable answer back.

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.

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.

Is a restart the only way to resolve this? Could I HUP a process to fix
it?

Many thanks

Phil

-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Henrik Størner · Mon, 26 May 2008 14:30:45 +0200 ·
quoted from Phil Wild
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.
quoted from Phil Wild
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.


Regards.
Henrik
list Ralph Mitchell · Tue, 27 May 2008 17:05:07 -0500 ·
quoted from Henrik Størner
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
list Phil Wild · Wed, 28 May 2008 12:13:31 +0800 ·
Hi Henrik/Ralph,

On my system running 4.2 with all in one patch...

./server/bin/bb 10.1.50.4 ghostlist
bar|10.1.50.4|1211944491
ho|10.1.50.4|1211944491
hum|10.1.50.4|1211944491
zulu.XXXX.com.au|10.1.50.4|1211944491

So all the above is good....

Just to clarify, hosts bar, ho, hum and zulu are all sending a message to
hobbitd every five minutes. Only one test is being sent, this is a test
titled alerts. There is no cpu, memory or any other test being sent.

And just to confirm,
grep zulu ./server/etc/bb-hosts
returns nothing...

I then add the following line to bb-hosts

0.0.0.0 zulu.XXXX.com.au

grep zulu ./server/etc/bb-hosts now returns
0.0.0.0 zulu.XXXX.com.au

I now wait >10 minutes (only because I am trying to multi-task other
work)... The host appears on the bb.html page and I can see a yellow dot for
the test that is being sent every five minutes to trigger it as a ghost... I
can click on the dot and see the message, including an rrd graph of the data
received. So far so good...

I now run...

./server/bin/bb 10.1.50.4 hobbitdboard | grep zulu
zulu.XXXX.com.au|trends|green||0|0|0|0|0||0|
zulu.XXXX.com.au|info|green||0|0|0|0|0||0|
zulu.XXXX.com.au|conn|green|OrdAstLe|1211945995|1211946296|1211948096|0|0|
10.1.50.4|-1|green <!-- [flags:OrdAstLe] --> Wed May 28 11:44:55 2008 conn
ok
zulu.XXXX.com.au|alerts|yellow||1211945994|1211946295|1211948095|0|0|
10.1.50.4|82688|yellow Wed May 28 11:44:55 WST 2008

So from the above, I would assume that it would now no longer be listed as a
ghost...

Just to be sure, I will wait another >15 minutes....
And then...

./server/bin/bb 10.1.50.4 ghostlist
bar|10.1.50.4|1211946596
ho|10.1.50.4|1211946596
hum|10.1.50.4|1211946596
zulu.XXXX.com.au|10.1.50.4|1211945699

It is still there...

I give it another 10 minutes and then I restart hobbit

su - hobbit -c "/opt/hobbit/server/hobbit.sh restart"

wait 10 minutes...

And re-run

./server/bin/bb 10.1.50.4 ghostlist
bar|10.1.50.4|1211947632
ho|10.1.50.4|1211947632
hum|10.1.50.4|1211947632
zulu has gone...

This email is long enough, but if I now reverse the process and remove zulu
from the bb-hosts file, zulu will never become a ghost again until after the
next restart, even though hobbitdboard no longer shows it in its list.

Can I assume this is a bug/feature?

Cheers

Phil


2008/5/28 Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>:
quoted from Ralph Mitchell
 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
-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid