Xymon Mailing List Archive search

hobbit ghost reports

5 messages in this thread

list Val Polyakov · Mon, 2 Jun 2008 08:37:33 -0400 ·
where does hobbit store ghost reports, if anywhere?

my goal is to have a shell/perl script scan the file (if there's one) daily 
for the presence of ghost reports and modify bb-hosts to insert these 
machines into an "uncategorized", or some such, section of hobbit

is there such a file to scan for this in?
list Val Polyakov · Mon, 2 Jun 2008 09:20:04 -0400 ·
nevermind, found my answer:
bb 127.0.0.1 "ghostlist"
quoted from Val Polyakov

Val Polyakov wrote:
where does hobbit store ghost reports, if anywhere?

my goal is to have a shell/perl script scan the file (if there's one) daily
for the presence of ghost reports and modify bb-hosts to insert these
machines into an "uncategorized", or some such, section of hobbit

is there such a file to scan for this in?

list Phil Wild · Mon, 2 Jun 2008 23:15:26 +0800 ·
Let me know if you get this working...

I have been unsuccessful in using the ghostlist report using bb. It is not
consistent. ghostlist does not stop reporting on hosts after they have been
added to bb-hosts. There has not been a clear answer as to why from the
list. Do a search of the mailing list to see my experiences.

Cheers

Phil

2008/6/2 Val Polyakov <user-f80f448eb4ab@xymon.invalid>:
quoted from Val Polyakov
nevermind, found my answer:
bb 127.0.0.1 "ghostlist"

Val Polyakov wrote:
where does hobbit store ghost reports, if anywhere?

my goal is to have a shell/perl script scan the file (if there's one)
daily
for the presence of ghost reports and modify bb-hosts to insert these
machines into an "uncategorized", or some such, section of hobbit

is there such a file to scan for this in?

-- 

Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Martin Ward · Mon, 2 Jun 2008 17:24:35 +0100 ·
Hi Phil. I have found a small typo in the code that may or may not be
the cause of your woes, my last email to this group detailed it:
 
Further to my last email, I believe I have found the problem/bug/typo.
The following pathnames/lines are from my installed file locations but
you should be able to search/find them in your installed locations:
In /opt/hobbit/server/etc/hobbitcgi.cfg, line 47 looks like:
CGI_GHOSTS_OPT="--env=/opt/hobbit/server/etc/hobbitserver.cfg"
and in /opt/hobbit/cgi-bin/hobbit-ghosts.sh, line 6 the end of the
line looks like: bin/hobbit-ghosts.cgi $CGI_GHOSTS_OPTS
Changing hobbitcgi.cfg to:
CGI_GHOSTS_OPTS=
Makes it work correctly.
 
Having made this change I found that the list of ghost servers was
indeed valid. I also found that manually editing the bb-hosts file,
adding one of the ghosts to the end of it (as you might do via a script
if you have the "Unknown hosts" listed at the end) and waiting about
five minutes did cause that machine to be added into the main Hobbit
pages and be removed from the Ghosts list.
 
I am running Hobbit 4.2.0 on a Solaris 10 server, nothing special.
 
HTH
 
|\/|artin
quoted from Phil Wild

-- 

	-----Original Message-----
	From: Phil Wild [mailto:user-e365c1418192@xymon.invalid] 
	Sent: 02 June 2008 16:15
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] hobbit ghost reports
	
	
	Let me know if you get this working...
	
	I have been unsuccessful in using the ghostlist report using bb.
It is not consistent. ghostlist does not stop reporting on hosts after
they have been added to bb-hosts. There has not been a clear answer as
to why from the list. Do a search of the mailing list to see my
experiences.
	
	Cheers
	
	Phil
	
	
	2008/6/2 Val Polyakov <user-f80f448eb4ab@xymon.invalid>:
	

		nevermind, found my answer:
		bb 127.0.0.1 "ghostlist"
		

		Val Polyakov wrote:
where does hobbit store ghost reports, if anywhere?

my goal is to have a shell/perl script scan the file
(if there's one) daily
for the presence of ghost reports and modify bb-hosts
to insert these
machines into an "uncategorized", or some such,
section of hobbit

is there such a file to scan for this in?

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


*************************************************************************************

The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. 

The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies. 

Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. 

No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.  

Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Phil Wild · Tue, 10 Jun 2008 23:52:43 +0800 ·
Hi Martin,

Thanks for the update and sorry for the late reply. I have not been in a
position to test until tonight...

I made the change to the config file to address the typo in the distribution
and this has fixed the "Ghost Clients" report in hobbit (wasn't working
before).

Unfortunately, this has not changed the bahaviour of the bb localhost
ghostlist command. It still refuses to update to match the current output of
hobbitdboard or the web site.

I have just spent around an hour adding and removing test hosts that are
sending valid data. The ghost clients web page updates as expected after
short waits. The bb command never updates until a restart is performed.

Does bb localhost ghostlist on your installation update after changes to
bb-hosts and without forcing a restart?

I now have a workaround thanks to your find though....

I am using wget to grab the text file that is generated from the web site.
That gives me a valid list...

Many thanks for your help!

Cheers

Phil

2008/6/3 Ward, Martin <user-2d33a6eb6a05@xymon.invalid>:
quoted from Martin Ward
 Hi Phil. I have found a small typo in the code that may or may not be the
cause of your woes, my last email to this group detailed it:
Further to my last email, I believe I have found the problem/bug/typo.
The following pathnames/lines are from my installed file locations but
you should be able to search/find them in your installed locations:
In /opt/hobbit/server/etc/hobbitcgi.cfg, line 47 looks like:
CGI_GHOSTS_OPT="--env=/opt/hobbit/server/etc/hobbitserver.cfg"
and in /opt/hobbit/cgi-bin/hobbit-ghosts.sh, line 6 the end of the line
looks like: bin/hobbit-ghosts.cgi $CGI_GHOSTS_OPTS
Changing hobbitcgi.cfg to:
CGI_GHOSTS_OPTS=
Makes it work correctly.
Having made this change I found that the list of ghost servers was indeed
valid. I also found that manually editing the bb-hosts file, adding one
of the ghosts to the end of it (as you might do via a script if you have the
"Unknown hosts" listed at the end) and waiting about five minutes did cause
that machine to be added into the main Hobbit pages and be removed from the
Ghosts list.

I am running Hobbit 4.2.0 on a Solaris 10 server, nothing special.

HTH

|\/|artin

--

 -----Original Message-----
*From:* Phil Wild [mailto:user-e365c1418192@xymon.invalid]
*Sent:* 02 June 2008 16:15
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] hobbit ghost reports

Let me know if you get this working...

I have been unsuccessful in using the ghostlist report using bb. It is not
consistent. ghostlist does not stop reporting on hosts after they have been
added to bb-hosts. There has not been a clear answer as to why from the
list. Do a search of the mailing list to see my experiences.

Cheers

Phil

2008/6/2 Val Polyakov <user-f80f448eb4ab@xymon.invalid>:
nevermind, found my answer:
bb 127.0.0.1 "ghostlist"

Val Polyakov wrote:
where does hobbit store ghost reports, if anywhere?

my goal is to have a shell/perl script scan the file (if there's one)
daily
for the presence of ghost reports and modify bb-hosts to insert these
machines into an "uncategorized", or some such, section of hobbit

is there such a file to scan for this in?

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


*************************************************************************************
The message is intended for the named addressee only and may not be
disclosed to or used by anyone else, nor may it be copied in any way.

The contents of this message and its attachments are confidential and may
also be subject to legal privilege. If you are not the named addressee
and/or have received this message in error, please advise us by e-mailing
user-61c7f445d564@xymon.invalid and delete the message and any attachments without
retaining any copies.

Internet communications are not secure and COLT does not accept
responsibility for this message, its contents nor responsibility for any
viruses.

No contracts can be created or varied on behalf of COLT Telecommunications,
its subsidiaries or affiliates ("COLT") and any other party by email
Communications unless expressly agreed in writing with such other party.

Please note that incoming emails will be automatically scanned to eliminate
potential viruses and unsolicited promotional emails. For more information
refer to www.colt.net or contact us on +44(0)20 7390 3900.

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