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: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
I use the Hobbit Admintools
On Mon, May 19, 2008 at 9:53 AM, Phil Wild <philwild at gmail.com> 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: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
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 <josh at imaginenetworksllc.com>:
I use the Hobbit Admintools
On Mon, May 19, 2008 at 9:53 AM, Phil Wild <philwild at gmail.com> 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: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
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.
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 <hobbit at epperson.homelinux.net>:
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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <philwild at gmail.com> 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
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 <ralphmitchell at gmail.com>:
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <philwild at gmail.com> 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: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
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=
From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Monday, May 19, 2008 12:57 PM To: hobbit at hswn.dk Subject: Re: [hobbit] ghostlist
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <philwild at gmail.com<mailto:philwild at gmail.com>> 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
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:ralphmitchell at gmail.com]
Sent: Monday, May 19, 2008 11:57 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] ghostlist
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <philwild at gmail.com>
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
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 <greg.hubbard at eds.com> 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:ralphmitchell at gmail.com] *Sent:* Monday, May 19, 2008 11:57 AM *To:* hobbit at hswn.dk *Subject:* Re: [hobbit] ghostlist
On Mon, May 19, 2008 at 11:17 AM, Phil Wild <philwild at gmail.com> 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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
On Mon, May 19, 2008 at 12:48 PM, Josh Luthman <josh at imaginenetworksllc.com> 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 <greg.hubbard at eds.com> 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
On Mon, May 19, 2008 at 1:05 PM, Ralph Mitchell <ralphmitchell at gmail.com> wrote:
On Mon, May 19, 2008 at 12:48 PM, Josh Luthman < josh at imaginenetworksllc.com> 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 <greg.hubbard at eds.com> 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"` --droptook 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 serverserver.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
participants (6)
-
Galen.Johnson@sas.com
-
greg.hubbard@eds.com
-
hobbit@epperson.homelinux.net
-
josh@imaginenetworksllc.com
-
philwild@gmail.com
-
ralphmitchell@gmail.com